Options Rewrite WIP not functional yet

This commit is contained in:
Ralty
2025-07-26 16:21:53 +07:00
parent 71242699ea
commit f20fc25a82
19 changed files with 639 additions and 409 deletions
+2 -2
View File
@@ -519,8 +519,8 @@ final class CoolUtil
* @param menuSFX Menu SFX to play
* @param volume At which volume it should play
*/
@:noUsing public static inline function playMenuSFX(menuSFX:CoolSfx = SCROLL, volume:Float = 1) {
FlxG.sound.play(Paths.sound('menu/' + switch(menuSFX) {
@:noUsing public static inline function playMenuSFX(menuSFX:CoolSfx = SCROLL, volume:Float = 1):FlxSound {
return FlxG.sound.play(Paths.sound('menu/' + switch(menuSFX) {
case CONFIRM: 'confirm';
case CANCEL: 'cancel';
case SCROLL: 'scroll';