some cool stuff
This commit is contained in:
@@ -38,6 +38,11 @@ class NoteCreationEvent extends CancellableEvent {
|
||||
*/
|
||||
public var noteScale:Float;
|
||||
|
||||
/**
|
||||
* Sing animation suffix. "-alt" for alt anim or "" for normal notes.
|
||||
*/
|
||||
public var animSuffix:String;
|
||||
|
||||
/**
|
||||
* [Description] Creates a new NoteCreationEvent
|
||||
* @param note
|
||||
@@ -46,7 +51,7 @@ class NoteCreationEvent extends CancellableEvent {
|
||||
* @param noteTypeID
|
||||
* @param mustHit
|
||||
*/
|
||||
public function new(note:Note, strumID:Int, noteType:String, noteTypeID:Int, mustHit:Bool, noteSprite:String, noteScale:Float) {
|
||||
public function new(note:Note, strumID:Int, noteType:String, noteTypeID:Int, mustHit:Bool, noteSprite:String, noteScale:Float, animSuffix:String) {
|
||||
super();
|
||||
this.note = note;
|
||||
this.strumID = strumID;
|
||||
@@ -55,5 +60,6 @@ class NoteCreationEvent extends CancellableEvent {
|
||||
this.mustHit = mustHit;
|
||||
this.noteSprite = noteSprite;
|
||||
this.noteScale = noteScale;
|
||||
this.animSuffix = animSuffix;
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,10 @@ class NoteHitEvent extends CancellableEvent {
|
||||
* Note Type name (null if default note)
|
||||
*/
|
||||
public var noteType:String;
|
||||
/**
|
||||
* Suffix of the animation. "-alt" for alt notes, "" for normal ones.
|
||||
*/
|
||||
public var animSuffix:String;
|
||||
/**
|
||||
* Direction of the press (0 = Left, 1 = Down, 2 = Up, 3 = Right)
|
||||
*/
|
||||
@@ -46,7 +50,7 @@ class NoteHitEvent extends CancellableEvent {
|
||||
/**
|
||||
* Creates a new NoteHitEvent.
|
||||
*/
|
||||
public function new(note:Note, character:Character, player:Bool, noteType:String, direction:Int, healthGain:Float, unmuteVocals:Bool = true, score:Int = 350) {
|
||||
public function new(note:Note, character:Character, player:Bool, noteType:String, direction:Int, healthGain:Float, unmuteVocals:Bool = true, score:Int = 350, animSuffix:String = "") {
|
||||
super();
|
||||
|
||||
this.note = note;
|
||||
@@ -57,6 +61,7 @@ class NoteHitEvent extends CancellableEvent {
|
||||
this.healthGain = healthGain;
|
||||
this.unmuteVocals = unmuteVocals;
|
||||
this.score = score;
|
||||
this.animSuffix = animSuffix;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user