Keep reagent dispenser inventory ordered (#24304)
* Keep reagent dispenser inventory ordered This way, reagents wont be "moving around" in the UI when juggling jugs. The reagent dispensers will also show what reagents their storage slots contain if jugs are not labelled. * Move sorting client-side * Revert "Keep reagent dispenser inventory ordered" This reverts commit 3a1fc2e36d593937d4ecc581ae5a617a273a9d1c.
This commit is contained in:
@@ -58,6 +58,8 @@ namespace Content.Client.Chemistry.UI
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
ChemicalList.Children.Clear();
|
ChemicalList.Children.Clear();
|
||||||
|
//Sort inventory by reagentLabel
|
||||||
|
inventory.Sort((x, y) => x.Value.Key.CompareTo(y.Value.Key));
|
||||||
|
|
||||||
foreach (KeyValuePair<string, KeyValuePair<string, string>> entry in inventory)
|
foreach (KeyValuePair<string, KeyValuePair<string, string>> entry in inventory)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user