Lathe menu UI displays a count of available recipes (#35570)

* commit

* jumped the gun

* changes
This commit is contained in:
āda
2025-03-05 06:31:48 -06:00
committed by GitHub
parent 657899f8b5
commit b57b534380
3 changed files with 7 additions and 0 deletions

View File

@@ -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);