diff --git a/source/psychlua/FunkinLua.hx b/source/psychlua/FunkinLua.hx index 70d4394d4f1..e458e1d8c7f 100644 --- a/source/psychlua/FunkinLua.hx +++ b/source/psychlua/FunkinLua.hx @@ -839,10 +839,10 @@ class FunkinLua { }); Lua_helper.add_callback(lua, "cameraFlash", function(camera:String, color:String, duration:Float,forced:Bool) { - LuaUtils.cameraFromString(camera).flash(CoolUtil.colorFromString(color), duration, null,forced); + LuaUtils.cameraFromString(camera).flash(CoolUtil.colorFromString(color), duration, null, forced); }); - Lua_helper.add_callback(lua, "cameraFade", function(camera:String, color:String, duration:Float,forced:Bool) { - LuaUtils.cameraFromString(camera).fade(CoolUtil.colorFromString(color), duration, false,null,forced); + Lua_helper.add_callback(lua, "cameraFade", function(camera:String, color:String, duration:Float, forced:Bool, ?fadeOut:Bool = false) { + LuaUtils.cameraFromString(camera).fade(CoolUtil.colorFromString(color), duration, fadeOut, null, forced); }); Lua_helper.add_callback(lua, "setRatingPercent", function(value:Float) { game.ratingPercent = value;