Non scoreable notes for Spaghetti
Co-Authored-By: Eric <4635334+EliteMasterEric@users.noreply.github.com>
This commit is contained in:
committed by
Hundrec
co-authored by
Eric
parent
92df70c864
commit
2cd7be00af
+1
-1
Submodule assets updated: eefb3a86cd...1ef06a2f12
@@ -0,0 +1,27 @@
|
||||
package funkin.play.notes.notekind;
|
||||
|
||||
import funkin.modding.events.ScriptEvent.HitNoteScriptEvent;
|
||||
import funkin.modding.events.ScriptEvent.NoteScriptEvent;
|
||||
|
||||
/**
|
||||
* A custom note kind which has custom functionality, preventing notes from being scored in the Results Screen.
|
||||
*/
|
||||
class NonScoreableNoteKind extends NoteKind
|
||||
{
|
||||
public function new()
|
||||
{
|
||||
super("non_scoreable", "Non-scoreable");
|
||||
scoreable = false;
|
||||
}
|
||||
|
||||
public override function onNoteMiss(event:NoteScriptEvent):Void
|
||||
{
|
||||
event.note.visible = false;
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
public override function onNoteHit(event:HitNoteScriptEvent):Void
|
||||
{
|
||||
event.cancel();
|
||||
}
|
||||
}
|
||||
@@ -193,6 +193,7 @@ class ChartEditorDropdowns
|
||||
"" => "Default",
|
||||
"~CUSTOM~" => "Custom",
|
||||
"noanim" => "No Animation",
|
||||
"non_scoreable" => "Non-scoreable",
|
||||
// Weeks 1-7
|
||||
"censor" => "[UH-OH!] Censor Bar",
|
||||
"mom" => "Mom Sings (Week 5)",
|
||||
|
||||
Reference in New Issue
Block a user