state scripting
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
class ResizeEvent extends CancellableEvent {
|
||||
/**
|
||||
* New width
|
||||
*/
|
||||
public var width:Int;
|
||||
/**
|
||||
* New height
|
||||
*/
|
||||
public var height:Int;
|
||||
|
||||
/**
|
||||
* Old width (may be null)
|
||||
*/
|
||||
public var oldWidth:Null<Int>;
|
||||
|
||||
/**
|
||||
* Old height (may be null)
|
||||
*/
|
||||
public var oldHeight:Null<Int>;
|
||||
public function new(width:Int, height:Int, ?oldWidth:Int, ?oldHeight:Int) {
|
||||
super();
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.oldWidth = oldWidth;
|
||||
this.oldHeight = oldHeight;
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
import flixel.FlxSubState;
|
||||
import flixel.FlxState;
|
||||
|
||||
class SubstateEvent extends CancellableEvent {
|
||||
class StateEvent extends CancellableEvent {
|
||||
/**
|
||||
* Substate that is about to be opened/closed
|
||||
*/
|
||||
public var substate:FlxSubState;
|
||||
public var substate:FlxState;
|
||||
|
||||
public function new(substate:FlxSubState) {
|
||||
public function new(substate:FlxState) {
|
||||
super();
|
||||
this.substate = substate;
|
||||
}
|
||||
Reference in New Issue
Block a user