mirror of
https://github.com/jwetzell/q-sys-plugin-novastar.git
synced 2026-09-08 21:59:08 +00:00
fix control indexing
This commit is contained in:
+6
-11
@@ -130,7 +130,7 @@ function GetControls(props)
|
|||||||
UserPin = true
|
UserPin = true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = "IN0",
|
Name = "IN10",
|
||||||
ControlType = "Button",
|
ControlType = "Button",
|
||||||
ButtonType = "Trigger",
|
ButtonType = "Trigger",
|
||||||
PinStyle = "Input",
|
PinStyle = "Input",
|
||||||
@@ -735,7 +735,7 @@ function GetControlLayout(props)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
controls['IN0'] = {
|
controls['IN10'] = {
|
||||||
Style = "Button",
|
Style = "Button",
|
||||||
ButtonType = "Trigger",
|
ButtonType = "Trigger",
|
||||||
Legend = InputLabels[props['Model'].Value][10] ~= nil and InputLabels[props['Model'].Value][10] or"0",
|
Legend = InputLabels[props['Model'].Value][10] ~= nil and InputLabels[props['Model'].Value][10] or"0",
|
||||||
@@ -1279,13 +1279,8 @@ if (Controls) then
|
|||||||
sendCommand(v)
|
sendCommand(v)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if(k == 10) then
|
Controls['IN'..k].IsDisabled = true;
|
||||||
Controls['IN0'].IsDisabled = true;
|
Controls['IN'..k].IsInvisible = true;
|
||||||
Controls['IN0'].IsInvisible = true;
|
|
||||||
else
|
|
||||||
Controls['IN'..k].IsDisabled = true;
|
|
||||||
Controls['IN'..k].IsInvisible = true;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1338,7 +1333,7 @@ if (Controls) then
|
|||||||
Controls['IN7'].IsDisabled = true;
|
Controls['IN7'].IsDisabled = true;
|
||||||
Controls['IN8'].IsDisabled = true;
|
Controls['IN8'].IsDisabled = true;
|
||||||
Controls['IN9'].IsDisabled = true;
|
Controls['IN9'].IsDisabled = true;
|
||||||
Controls['IN0'].IsDisabled = true;
|
Controls['IN10'].IsDisabled = true;
|
||||||
Controls['Brightness'].IsDisabled = true;
|
Controls['Brightness'].IsDisabled = true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -1347,4 +1342,4 @@ if (Controls) then
|
|||||||
sendBrightness(Properties['Default Brightness'].Value)
|
sendBrightness(Properties['Default Brightness'].Value)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user