Display minimum temperature required for reaction to occur in guidebook (#20424)

This commit is contained in:
TomaszKawalec
2023-09-24 23:33:25 +02:00
committed by GitHub
parent be1eca3b9f
commit cd9f0b8728
3 changed files with 11 additions and 2 deletions

View File

@@ -25,8 +25,10 @@
VerticalAlignment="Center"/>
</BoxContainer>
<BoxContainer Orientation="Vertical" VerticalAlignment="Center">
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png"/>
<Label Text="{Loc 'guidebook-reagent-recipes-mix'}"
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png"
HorizontalAlignment="Center"/>
<Label Name="MixLabel"
Text="{Loc 'guidebook-reagent-recipes-mix'}"
HorizontalAlignment="Center"/>
</BoxContainer>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center">

View File

@@ -116,6 +116,12 @@ public sealed partial class GuideReagentEmbed : BoxContainer, IDocumentTag, ISea
reactantMsg.Pop();
ReactantsLabel.SetMessage(reactantMsg);
if (reactionPrototype.MinimumTemperature > 0.0f)
{
MixLabel.Text = Loc.GetString("guidebook-reagent-recipes-mix-and-heat",
("temperature", reactionPrototype.MinimumTemperature));
}
var productMsg = new FormattedMessage();
var productCount = reactionPrototype.Products.Count;
var u = 0;

View File

@@ -11,6 +11,7 @@ guidebook-reagent-name = [bold][color={$color}]{CAPITALIZE($name)}[/color][/bold
guidebook-reagent-recipes-header = Recipe
guidebook-reagent-recipes-reagent-display = [bold]{$reagent}[/bold] \[{$ratio}\]
guidebook-reagent-recipes-mix = Mix
guidebook-reagent-recipes-mix-and-heat = Mix at above {$temperature}K
guidebook-reagent-effects-header = Effects
guidebook-reagent-effects-metabolism-group-rate = [bold]{$group}[/bold] [color=gray]({$rate} units per second)[/color]
guidebook-reagent-physical-description = Seems to be {$description}.