// Update is called once per frame void Update() { if (mainMenuWindow.enabled == false && settingsMenuWindow.enabled == false) { return; } if (InputManager.MyInstance.KeyBindWasPressed("CANCEL")) { settingsMenuWindow.CloseWindow(); creditsWindow.CloseWindow(); exitMenuWindow.CloseWindow(); playMenuWindow.CloseWindow(); deleteGameMenuWindow.CloseWindow(); copyGameMenuWindow.CloseWindow(); confirmDestroyMenuWindow.CloseWindow(); confirmSellItemMenuWindow.CloseWindow(); inGameMainMenuWindow.CloseWindow(); // testing - do not allow accidentally closing this while dead if (PlayerManager.MyInstance.MyPlayerUnitSpawned == true && PlayerManager.MyInstance.MyCharacter.CharacterStats.IsAlive != false) { playerOptionsMenuWindow.CloseWindow(); } } if (InputManager.MyInstance.KeyBindWasPressed("MAINMENU")) { inGameMainMenuWindow.ToggleOpenClose(); } }
// Update is called once per frame void Update() { if (mainMenuWindow.enabled == false && settingsMenuWindow.enabled == false) { return; } if (InputManager.MyInstance.KeyBindWasPressed("CANCEL")) { settingsMenuWindow.CloseWindow(); creditsWindow.CloseWindow(); exitMenuWindow.CloseWindow(); playMenuWindow.CloseWindow(); deleteGameMenuWindow.CloseWindow(); copyGameMenuWindow.CloseWindow(); confirmDestroyMenuWindow.CloseWindow(); confirmSellItemMenuWindow.CloseWindow(); } if (InputManager.MyInstance.KeyBindWasPressed("MAINMENU")) { inGameMainMenuWindow.ToggleOpenClose(); } if (InputManager.MyInstance.KeyBindWasPressed("CANCEL")) { inGameMainMenuWindow.CloseWindow(); playerOptionsMenuWindow.CloseWindow(); } }
public void CloseAllWindows() { //Debug.Log("SystemWindowManager.CloseAllWindows()"); mainMenuWindow.CloseWindow(); inGameMainMenuWindow.CloseWindow(); settingsMenuWindow.CloseWindow(); exitMenuWindow.CloseWindow(); playMenuWindow.CloseWindow(); deleteGameMenuWindow.CloseWindow(); confirmDestroyMenuWindow.CloseWindow(); }
public void CloseAllWindows() { abilityBookWindow.CloseWindow(); skillBookWindow.CloseWindow(); achievementListWindow.CloseWindow(); reputationBookWindow.CloseWindow(); currencyListWindow.CloseWindow(); characterPanelWindow.CloseWindow(); lootWindow.CloseWindow(); vendorWindow.CloseWindow(); chestWindow.CloseWindow(); bankWindow.CloseWindow(); questLogWindow.CloseWindow(); questGiverWindow.CloseWindow(); skillTrainerWindow.CloseWindow(); musicPlayerWindow.CloseWindow(); interactionWindow.CloseWindow(); craftingWindow.CloseWindow(); mainMapWindow.CloseWindow(); factionChangeWindow.CloseWindow(); classChangeWindow.CloseWindow(); specializationChangeWindow.CloseWindow(); dialogWindow.CloseWindow(); InventoryManager.MyInstance.Close(); }
public override void StopInteract() { base.StopInteract(); chestWindow.CloseWindow(); }