Begging people to learn how this programming language works before throwing random syntax into a file. None of these finalizers ever worked. I also checked whether they were memory leaks and needed *proper* shutdown logic, but they're all instantiated-once UI controls that last for the entire lifetime of the program so it's probably fine.
26 lines
705 B
C#
26 lines
705 B
C#
using Content.Client.UserInterface.Controls;
|
|
|
|
namespace Content.Client.UserInterface.Systems.Inventory.Controls;
|
|
|
|
public sealed class ItemSlotButtonContainer : ItemSlotUIContainer<SlotControl>
|
|
{
|
|
private readonly InventoryUIController _inventoryController;
|
|
private string _slotGroup = "";
|
|
|
|
public string SlotGroup
|
|
{
|
|
get => _slotGroup;
|
|
set
|
|
{
|
|
_inventoryController.RemoveSlotGroup(SlotGroup);
|
|
_slotGroup = value;
|
|
_inventoryController.RegisterSlotGroupContainer(this);
|
|
}
|
|
}
|
|
|
|
public ItemSlotButtonContainer()
|
|
{
|
|
_inventoryController = UserInterfaceManager.GetUIController<InventoryUIController>();
|
|
}
|
|
}
|