public void SettingsToMainMenu() { if (inMainMenu == true) { _GameStatus = GameStatus.Mainmenu; CheckGameStatus(); _SettingsStatus = SettingsStatus.None; CheckSettingPanelStatus(); } }
public void SettingsToPauseMenu() { if (inMainMenu == false) { _GameStatus = GameStatus.IngamePaused; CheckGameStatus(); _SettingsStatus = SettingsStatus.None; CheckSettingPanelStatus(); } }
/*public void CursorMode() * { * if (isCursorLocked == true) * { * Cursor.lockState = CursorLockMode.Locked; * } * else * { * Cursor.lockState = CursorLockMode.Confined; * } * }*/ public void PressEscape() { if (Input.GetButtonDown("Escape")) { if (paused == true && inSettings == false && toTitleScreen == false) { _GameStatus = GameStatus.IngameUnpaused; CheckGameStatus(); } else if (inMainMenu == false && paused == false && loading == false) { _GameStatus = GameStatus.IngamePaused; CheckGameStatus(); } else if (inSettings == true && paused == true) { _GameStatus = GameStatus.IngamePaused; CheckGameStatus(); _SettingsStatus = SettingsStatus.None; CheckSettingPanelStatus(); } else if (paused == true && toTitleScreen == true) { _GameStatus = GameStatus.IngamePaused; CheckGameStatus(); } else if (inMainMenu == true && inSettings == true) { _GameStatus = GameStatus.Mainmenu; CheckGameStatus(); _SettingsStatus = SettingsStatus.None; CheckSettingPanelStatus(); } else if (inCredits == true) { _GameStatus = GameStatus.Mainmenu; CheckGameStatus(); } } }
protected override void DialogOkClicked(object o) { SettingsToReset = SettingsStatus.Where(x => x.Value).Select(x => x.Key).ToList(); base.DialogOkClicked(o); }
public void InActiveSettingsMenu() { _SettingsStatus = SettingsStatus.None; CheckSettingPanelStatus(); }
public void GameSettings() { _SettingsStatus = SettingsStatus.GameSettings; CheckSettingPanelStatus(); }
public void ControlSettings() { _SettingsStatus = SettingsStatus.ControlSettings; CheckSettingPanelStatus(); }
public void KeyBindingsSettings() { _SettingsStatus = SettingsStatus.Keybindings; CheckSettingPanelStatus(); }
public void SoundSettings() { _SettingsStatus = SettingsStatus.Sound; CheckSettingPanelStatus(); }