Changed setCamZoom and setHudZoom from int to float

Now you can have float value cam/hud zooms :)

(Updated docs aswell)
This commit is contained in:
Carson Kompon
2021-05-21 13:48:42 -04:00
parent d7ceb0eaec
commit e0efa341b0
2 changed files with 4 additions and 4 deletions

View File

@ -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;
});