Allow changing volume in the game paused menu.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-03-23 20:40:50 -04:00
parent 850a6c3882
commit a6ece307ff

View File

@ -191,6 +191,14 @@ public class GamePauseMenu extends BasicGameState {
} }
} }
@Override
public void mouseWheelMoved(int newValue) {
if (Options.isMouseWheelDisabled() || Options.isMouseDisabled())
return;
UI.changeVolume((newValue < 0) ? -1 : 1);
}
@Override @Override
public void enter(GameContainer container, StateBasedGame game) public void enter(GameContainer container, StateBasedGame game)
throws SlickException { throws SlickException {