Ejemplo n.º 1
0
        public override void DoAction(ScreenManager manager, Screen screen, GameTime gameTime, GameSettings gameSettings, GameStatus gameStatus)
        {
            ButtonArea buttonArea = screen.GetSelectedOrFocusedButtonArea();

            if (buttonArea != null)
            {
                buttonArea.SetCurrentHorizontalValue(buttonArea.GetCurrentHorizontalValue() + _changeHorizontalStep);
                buttonArea.SetCurrentVerticalValue(buttonArea.GetCurrentVerticalValue() + _changeVerticalStep);
            }
        }
Ejemplo n.º 2
0
 public override void EnterScreen(GameTime gameTime, GameSettings gameSettings)
 {
     _masterVolumeButton.SetCurrentHorizontalValue(100);
     _musicVolumeButton.SetCurrentHorizontalValue(100);
     base.EnterScreen(gameTime, gameSettings);
 }
Ejemplo n.º 3
0
 public override void DoAction(ScreenManager manager, Screen screen, GameTime gameTime, GameSettings gameSettings, GameStatus gameStatus)
 {
     _buttonArea.SetCurrentHorizontalValue(_buttonArea.GetCurrentHorizontalValue() + _changeHorizontalStep);
     _buttonArea.SetCurrentVerticalValue(_buttonArea.GetCurrentVerticalValue() + _changeVerticalStep);
 }