Allow changing volume in the game paused menu.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
850a6c3882
commit
a6ece307ff
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user