Ejemplo n.º 1
0
        private void InputNewGameMenu(IInput input)
        {
            bool isOptionChanged = false;

            if (input.Triggered.Cancel)
            {
                _animMenuBg.End();
                _animMenuWindow.End();
                _animMenuTitle.End();
                _animMenuOption1.End();
                _animMenuOption2.End();
                _animMenuOption3.End();
                _animMenuOption4.End();
                _animMenuOptionSelected.End();
                _stateToSet = MainMenuState.Running;
            }
            else if (input.Triggered.Confirm)
            {
                _animMenuBg.End();
                _animMenuWindow.End();
                _animMenuTitle.End();
                _animMenuOption1.End();
                _animMenuOption2.End();
                _animMenuOption3.End();
                _animMenuOption4.End();
                _animMenuOptionSelected.End();
                _stateToSet = MainMenuState.StartNewGame;
            }
            else if (input.Repeated.Up)
            {
                _difficultyOption--;
                if (_difficultyOption < 0)
                {
                    _difficultyOption = _difficultyCount - 1;
                }
                isOptionChanged = true;
            }
            else if (input.Repeated.Down)
            {
                _difficultyOption = (_difficultyOption + 1) % _difficultyCount;
                isOptionChanged   = true;
            }

            if (isOptionChanged)
            {
                _animMenuWindow.Skip();
                _animMenuOption1.Skip();
                _animMenuOption2.Skip();
                _animMenuOption3.Skip();
                _animMenuOption4.Skip();
                _animMenuOptionSelected.Skip();
            }
        }
Ejemplo n.º 2
0
        private void InputNewGameMenu(InputManager inputManager)
        {
            bool isOptionChanged = false;

            if (inputManager.IsCross)
            {
                _animMenuBg.End();
                _animMenuWindow.End();
                _animMenuTitle.End();
                _animMenuOption1.End();
                _animMenuOption2.End();
                _animMenuOption3.End();
                _animMenuOption4.End();
                _animMenuOptionSelected.End();
                _stateToSet = MainMenuState.Running;
            }
            else if (inputManager.IsCircle)
            {
                _animMenuBg.End();
                _animMenuWindow.End();
                _animMenuTitle.End();
                _animMenuOption1.End();
                _animMenuOption2.End();
                _animMenuOption3.End();
                _animMenuOption4.End();
                _animMenuOptionSelected.End();
                _stateToSet = MainMenuState.StartNewGame;
            }
            else if (inputManager.IsMenuUp)
            {
                _difficultyOption--;
                if (_difficultyOption < 0)
                {
                    _difficultyOption = _difficultyCount - 1;
                }
                isOptionChanged = true;
            }
            else if (inputManager.IsMenuDown)
            {
                _difficultyOption = (_difficultyOption + 1) % _difficultyCount;
                isOptionChanged   = true;
            }

            if (isOptionChanged)
            {
                _animMenuWindow.Skip();
                _animMenuOption1.Skip();
                _animMenuOption2.Skip();
                _animMenuOption3.Skip();
                _animMenuOption4.Skip();
                _animMenuOptionSelected.Skip();
            }
        }
Ejemplo n.º 3
0
        public void CloseAllMenu()
        {
            _layoutRenderer.FrameIndex = 0;
            _layoutRenderer.SelectedSequenceGroupIndex = 2;

            _backgroundSeq.End();
            _subMenuDescriptionSeq.End();
            _subMenu.Close();
        }