InventoryGui.xaml.cs 614 B

12345678910111213141516171819
  1. using Robust.Client.AutoGenerated;
  2. using Robust.Client.UserInterface.Controls;
  3. using Robust.Client.UserInterface.XAML;
  4. namespace Content.Client.UserInterface.Systems.Inventory.Widgets;
  5. [GenerateTypedNameReferences]
  6. public sealed partial class InventoryGui : UIWidget
  7. {
  8. public InventoryGui()
  9. {
  10. RobustXamlLoader.Load(this);
  11. var inventoryUIController = UserInterfaceManager.GetUIController<InventoryUIController>();
  12. inventoryUIController.RegisterInventoryBarContainer(InventoryHotbar);
  13. LayoutContainer.SetGrowVertical(this, LayoutContainer.GrowDirection.Begin);
  14. }
  15. }