Added draw stuff, and custom fields to notes

And added onPostStrumCreation
This commit is contained in:
NeeEoo
2023-05-30 17:34:08 +02:00
parent a46238c9d1
commit e3a88da009
9 changed files with 41 additions and 16 deletions
+4 -1
View File
@@ -241,7 +241,10 @@ class MusicBeatState extends FlxState implements IBeatReceiver
public override function draw() {
graphicCache.draw();
super.draw();
var e = event("draw", EventManager.get(DrawEvent).recycle());
if (!e.cancelled)
super.draw();
event("postDraw", e);
}
public override function switchTo(nextState:FlxState) {
@@ -0,0 +1,4 @@
package funkin.backend.scripting.events;
final class DrawEvent extends CancellableEvent {
}