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"
|
||||
Text="1"
|
||||
HorizontalExpand="True" />
|
||||
<Label Name="RecipeCount" Margin="8 0 8 0" MinWidth="90" Align="Right" />
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
|
||||
@@ -120,6 +120,8 @@ public sealed partial class LatheMenu : DefaultWindow
|
||||
if (!int.TryParse(AmountLineEdit.Text, out var quantity) || quantity <= 0)
|
||||
quantity = 1;
|
||||
|
||||
RecipeCount.Text = Loc.GetString("lathe-menu-recipe-count", ("count", recipesToShow.Count));
|
||||
|
||||
var sortedRecipesToShow = recipesToShow.OrderBy(_lathe.GetRecipeName);
|
||||
RecipeList.Children.Clear();
|
||||
_entityManager.TryGetComponent(Entity, out LatheComponent? lathe);
|
||||
|
||||
@@ -6,6 +6,10 @@ lathe-menu-search-designs = Search designs
|
||||
lathe-menu-category-all = All
|
||||
lathe-menu-search-filter = Filter:
|
||||
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-reagent-dispense-no-container = Liquid pours out of {THE($name)} onto the floor!
|
||||
lathe-menu-result-reagent-display = {$reagent} ({$amount}u)
|
||||
|
||||
Reference in New Issue
Block a user