Corner Clothing UI (#22883)
* Corner clothing (save point) * IT WORKS. YIPPEE * the last of it * template rejigs
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<widgets:InventoryGui
|
||||
xmlns="https://spacestation14.io"
|
||||
xmlns:inventory="clr-namespace:Content.Client.UserInterface.Systems.Inventory.Controls"
|
||||
xmlns:widgets="clr-namespace:Content.Client.UserInterface.Systems.Inventory.Widgets"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
Name="InventoryInterface"
|
||||
VerticalExpand="True"
|
||||
VerticalAlignment="Bottom"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<Control HorizontalAlignment="Center">
|
||||
<controls:SlotButton
|
||||
Name="InventoryButton"
|
||||
Access="Public"
|
||||
VerticalAlignment="Bottom"
|
||||
HorizontalExpand="False"
|
||||
VerticalExpand="False"
|
||||
ButtonTexturePath="Slots/toggle"/>
|
||||
<inventory:ItemSlotButtonContainer
|
||||
Name="InventoryHotbar"
|
||||
Access="Public"
|
||||
Visible="False"
|
||||
MaxColumns="3"
|
||||
SlotGroup="Default"
|
||||
ExpandBackwards="True"
|
||||
VerticalExpand="True"
|
||||
HorizontalAlignment="Center"
|
||||
/>
|
||||
</Control>
|
||||
</widgets:InventoryGui>
|
||||
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user