Added draw stuff, and custom fields to notes
And added onPostStrumCreation
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user