Skip to content

Commit

Permalink
Miss Sound Preference
Browse files Browse the repository at this point in the history
  • Loading branch information
JVNpixels authored Nov 16, 2024
1 parent 9e13ea0 commit ba6b4ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/funkin/Preferences.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,25 @@ 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

0 comments on commit ba6b4ab

Please sign in to comment.