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:
parent
d7ceb0eaec
commit
e0efa341b0
@ -199,11 +199,11 @@ Returns the current camera's x position
|
|||||||
|
|
||||||
Returns the current camera's y position
|
Returns the current camera's y position
|
||||||
|
|
||||||
##### setCamZoom(int zoomAmount)
|
##### setCamZoom(float zoomAmount)
|
||||||
|
|
||||||
Set's the current camera's zoom
|
Set's the current camera's zoom
|
||||||
|
|
||||||
##### setHudZoom(int zoomAmount)
|
##### setHudZoom(float zoomAmount)
|
||||||
|
|
||||||
Set's the hud's zoom
|
Set's the hud's zoom
|
||||||
|
|
||||||
|
@ -392,11 +392,11 @@ class ModchartState
|
|||||||
return FlxG.camera.y;
|
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;
|
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;
|
PlayState.instance.camHUD.zoom = zoomAmount;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user