Exemplo n.º 1
0
        private void OpenWindow()
        {
            if (_window != null)
            {
                return;
            }

            _window = new SandboxWindow();

            _window.OnClose += WindowOnOnClose;

            _window.RespawnButton.OnPressed        += OnRespawnButtonOnOnPressed;
            _window.SpawnTilesButton.OnPressed     += OnSpawnTilesButtonClicked;
            _window.SpawnEntitiesButton.OnPressed  += OnSpawnEntitiesButtonClicked;
            _window.GiveFullAccessButton.OnPressed += OnGiveAdminAccessButtonClicked;
            _window.GiveAghostButton.OnPressed     += OnGiveAghostButtonClicked;
            _window.ToggleLightButton.OnToggled    += OnToggleLightButtonClicked;
            _window.ToggleFovButton.OnToggled      += OnToggleFovButtonClicked;
            _window.ToggleShadowsButton.OnToggled  += OnToggleShadowsButtonClicked;
            _window.SuicideButton.OnPressed        += OnSuicideButtonClicked;
            _window.ToggleSubfloorButton.OnPressed += OnToggleSubfloorButtonClicked;
            _window.ShowMarkersButton.OnPressed    += OnShowMarkersButtonClicked;
            _window.ShowBbButton.OnPressed         += OnShowBbButtonClicked;
            _window.MachineLinkingButton.OnPressed += OnMachineLinkingButtonClicked;

            _window.OpenCentered();
        }
Exemplo n.º 2
0
        private void OpenWindow()
        {
            if (_window != null)
            {
                return;
            }

            _window = new SandboxWindow(_localization);

            _window.OnClose += WindowOnOnClose;

            _window.RespawnButton.OnPressed       += OnRespawnButtonOnOnPressed;
            _window.SpawnTilesButton.OnPressed    += OnSpawnTilesButtonClicked;
            _window.SpawnEntitiesButton.OnPressed += OnSpawnEntitiesButtonClicked;

            _window.OpenCentered();
        }
Exemplo n.º 3
0
 private void WindowOnOnClose()
 {
     _window = null;
     _gameHud.SandboxButtonDown = false;
     _sandboxWindowToggled      = false;
 }
Exemplo n.º 4
0
 private void WindowOnOnClose()
 {
     _window = null;
     _sandboxWindowToggled = false;
 }