Files
tbd-station-14/Content.Client/UserInterface/Systems/Inventory/Controls/ItemSlotButtonContainer.cs
Pieter-Jan Briers cf8fcb170a Remove bogus C# finalizers (#28315)
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.
2024-05-27 17:52:23 -04:00

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>();
}
}