Aegisub/automation/tests/test10.lua
Niels Martin Hansen 30792ec961 Multiple export filters with same name are now allowed, name clashes are resolved by adding (1), (2) etc. to the names.
Fixes to error reporting from Lua, now the error messages are more concise, and instead of exploding with an error message box, the script is just marked as "not loaded" and the actual error as its description.

Originally committed to SVN as r936.
2007-02-14 00:43:01 +00:00

19 lines
605 B
Lua

-- Automation 4 test file
-- Create a Filter feature that does some kara stuff
script_name = "Automation 4 test 10"
script_description = "Test reaction to export filter name clashes"
script_author = "Niels Martin Hansen"
script_version = "1"
include("utils.lua")
function function1(subtitles, config)
aegisub.debug.out("function 1")
end
function function2(subtitles, config)
aegisub.debug.out("function 2")
end
aegisub.register_filter("Export breaker", "Export filter with nameclash (1)", 500, function1)
aegisub.register_filter("Export breaker", "Export filter with nameclash (2)", 500, function2)