Fix stuff
This commit is contained in:
@@ -13,8 +13,7 @@ import flixel.math.FlxRect;
|
||||
import flixel.math.FlxPoint;
|
||||
import funkin.backend.system.interfaces.IBeatReceiver;
|
||||
|
||||
@:enum
|
||||
abstract XMLAnimType(Int)
|
||||
enum abstract XMLAnimType(Int)
|
||||
{
|
||||
var NONE = 0;
|
||||
var BEAT = 1;
|
||||
|
||||
@@ -45,7 +45,9 @@ class HScript extends Script {
|
||||
this.trace(v);
|
||||
}));
|
||||
|
||||
#if GLOBAL_SCRIPT
|
||||
funkin.backend.scripting.GlobalScript.call("onScriptCreated", [this, "hscript"]);
|
||||
#end
|
||||
loadFromString(code);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,8 +30,7 @@ final class PlayAnimEvent extends CancellableEvent {
|
||||
/**
|
||||
Contains all contexts possible for `PlayAnimEvent`.
|
||||
**/
|
||||
@:enum
|
||||
abstract PlayAnimContext(String) {
|
||||
enum abstract PlayAnimContext(String) {
|
||||
/**
|
||||
No context was given for the animation.
|
||||
The character won't dance until the animation is finished
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package funkin.backend.system;
|
||||
|
||||
@:enum
|
||||
abstract ErrorCode(Int) {
|
||||
enum abstract ErrorCode(Int) {
|
||||
var OK = 0;
|
||||
var FAILED = 1;
|
||||
var MISSING_PROPERTY = 2;
|
||||
|
||||
@@ -125,8 +125,7 @@ typedef GitHubUser = {
|
||||
var updated_at:String;
|
||||
}
|
||||
|
||||
@:enum
|
||||
abstract GitHubUserType(String) {
|
||||
enum abstract GitHubUserType(String) {
|
||||
var USER = "User";
|
||||
var ORGANIZATION = "Organization";
|
||||
}
|
||||
@@ -185,8 +185,7 @@ class UpdaterProgress {
|
||||
public function new() {}
|
||||
}
|
||||
|
||||
@:enum
|
||||
abstract UpdaterStep(Int) {
|
||||
enum abstract UpdaterStep(Int) {
|
||||
var PREPARING = 0;
|
||||
var DOWNLOADING_ASSETS = 1;
|
||||
var DOWNLOADING_EXECUTABLE = 2;
|
||||
|
||||
Reference in New Issue
Block a user