options now works in the pause menu

This commit is contained in:
Yoshman29
2022-12-13 23:19:12 +01:00
parent a6a2cc8c7e
commit 1b1506150d
4 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
1466
1467
+3
View File
@@ -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());
}
+1 -1
View File
@@ -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() {
+2
View File
@@ -74,6 +74,8 @@ class OptionsMenu extends MusicBeatState {
}
add(alphabets);
changeSelection(1);
CoolUtil.playMenuMusic();
}
public override function update(elapsed:Float) {