mirror of
https://github.com/jwetzell/q-sys-plugin-kramer-3000.git
synced 2026-09-10 08:29:34 +00:00
cleanup
This commit is contained in:
+10
-10
@@ -30,7 +30,7 @@ local Colors = {
|
|||||||
|
|
||||||
input_count = 6
|
input_count = 6
|
||||||
output_count = 2
|
output_count = 2
|
||||||
ip_address = '192.168.1.39'
|
ip_address = '127.0.0.1'
|
||||||
|
|
||||||
-- We can let users determine some of the plugin properties by exposing them here
|
-- We can let users determine some of the plugin properties by exposing them here
|
||||||
-- While this function can be very useful, it is completely optional and not always needed.
|
-- While this function can be very useful, it is completely optional and not always needed.
|
||||||
@@ -40,7 +40,7 @@ function GetProperties()
|
|||||||
{
|
{
|
||||||
Name = "IP Address",
|
Name = "IP Address",
|
||||||
Type = "string",
|
Type = "string",
|
||||||
Value = "192.168.1.39"
|
Value = "127.0.0.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = 'Input Count',
|
Name = 'Input Count',
|
||||||
@@ -165,22 +165,22 @@ function GetControlLayout(props)
|
|||||||
Color = Colors.Black,
|
Color = Colors.Black,
|
||||||
Position = {
|
Position = {
|
||||||
(0 + 0),
|
(0 + 0),
|
||||||
(0 + (1.5 * 24)) + (i * 24)
|
(0 + (1.5 * 24)) + ((i-1) * 24)
|
||||||
},
|
},
|
||||||
Size = {32,24}
|
Size = {32,24}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, output_count do
|
for o = 0, output_count do
|
||||||
if (i == 0) then
|
if (o == 0) then
|
||||||
table.insert(
|
table.insert(
|
||||||
graphics,
|
graphics,
|
||||||
{
|
{
|
||||||
Type = "Text",
|
Type = "Text",
|
||||||
Text = "Out\rAll",
|
Text = "Out\rAll",
|
||||||
Color = Colors.Black,
|
Color = Colors.Black,
|
||||||
Position = {0 + ((i+1) * 32), (0 + (0.5 * 24))},
|
Position = {0 + ((o+1) * 32), (0 + (0.5 * 24))},
|
||||||
Size = {32,24}
|
Size = {32,24}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -191,7 +191,7 @@ function GetControlLayout(props)
|
|||||||
Type = "Text",
|
Type = "Text",
|
||||||
Text = "Out\r" .. i,
|
Text = "Out\r" .. i,
|
||||||
Color = Colors.Black,
|
Color = Colors.Black,
|
||||||
Position = {0 + ((i+1) * 32), (0 + (0.5 * 24))},
|
Position = {0 + ((o+1) * 32), (0 + (0.5 * 24))},
|
||||||
Size = {32,24}
|
Size = {32,24}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -199,14 +199,14 @@ function GetControlLayout(props)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for o = 0, output_count do -- For each output
|
for o = 0, output_count do -- For each output
|
||||||
for i = 0, input_count do -- For each input
|
for i = 1, input_count do -- For each input
|
||||||
layout["vid-input_" .. i .. "-output_" .. o] = {
|
layout["vid-input_" .. i .. "-output_" .. o] = {
|
||||||
PrettyName = "Output " .. o .. "~In" .. i .. " -> Out" .. o,
|
PrettyName = "In" .. i .. " -> Out" .. o,
|
||||||
Style = "Button",
|
Style = "Button",
|
||||||
Legend = tostring(i),
|
Legend = tostring(i),
|
||||||
Position = {
|
Position = {
|
||||||
0 + ((o+1) * 32),
|
0 + ((o+1) * 32),
|
||||||
0 + (1.5 * 24 + (i * 24))
|
0 + (1.5 * 24 + ((i-1) * 24))
|
||||||
},
|
},
|
||||||
Size = {32,24}
|
Size = {32,24}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user