From 1702e43f1242d231125d4b5d10daa4c23e071ae9 Mon Sep 17 00:00:00 2001 From: CharlesCatYT Date: Tue, 20 Feb 2024 20:48:37 -0500 Subject: [PATCH] shit. --- source/psychlua/VideoFunctions.hx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/psychlua/VideoFunctions.hx b/source/psychlua/VideoFunctions.hx index e028dec..89afa16 100644 --- a/source/psychlua/VideoFunctions.hx +++ b/source/psychlua/VideoFunctions.hx @@ -7,7 +7,7 @@ class VideoFunctions public static function implement(funk:FunkinLua) { var lua = funk.lua; - Lua_helper.add_callback(lua, "makeLuaVideo", function(tag:String, x:Float = 0, y:Float = 0) { + Lua_helper.add_callback(lua, "makeLuaVideo", function(tag:String, x:Int = 0, y:Int = 0) { tag = tag.replace('.', ''); LuaUtils.resetVideoTag(tag); var leVid:FlxVideoSprite = new FlxVideoSprite(x, y); @@ -55,7 +55,8 @@ class VideoFunctions if(psychlua.ScriptHandler.modchartVideos.exists(tag)) { var vid:FlxVideoSprite = psychlua.ScriptHandler.modchartVideos.get(tag); if(path != null && path.length > 0) { - vid.play(Paths.video(path), loop); + vid.load(Paths.video(path)); + vid.play(); } vid.bitmap.onOpening.add(function() { @@ -73,9 +74,9 @@ class VideoFunctions vid.bitmap.onEndReached.add(function() { psychlua.ScriptHandler.callOnLuas('onVideoEnd', [tag]); }, true); - vid.bitmap.onEncounteredError.add(function() { + /*vid.bitmap.onEncounteredError.add(function() { psychlua.ScriptHandler.callOnLuas('onVideoError', [tag]); - }, true); + }, true);*/ } }); Lua_helper.add_callback(lua, "stopLuaVideo", function(tag:String) {