Merge pull request #528 from cklidify/modchart-camera-float

Changed setCamZoom and setHudZoom from Int to Float (For modcharts)
This commit is contained in:
Kade M 2021-05-21 11:31:58 -07:00 committed by GitHub
commit 7dd9024403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

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