Exemplo n.º 1
0
        private void BrowseInput()
        {
            if (KeyInput.JustPressedRebindableKey(KeyFunctions.Accept) || KeyInput.JustPressedRebindableKey(KeyFunctions.Right))
            {
                SoundManager.PlaySoundEffect("menu_select");
                _inSubstate = true;
                _selector.Play("disabledRight");
                _substate.GetControl();
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Up))
            {
                if (_menuState == MenuState.Save1)
                {
                    SoundManager.PlaySoundEffect("menu_move");
                    return;
                }

                SoundManager.PlaySoundEffect("menu_move");
                _menuState--;
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Down))
            {
                if (_menuState == MenuState.Settings)
                {
                    SoundManager.PlaySoundEffect("menu_move");
                    return;
                }

                SoundManager.PlaySoundEffect("menu_move");
                _menuState++;
            }
        }