Ejemplo n.º 1
0
    private void OnBoundUIOpened(EntityUid uid, InstrumentComponent component, BoundUIOpenedEvent args)
    {
        if (args.UiKey is not InstrumentUiKey)
        {
            return;
        }

        EnsureComp <ActiveInstrumentComponent>(uid);
        Clean(uid, component);
    }
Ejemplo n.º 2
0
 private void OnClientUIOpen(EntityUid uid, ResearchClientComponent component, BoundUIOpenedEvent args)
 {
     UpdateClientInterface(component);
 }
Ejemplo n.º 3
0
 private void OnBoundUIOpen(EntityUid uid, ServerStorageComponent storageComp, BoundUIOpenedEvent args)
 {
     if (!storageComp.IsOpen)
     {
         storageComp.IsOpen = true;
         UpdateStorageVisualization(uid, storageComp);
     }
 }
Ejemplo n.º 4
0
        private void OnOrderUIOpened(EntityUid uid, CargoOrderConsoleComponent component, BoundUIOpenedEvent args)
        {
            var station = _station.GetOwningStation(uid);

            UpdateOrderState(component, station);
        }