mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
the volume slider thing
This commit is contained in:
parent
317ddd16a1
commit
bd31449cd5
2 changed files with 4 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class Settings {
|
|||
powerup: Key.MOUSE_LEFT,
|
||||
freelook: Key.MOUSE_RIGHT,
|
||||
alwaysFreeLook: true,
|
||||
cameraSensitivity: 1.3,
|
||||
cameraSensitivity: 0.6,
|
||||
invertYAxis: false,
|
||||
respawn: Key.BACKSPACE,
|
||||
blast: Key.E,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import h3d.Vector;
|
|||
import src.ResourceLoader;
|
||||
import src.Settings;
|
||||
import src.Util;
|
||||
import src.AudioManager;
|
||||
|
||||
class InputOptionsGui extends GuiImage {
|
||||
var innerCtrl:GuiControl;
|
||||
|
|
@ -73,6 +74,7 @@ class InputOptionsGui extends GuiImage {
|
|||
|
||||
var musicOpt = optionCollection.addOption(1, "Music Volume", numberRange(0, 100, 5), (idx) -> {
|
||||
Settings.optionsSettings.musicVolume = (idx / 20.0);
|
||||
AudioManager.updateVolumes();
|
||||
return true;
|
||||
}, 0.5, 118);
|
||||
|
||||
|
|
@ -80,6 +82,7 @@ class InputOptionsGui extends GuiImage {
|
|||
|
||||
var soundOpt = optionCollection.addOption(1, "Effects Volume", numberRange(0, 100, 5), (idx) -> {
|
||||
Settings.optionsSettings.soundVolume = (idx / 20.0);
|
||||
AudioManager.updateVolumes();
|
||||
return true;
|
||||
}, 0.5, 118);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue