private void BeforeUiOpen(EntityUid uid, GasTankComponent component, BeforeActivatableUIOpenEvent args)
 {
     // Only initial update includes output pressure information, to avoid overwriting client-input as the updates come in.
     UpdateUserInterface(component, true);
 }
예제 #2
0
 private void BeforeUIOpen(EntityUid uid, PaperComponent paperComp, BeforeActivatableUIOpenEvent args)
 {
     paperComp.Mode = PaperAction.Read;
     UpdateUserInterface(uid, paperComp);
 }
예제 #3
0
 private void AfterUIOpen(EntityUid uid, PaperComponent component, BeforeActivatableUIOpenEvent args)
 {
     component.Mode = SharedPaperComponent.PaperAction.Read;
     component.UpdateUserInterface();
 }