Exemple #1
0
 public void Open()
 {
     if (_window == null)
     {
         _window = new AdminMenuWindow();
     }
     _window.OpenCentered();
 }
 protected override void Execute(ButtonEventArgs obj)
 {
     if (WindowType == null)
     {
         return;
     }
     _window = (SS14Window)IoCManager.Resolve <IDynamicTypeFactory>().CreateInstance(WindowType);
     _window?.OpenCentered();
 }
 private void _setOpenValue(SS14Window menu, bool value)
 {
     _gameHud.CharacterButtonDown = value;
     if (value)
     {
         menu.OpenCentered();
     }
     else
     {
         menu.Close();
     }
 }
Exemple #4
0
 private void _setOpenValue(SS14Window menu, bool value)
 {
     if (value)
     {
         _gameHud.InventoryButtonDown = true;
         menu.OpenCentered();
     }
     else
     {
         _gameHud.InventoryButtonDown = false;
         menu.Close();
     }
 }
Exemple #5
0
 public void OpenCommand(SS14Window window)
 {
     _commandWindows.Add(window);
     window.OpenCentered();
 }