diff --git a/content/kramer3000.qplug b/content/kramer3000.qplug index 237d19d..e129ca2 100644 --- a/content/kramer3000.qplug +++ b/content/kramer3000.qplug @@ -30,7 +30,7 @@ local Colors = { input_count = 6 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 -- While this function can be very useful, it is completely optional and not always needed. @@ -40,7 +40,7 @@ function GetProperties() { Name = "IP Address", Type = "string", - Value = "192.168.1.39" + Value = "127.0.0.1" }, { Name = 'Input Count', @@ -165,22 +165,22 @@ function GetControlLayout(props) Color = Colors.Black, Position = { (0 + 0), - (0 + (1.5 * 24)) + (i * 24) + (0 + (1.5 * 24)) + ((i-1) * 24) }, Size = {32,24} } ) end - for i = 0, output_count do - if (i == 0) then + for o = 0, output_count do + if (o == 0) then table.insert( graphics, { Type = "Text", Text = "Out\rAll", Color = Colors.Black, - Position = {0 + ((i+1) * 32), (0 + (0.5 * 24))}, + Position = {0 + ((o+1) * 32), (0 + (0.5 * 24))}, Size = {32,24} } ) @@ -191,7 +191,7 @@ function GetControlLayout(props) Type = "Text", Text = "Out\r" .. i, Color = Colors.Black, - Position = {0 + ((i+1) * 32), (0 + (0.5 * 24))}, + Position = {0 + ((o+1) * 32), (0 + (0.5 * 24))}, Size = {32,24} } ) @@ -199,14 +199,14 @@ function GetControlLayout(props) end 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] = { - PrettyName = "Output " .. o .. "~In" .. i .. " -> Out" .. o, + PrettyName = "In" .. i .. " -> Out" .. o, Style = "Button", Legend = tostring(i), Position = { 0 + ((o+1) * 32), - 0 + (1.5 * 24 + (i * 24)) + 0 + (1.5 * 24 + ((i-1) * 24)) }, Size = {32,24} }