parent
401d43ef42
commit
5f281fef11
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,43 @@
|
||||||
|
debug = true
|
||||||
|
|
||||||
|
local function debug_print(message)
|
||||||
|
if debug == true then
|
||||||
|
Printf(tostring(message))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function update_groups()
|
||||||
|
debug_print("Updating groups based of tags.")
|
||||||
|
end
|
||||||
|
|
||||||
|
local function setOVR(channel, argument)
|
||||||
|
if type(argument) == "number" then
|
||||||
|
Cmd('Store Group '..argument..' at Group "CASP_OVR Channel '..channel..'" /Overwrite')
|
||||||
|
debug_print("Updated CASP_OVR Channel "..channel.." to Group "..argument)
|
||||||
|
elseif type(argument) == "string" then
|
||||||
|
Cmd('Store Group "'..argument..'" at Group "CASP_OVR Channel '..channel..'" /Overwrite')
|
||||||
|
debug_print("Updated CASP_OVR Channel "..channel.." to Group "..argument)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function main(display_handle, args)
|
||||||
|
if args then
|
||||||
|
if string.match(args, ";") then
|
||||||
|
local operator, argument = args.partition(";")
|
||||||
|
if operator == "set_OVR_C1" then
|
||||||
|
setOVR(1, argument)
|
||||||
|
elseif operator == "set_OVR_C2" then
|
||||||
|
setOVR(2, argument)
|
||||||
|
elseif operator == "set_OVR_C3" then
|
||||||
|
setOVR(3, argument)
|
||||||
|
elseif operator == "set_OVR_C4" then
|
||||||
|
setOVR(4, argument)
|
||||||
|
elseif operator == "set_OVR_C5" then
|
||||||
|
setOVR(5, argument)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return main
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<GMA3 DataVersion="2.1.0.1">
|
||||||
|
<UserPlugin Name="flimr" Guid="E3 1C 05 FC 18 8A 10 00 0D 45 18 A2 5E 43 E6 27" Version="1.0.0.0">
|
||||||
|
<ComponentLua Name="flimr" Guid="37 F3 0C 07 C5 0C 10 02 B2 2C 1E 4D F2 1C 2D A1" FileName="flimr-plugin.lua"/>
|
||||||
|
</UserPlugin>
|
||||||
|
</GMA3>
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
Loading…
Reference in New Issue