Visible Toggle for strumlines

Default Hud Zoom
Ability to disable scripts
Fixed shader camera stuff
This commit is contained in:
NeeEoo
2023-06-09 23:19:58 +02:00
parent 6f0a104fdd
commit ee97bf118b
6 changed files with 65 additions and 13 deletions
+17
View File
@@ -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
*/