Fix min and max values for events

min and max aren't supposed to be integers silly!!!



well i mean it's fine but what if you want precise floats!!!!
This commit is contained in:
swordcube
2024-03-27 00:54:46 -05:00
committed by GitHub
parent 165338f36c
commit 97a486f03e
+1 -1
View File
@@ -65,7 +65,7 @@ class EventsData {
var hscriptInterp:Interp = new Interp();
hscriptInterp.variables.set("Bool", TBool);
hscriptInterp.variables.set("Int", function (?min:Int, ?max:Int, ?step:Float):EventParamType {return TInt(min, max, step);});
hscriptInterp.variables.set("Float", function (?min:Int, ?max:Int, ?step:Float, ?precision:Int):EventParamType {return TFloat(min, max, step, precision);});
hscriptInterp.variables.set("Float", function (?min:Float, ?max:Float, ?step:Float, ?precision:Int):EventParamType {return TFloat(min, max, step, precision);});
hscriptInterp.variables.set("String", TString);
hscriptInterp.variables.set("StrumLine", TStrumLine);
hscriptInterp.variables.set("ColorWheel", TColorWheel);