private void OnBoundUIOpened(EntityUid uid, InstrumentComponent component, BoundUIOpenedEvent args) { if (args.UiKey is not InstrumentUiKey) { return; } EnsureComp <ActiveInstrumentComponent>(uid); Clean(uid, component); }
private void OnClientUIOpen(EntityUid uid, ResearchClientComponent component, BoundUIOpenedEvent args) { UpdateClientInterface(component); }
private void OnBoundUIOpen(EntityUid uid, ServerStorageComponent storageComp, BoundUIOpenedEvent args) { if (!storageComp.IsOpen) { storageComp.IsOpen = true; UpdateStorageVisualization(uid, storageComp); } }
private void OnOrderUIOpened(EntityUid uid, CargoOrderConsoleComponent component, BoundUIOpenedEvent args) { var station = _station.GetOwningStation(uid); UpdateOrderState(component, station); }