This commit is contained in:
Yoshman29
2022-10-30 20:30:24 +01:00
parent 9c07bb26b7
commit fd2667bfa6
4 changed files with 111 additions and 74 deletions
@@ -0,0 +1,33 @@
package funkin.scripting.events;
class StrumCreationEvent extends CancellableEvent {
@:dox(hide) public var __doAnimation = !PlayState.isStoryMode;
/**
* The strum that is being created
*/
public var strum:Strum;
/**
* Player ID
*/
public var player:Int;
/**
* Strum ID, for the sprite.
*/
public var strumID:Int;
public function new(strum:Strum, player:Int, strumID:Int) {
this.strum = strum;
this.player = player;
this.strumID = strumID;
}
/**
* Cancels the animation that makes the strum "land" in the strumline.
*/
public function cancelAnimation() {__doAnimation = false;}
@:dox(hide) public function preventAnimation() {cancelAnimation();}
}
@@ -0,0 +1,12 @@
package funkin.scripting.events;
class SubstateEvent {
/**
* Substate that is about to be opened/closed
*/
public var substate:FlxSubState;
public function new(substate:FlxSubState) {
this.substate = substate;
}
}