Files
crystall-punk-14/Content.Client/UserInterface/Systems/Inventory/Widgets/InventoryGui.xaml.cs

20 lines
614 B
C#
Raw Normal View History

using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.UserInterface.Systems.Inventory.Widgets;
[GenerateTypedNameReferences]
public sealed partial class InventoryGui : UIWidget
{
public InventoryGui()
{
RobustXamlLoader.Load(this);
var inventoryUIController = UserInterfaceManager.GetUIController<InventoryUIController>();
inventoryUIController.RegisterInventoryBarContainer(InventoryHotbar);
LayoutContainer.SetGrowVertical(this, LayoutContainer.GrowDirection.Begin);
}
}