From 97a486f03e076a2f1a0cbfcfb1f86dac2375edb4 Mon Sep 17 00:00:00 2001 From: swordcube <49110074+swordcube@users.noreply.github.com> Date: Wed, 27 Mar 2024 00:54:46 -0500 Subject: [PATCH] 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!!!! --- source/funkin/backend/chart/EventsData.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/chart/EventsData.hx b/source/funkin/backend/chart/EventsData.hx index 7c105d22..16551cb7 100644 --- a/source/funkin/backend/chart/EventsData.hx +++ b/source/funkin/backend/chart/EventsData.hx @@ -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); @@ -127,4 +127,4 @@ enum EventParamType { TStrumLine; TColorWheel; TDropDown(?options:Array); -} \ No newline at end of file +}