Files
tbd-station-14/Content.Client/UserInterface/Systems/Hotbar/Widgets/HotbarGui.xaml.cs
Nemanja 9b18357a88 Corner Clothing UI (#22883)
* Corner clothing (save point)

* IT WORKS. YIPPEE

* the last of it

* template rejigs
2023-12-22 23:32:23 -07:00

32 lines
874 B
C#

using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.UserInterface.Systems.Hotbar.Widgets;
[GenerateTypedNameReferences]
public sealed partial class HotbarGui : UIWidget
{
public HotbarGui()
{
RobustXamlLoader.Load(this);
StatusPanel.Update(null);
var hotbarController = UserInterfaceManager.GetUIController<HotbarUIController>();
hotbarController.Setup(HandContainer, StatusPanel, StoragePanel);
LayoutContainer.SetGrowVertical(this, LayoutContainer.GrowDirection.Begin);
}
public void UpdatePanelEntity(EntityUid? entity)
{
StatusPanel.Update(entity);
if (entity == null)
{
StatusPanel.Visible = false;
return;
}
StatusPanel.Visible = true;
}
}