private void OnGetActions(EntityUid uid, IntrinsicUIComponent component, ComponentStartup args) { if (!TryComp <ActionsComponent>(uid, out var actions)) { return; } foreach (var entry in component.UIs) { _actionsSystem.AddAction(uid, entry.ToggleAction, null, actions); } }
private void OnActionToggle(EntityUid uid, IntrinsicUIComponent component, ToggleIntrinsicUIEvent args) { args.Handled = InteractUI(uid, args.Key, component); }