cs fix, demiplane fix

This commit is contained in:
Ed
2025-05-30 13:28:08 +03:00
parent 5e6d1d0b3a
commit f78b1e07c5
5 changed files with 13 additions and 20 deletions

View File

@@ -39,6 +39,9 @@
Visible="False"
HorizontalAlignment="Center"
FontColorOverride="#1e6651" />
<BoxContainer Name="RandomProductsContainer" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
<!-- Random products will be added as children here -->
</BoxContainer>
<controls:SplitBar MinHeight="10">
</controls:SplitBar>
</BoxContainer>

View File

@@ -50,12 +50,10 @@ public sealed partial class GuideReagentReaction : BoxContainer, ISearchableCont
{
// If there aren't any variations, this label will be not visible
RandomVariationsLabel.Visible = true;
var randomProductLabel = new RichTextLabel {
HorizontalAlignment=HAlignment.Left,
VerticalAlignment=VAlignment.Center,
};
Container randomProductContainer = RandomProductsContainer;
var randomProducts = new Dictionary<string, FixedPoint2>(randomVariation);
RandomVariations.AddChild(randomProductLabel);
RandomVariations.AddChild(randomProductContainer);
RandomVariations.AddChild(new SplitBar
{
MinHeight = 10,
@@ -65,7 +63,7 @@ public sealed partial class GuideReagentReaction : BoxContainer, ISearchableCont
if (reactantProto.Catalyst)
randomProducts.Add(reagent, reactantProto.Amount);
}
SetReagents(randomProducts, ref randomProductLabel, protoMan);
SetReagents(randomProducts, ref randomProductContainer, protoMan);
}
// CP14 random reagents end