using Content.Shared.RadialSelector; using Content.Shared.ShortConstruction; using Content.Shared.UserInterface; using Robust.Server.GameObjects; namespace Content.Server.ShortConstruction; public sealed class ShortConstructionSystem : EntitySystem { [Dependency] private readonly UserInterfaceSystem _ui = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(BeforeUiOpen); } private void BeforeUiOpen(Entity ent, ref BeforeActivatableUIOpenEvent args) { var state = new RadialSelectorState(ent.Comp.Entries); _ui.SetUiState(ent.Owner, RadialSelectorUiKey.Key, state); } }