options now works in the pause menu
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1466
|
||||
1467
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.menus;
|
||||
|
||||
import funkin.options.OptionsMenu;
|
||||
import flixel.FlxCamera;
|
||||
import funkin.scripting.events.PauseCreationEvent;
|
||||
import funkin.scripting.events.NameEvent;
|
||||
@@ -143,6 +144,8 @@ class PauseSubState extends MusicBeatSubstate
|
||||
case "Change Controls":
|
||||
persistentDraw = false;
|
||||
openSubState(new KeybindsOptions());
|
||||
case "Options":
|
||||
FlxG.switchState(new OptionsMenu(true));
|
||||
case "Exit to menu":
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
|
||||
@@ -161,6 +161,7 @@ class Options
|
||||
});
|
||||
__eventAdded = true;
|
||||
}
|
||||
FlxG.sound.volume = volume;
|
||||
applySettings();
|
||||
}
|
||||
|
||||
@@ -168,7 +169,6 @@ class Options
|
||||
PlayerSettings.player1.setKeyboardScheme(Solo);
|
||||
FlxG.game.stage.quality = (FlxG.forceNoAntialiasing = !antialiasing) ? LOW : BEST;
|
||||
FlxG.autoPause = autoPause;
|
||||
FlxG.sound.volume = volume;
|
||||
}
|
||||
|
||||
public static function save() {
|
||||
|
||||
@@ -74,6 +74,8 @@ class OptionsMenu extends MusicBeatState {
|
||||
}
|
||||
add(alphabets);
|
||||
changeSelection(1);
|
||||
|
||||
CoolUtil.playMenuMusic();
|
||||
}
|
||||
|
||||
public override function update(elapsed:Float) {
|
||||
|
||||
Reference in New Issue
Block a user