Esempio n. 1
0
 public void SettingsToMainMenu()
 {
     if (inMainMenu == true)
     {
         _GameStatus = GameStatus.Mainmenu;
         CheckGameStatus();
         _SettingsStatus = SettingsStatus.None;
         CheckSettingPanelStatus();
     }
 }
Esempio n. 2
0
 public void SettingsToPauseMenu()
 {
     if (inMainMenu == false)
     {
         _GameStatus = GameStatus.IngamePaused;
         CheckGameStatus();
         _SettingsStatus = SettingsStatus.None;
         CheckSettingPanelStatus();
     }
 }
Esempio n. 3
0
    /*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();
            }
        }
    }
Esempio n. 4
0
        protected override void DialogOkClicked(object o)
        {
            SettingsToReset = SettingsStatus.Where(x => x.Value).Select(x => x.Key).ToList();

            base.DialogOkClicked(o);
        }
Esempio n. 5
0
 public void InActiveSettingsMenu()
 {
     _SettingsStatus = SettingsStatus.None;
     CheckSettingPanelStatus();
 }
Esempio n. 6
0
 public void GameSettings()
 {
     _SettingsStatus = SettingsStatus.GameSettings;
     CheckSettingPanelStatus();
 }
Esempio n. 7
0
 public void ControlSettings()
 {
     _SettingsStatus = SettingsStatus.ControlSettings;
     CheckSettingPanelStatus();
 }
Esempio n. 8
0
 public void KeyBindingsSettings()
 {
     _SettingsStatus = SettingsStatus.Keybindings;
     CheckSettingPanelStatus();
 }
Esempio n. 9
0
 public void SoundSettings()
 {
     _SettingsStatus = SettingsStatus.Sound;
     CheckSettingPanelStatus();
 }