This commit is contained in:
Yoshman29
2022-11-10 17:52:23 +01:00
parent abac831c1a
commit a1f49a3e10
5 changed files with 93 additions and 11 deletions
@@ -0,0 +1,30 @@
package funkin.scripting.events;
class MenuChangeEvent extends CancellableEvent {
/**
* Value after the change
*/
public var value:Int;
/**
* Value before the change
*/
public var oldValue:Int;
/**
* Amount of change
*/
public var change:Int;
/**
* Whenever the menu SFX should be played.
*/
public var playMenuSFX:Bool = true;
public function new(oldValue:Int, value:Int, change:Int) {
super();
this.value = value;
this.oldValue = value;
this.change = change;
}
}