Lathe menu UI displays a count of available recipes (#35570)
* commit * jumped the gun * changes
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
PlaceHolder="0"
|
PlaceHolder="0"
|
||||||
Text="1"
|
Text="1"
|
||||||
HorizontalExpand="True" />
|
HorizontalExpand="True" />
|
||||||
|
<Label Name="RecipeCount" Margin="8 0 8 0" MinWidth="90" Align="Right" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ public sealed partial class LatheMenu : DefaultWindow
|
|||||||
if (!int.TryParse(AmountLineEdit.Text, out var quantity) || quantity <= 0)
|
if (!int.TryParse(AmountLineEdit.Text, out var quantity) || quantity <= 0)
|
||||||
quantity = 1;
|
quantity = 1;
|
||||||
|
|
||||||
|
RecipeCount.Text = Loc.GetString("lathe-menu-recipe-count", ("count", recipesToShow.Count));
|
||||||
|
|
||||||
var sortedRecipesToShow = recipesToShow.OrderBy(_lathe.GetRecipeName);
|
var sortedRecipesToShow = recipesToShow.OrderBy(_lathe.GetRecipeName);
|
||||||
RecipeList.Children.Clear();
|
RecipeList.Children.Clear();
|
||||||
_entityManager.TryGetComponent(Entity, out LatheComponent? lathe);
|
_entityManager.TryGetComponent(Entity, out LatheComponent? lathe);
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ lathe-menu-search-designs = Search designs
|
|||||||
lathe-menu-category-all = All
|
lathe-menu-category-all = All
|
||||||
lathe-menu-search-filter = Filter:
|
lathe-menu-search-filter = Filter:
|
||||||
lathe-menu-amount = Amount:
|
lathe-menu-amount = Amount:
|
||||||
|
lathe-menu-recipe-count = { $count ->
|
||||||
|
[1] {$count} Recipe
|
||||||
|
*[other] {$count} Recipes
|
||||||
|
}
|
||||||
lathe-menu-reagent-slot-examine = It has a slot for a beaker on the side.
|
lathe-menu-reagent-slot-examine = It has a slot for a beaker on the side.
|
||||||
lathe-reagent-dispense-no-container = Liquid pours out of {THE($name)} onto the floor!
|
lathe-reagent-dispense-no-container = Liquid pours out of {THE($name)} onto the floor!
|
||||||
lathe-menu-result-reagent-display = {$reagent} ({$amount}u)
|
lathe-menu-result-reagent-display = {$reagent} ({$amount}u)
|
||||||
|
|||||||
Reference in New Issue
Block a user