code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
class PauseSelectOptionEvent extends CancellableEvent {
|
||||
class NameEvent extends CancellableEvent {
|
||||
/**
|
||||
* Option name thats going to be selected
|
||||
* Name
|
||||
*/
|
||||
public var name:String;
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
import funkin.menus.StoryMenuState.WeekData;
|
||||
|
||||
class WeekSelectEvent extends CancellableEvent {
|
||||
/**
|
||||
* Week that is going to be selected
|
||||
*/
|
||||
public var week:WeekData;
|
||||
|
||||
/**
|
||||
* The difficulty that has been selected
|
||||
*/
|
||||
public var difficulty:String;
|
||||
|
||||
/**
|
||||
* At which emplacement the week is. Goes from 0 to the number of weeks - 1.
|
||||
*/
|
||||
public var weekID:Int;
|
||||
|
||||
/**
|
||||
* At which emplacement the difficulty is. Goes from 0 to the number of weeks - 1.
|
||||
*/
|
||||
public var difficultyID:Int;
|
||||
|
||||
public override function new(week:WeekData, difficulty:String, weekID:Int, difficultyID:Int) {
|
||||
super();
|
||||
|
||||
this.week = week;
|
||||
this.difficulty = difficulty;
|
||||
this.weekID = weekID;
|
||||
this.difficultyID = difficultyID;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user