splashes can be disabled

This commit is contained in:
Yoshman29
2023-02-18 17:01:18 +01:00
parent 5599b8ca16
commit 96f1bc7edf
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
2260
2261
+4 -2
View File
@@ -922,7 +922,9 @@ class PlayState extends MusicBeatState
notes.add(swagNote);
}
splashHandler.getSplashGroup(swagNote.splash);
// preload splash
if (Options.splashesEnabled)
splashHandler.getSplashGroup(swagNote.splash);
}
}
notes.sortNotes();
@@ -1564,7 +1566,7 @@ class PlayState extends MusicBeatState
var event:NoteHitEvent;
if (note.strumLine != null && !note.strumLine.cpu)
event = scripts.event("onPlayerHit", EventManager.get(NoteHitEvent).recycle(false, !note.isSustainNote, !note.isSustainNote, note, note.strumLine.characters, true, note.noteType, note.animSuffix, "game/score/", "", note.strumID, score, note.isSustainNote ? null : accuracy, note.noteData > 0 ? 0.023 : 0.004, daRating, !note.isSustainNote && daRating == "sick"));
event = scripts.event("onPlayerHit", EventManager.get(NoteHitEvent).recycle(false, !note.isSustainNote, !note.isSustainNote, note, note.strumLine.characters, true, note.noteType, note.animSuffix, "game/score/", "", note.strumID, score, note.isSustainNote ? null : accuracy, note.noteData > 0 ? 0.023 : 0.004, daRating, Options.splashesEnabled && !note.isSustainNote && daRating == "sick"));
else
event = scripts.event("onDadHit", EventManager.get(NoteHitEvent).recycle(false, false, false, note, note.strumLine.characters, false, note.noteType, note.animSuffix, "game/score/", "", note.strumID, 0, null, 0, daRating, false));
scripts.event("onNoteHit", event);
+1
View File
@@ -27,6 +27,7 @@ class Options
public static var week6PixelPerfect:Bool = true;
public static var lowMemoryMode:Bool = false;
public static var betaUpdates:Bool = false;
public static var splashesEnabled:Bool = true;
public static var hitWindow:Float = 250;
public static var framerate:Int = 120;
@@ -11,6 +11,10 @@ class AppearanceOptions extends OptionsScreen {
"Pixel Perfect Effect",
"If checked, Week 6 will have a pixel perfect effect to it enabled, aligning every pixel on the screen.",
"week6PixelPerfect"),
new Checkbox(
"Enable splashes",
"If checked, the game will show a note impact effect everytime you hit a note with a Sick! rating.",
"splashesEnabled"),
new Checkbox(
"Flashing Menu",
"If unchecked, will disable menu flashing when you select an option in the Main Menu, and other flashs will be slower",