Skip to content

Commit

Permalink
Added fadeOut to cameraFade function
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Sep 29, 2024
1 parent da46d1e commit fc5db96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/psychlua/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc5db96

Please sign in to comment.