update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user