diff --git a/docs/modchart.md b/docs/modchart.md index a8bdfbe..16dc90f 100644 --- a/docs/modchart.md +++ b/docs/modchart.md @@ -199,11 +199,11 @@ Returns the current camera's x position Returns the current camera's y position -##### setCamZoom(int zoomAmount) +##### setCamZoom(float zoomAmount) Set's the current camera's zoom -##### setHudZoom(int zoomAmount) +##### setHudZoom(float zoomAmount) Set's the hud's zoom diff --git a/source/ModchartState.hx b/source/ModchartState.hx index f1815c9..08e59ba 100644 --- a/source/ModchartState.hx +++ b/source/ModchartState.hx @@ -392,11 +392,11 @@ class ModchartState return FlxG.camera.y; }); - Lua_helper.add_callback(lua,"setCamZoom", function(zoomAmount:Int) { + Lua_helper.add_callback(lua,"setCamZoom", function(zoomAmount:Float) { FlxG.camera.zoom = zoomAmount; }); - Lua_helper.add_callback(lua,"setHudZoom", function(zoomAmount:Int) { + Lua_helper.add_callback(lua,"setHudZoom", function(zoomAmount:Float) { PlayState.instance.camHUD.zoom = zoomAmount; });