33 lines
766 B
Haxe
33 lines
766 B
Haxe
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();}
|
|
} |