Follow-up to a6ece30: allow changing volume anywhere with ALT key.

The master volume can now be changed (using the mouse wheel) with the ALT key pressed in any menu, as in osu!.

Also improved the handling of dimmed tracks.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-03-26 20:45:33 -04:00
parent 18e57fdb96
commit c15cd5cb4c
8 changed files with 88 additions and 3 deletions

View File

@@ -653,6 +653,12 @@ public class DownloadsMenu extends BasicGameState {
@Override
public void mouseWheelMoved(int newValue) {
// change volume
if (input.isKeyDown(Input.KEY_LALT) || input.isKeyDown(Input.KEY_RALT)) {
UI.changeVolume((newValue < 0) ? -1 : 1);
return;
}
// block input during beatmap importing
if (importThread != null)
return;