Visible Toggle for strumlines
Default Hud Zoom Ability to disable scripts Fixed shader camera stuff
This commit is contained in:
@@ -4,7 +4,9 @@ import lime.app.Application;
|
||||
import flixel.util.FlxDestroyUtil.IFlxDestroyable;
|
||||
import haxe.io.Path;
|
||||
import hscript.IHScriptCustomConstructor;
|
||||
import flixel.util.FlxStringUtil;
|
||||
|
||||
@:allow(funkin.backend.scripting.ScriptPack)
|
||||
/**
|
||||
* Class used for scripting.
|
||||
*/
|
||||
@@ -159,6 +161,10 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
for(k=>e in getDefaultVariables(this)) {
|
||||
set(k, e);
|
||||
}
|
||||
set("disableScript", () -> {
|
||||
active = false;
|
||||
});
|
||||
set("__script__", this);
|
||||
}
|
||||
|
||||
|
||||
@@ -250,6 +256,17 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
], ERROR);
|
||||
}
|
||||
|
||||
override public function toString():String {
|
||||
return FlxStringUtil.getDebugString(didLoad ? [
|
||||
LabelValuePair.weak("path", path),
|
||||
LabelValuePair.weak("active", active),
|
||||
] : [
|
||||
LabelValuePair.weak("path", path),
|
||||
LabelValuePair.weak("active", active),
|
||||
LabelValuePair.weak("loaded", didLoad),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* PRIVATE HANDLERS - DO NOT TOUCH
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user