using Content.Shared._RMC14.Attachable; namespace Content.Client._RMC14.Attachable.Ui; public sealed class AttachmentStripBui : BoundUserInterface { private AttachableHolderStripMenu? _menu; public AttachmentStripBui(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } protected override void Open() { base.Open(); _menu = new AttachableHolderStripMenu(this); var metaQuery = EntMan.GetEntityQuery(); if (metaQuery.TryGetComponent(Owner, out var metadata)) _menu.Title = metadata.EntityName; _menu.OpenCentered(); } protected override void UpdateState(BoundUserInterfaceState state) { base.UpdateState(state); if (state is not AttachableHolderStripUserInterfaceState msg) return; if (_menu == null) return; _menu.UpdateMenu(msg.AttachableSlots); } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (!disposing) return; _menu?.Dispose(); } }