From e0efa341b0d171f6a0962c52943c1c6547594466 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Fri, 21 May 2021 13:48:42 -0400 Subject: [PATCH] Changed setCamZoom and setHudZoom from int to float Now you can have float value cam/hud zooms :) (Updated docs aswell) --- docs/modchart.md | 4 ++-- source/ModchartState.hx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; });