Files
CodenameEngine/source/funkin/scripting/events/MenuChangeEvent.hx
T
2022-11-10 17:52:23 +01:00

30 lines
581 B
Haxe

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;
}
}