Merge pull request #528 from cklidify/modchart-camera-float
Changed setCamZoom and setHudZoom from Int to Float (For modcharts)
This commit is contained in:
commit
7dd9024403
@ -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
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user