CountdownEvent
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
import flixel.tweens.FlxTween;
|
||||
|
||||
class CountdownEvent extends CancellableEvent {
|
||||
/**
|
||||
* At which count the countdown is. Normally goes 0-1-2-3-4 unless `PlayState.instance.introLength` is changed.
|
||||
*/
|
||||
public var swagCounter:Int;
|
||||
/**
|
||||
* Volume at which the intro countdown sound will play.
|
||||
*/
|
||||
public var volume:Float;
|
||||
/**
|
||||
* Path of the intro sound that'll be played.
|
||||
*/
|
||||
public var soundPath:String;
|
||||
/**
|
||||
* Path to the sprite path that'll be shown.
|
||||
*/
|
||||
public var spritePath:String;
|
||||
/**
|
||||
* Scale of the sprite.
|
||||
*/
|
||||
public var scale:Float;
|
||||
/**
|
||||
* Whenever antialiasing is enabled or not.
|
||||
*/
|
||||
public var antialiasing:Bool;
|
||||
|
||||
|
||||
/**
|
||||
* Created sprite, only available in `onCountdownPost`
|
||||
*/
|
||||
public var sprite:FlxSprite;
|
||||
/**
|
||||
* Created sound, only available in `onCountdownPost`
|
||||
*/
|
||||
public var sound:FlxSound;
|
||||
/**
|
||||
* Created tween, only available in `onCountdownPost`
|
||||
*/
|
||||
public var tween:FlxTween;
|
||||
|
||||
public function new(spritePath:String, soundPath:String, scale:Float = 1, volume:Float = 1, antialiasing:Bool = true) {
|
||||
super();
|
||||
this.volume = volume;
|
||||
this.soundPath = soundPath;
|
||||
this.spritePath = spritePath;
|
||||
this.scale = scale;
|
||||
this.antialiasing = antialiasing;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user