Skip to content

Commit

Permalink
Fix Accidental Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JVNpixels committed Feb 20, 2025
1 parent 9b5053a commit 8c8585a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
54 changes: 27 additions & 27 deletions source/funkin/Preferences.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,6 @@ class Preferences
return value;
}

/**
* If enabled, the miss sound will play when the player misses a note.
* @default `true`
*/
public static var playMissSound(get, set):Bool;

static function get_playMissSound():Bool
{
return Save?.instance?.options?.playMissSound;
}

static function set_playMissSound(value:Bool):Bool
{
var save:Save = Save.instance;
save.options.playMissSound = value;
save.flush();
return value;
}

/**
* If disabled, flashing lights in the main menu and other areas will be less intense.
* @default `true`
Expand Down Expand Up @@ -156,20 +137,20 @@ class Preferences
}

/**
* If enabled, the game will automatically launch in fullscreen on startup.
* If enabled, the miss sound will play when the player misses a note.
* @default `true`
*/
public static var autoFullscreen(get, set):Bool;
public static var playMissSound(get, set):Bool;

static function get_autoFullscreen():Bool
static function get_playMissSound():Bool
{
return Save?.instance?.options?.autoFullscreen ?? true;
return Save?.instance?.options?.playMissSound;
}
static function set_autoFullscreen(value:Bool):Bool

static function set_playMissSound(value:Bool):Bool
{
var save:Save = Save.instance;
save.options.autoFullscreen = value;
save.options.playMissSound = value;
save.flush();
return value;
}
Expand All @@ -195,6 +176,25 @@ class Preferences
return value;
}

/**
* If enabled, the game will automatically launch in fullscreen on startup.
* @default `true`
*/
public static var autoFullscreen(get, set):Bool;

static function get_autoFullscreen():Bool
{
return Save?.instance?.options?.autoFullscreen ?? true;
}

static function set_autoFullscreen(value:Bool):Bool
{
var save:Save = Save.instance;
save.options.autoFullscreen = value;
save.flush();
return value;
}

public static var unlockedFramerate(get, set):Bool;

static function get_unlockedFramerate():Bool
Expand Down Expand Up @@ -280,4 +280,4 @@ class Preferences
#end
}
}
}
}
3 changes: 2 additions & 1 deletion source/funkin/ui/options/PreferencesMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ class PreferencesMenu extends Page
menuCamera = new FunkinCamera('prefMenu');
FlxG.cameras.add(menuCamera, false);
menuCamera.bgColor = 0x0;
camera = menuCamera;

hudCamera = new FlxCamera();
FlxG.cameras.add(hudCamera, false);
hudCamera.bgColor = 0x0;

camera = menuCamera;

add(items = new TextMenuList());
add(preferenceItems = new FlxTypedSpriteGroup<FlxSprite>());

Expand Down

0 comments on commit 8c8585a

Please sign in to comment.