if moda is in {"cue fire", "sub full", "sub min", "sub fade", "go"} then
set network patch number of thecue to 2
else if moda is "START spare son" then
set network patch number of thecue to 3
else if moda is "UDP" then
set network patch number of thecue to 4
set udpnum to text returned of (display dialog "message UDP" buttons {"Create", "Cancel"} default button 1 default answer "" cancel button "Cancel" with icon note) -- ### Not entirely clear what purpose lxnum serves for this type? ###
end if
if moda is "cue fire" then
set parameter values of thecue to {"cue", "fire", lxnum}
else if moda is "sub full" then
set parameter values of thecue to {"sub", "full", lxnum, "1"} -- Extra parameter in QLab 5 for "Button"
else if moda is "sub min" then
set parameter values of thecue to {"sub", "min", lxnum, "1"} -- Extra parameter in QLab 5 for "Button"
else if moda is "sub fade" then -- ### INFORMATION ABOUT THIS CUE TYPE MISSING FROM ORIGINAL SCRIPT ###
set parameter values of thecue to {"sub", "set", lxnum}
set parameter fades enabled of thecue to {false, false, false, true}
set fade from of thecue to 0 -- ###TBC###
set fade to of thecue to 1 -- ###TBC###
set duration of thecue to 3 -- ###TBC###
else if moda is "go" then
set parameter values of thecue to {"custom", "/eos/key/go"}
else if moda is "START spare son" then
set parameter values of thecue to {"cues", "useActive", lxnum, "all", "start"}
else if moda is "UDP" then
set custom string of thecue to udpnum
end if
if moda is in {"cue fire", "sub full", "sub min"} then
set q name of thecue to "TOP LUX CUE " & theLabel
else if moda is "go" then
set q name of thecue to "LUX " & theLabel
else if (moda = "sub fade") then
set q name of thecue to "LUX SUB " & theLabel
else if moda = "START spare son" then
set q name of thecue to "START Spare Son " & theLabel
else if moda = "UDP" then
set q name of thecue to "Timeline " & theLabel
end if
if moda is "START spare son" then
set q color of thecue to "blue"
else if moda is "UDP" then
set q color of thecue to "purple"
else
set q color of thecue to "orange"
end if
if moda is "cue fire" then
set q number of thecue to "LX Cue " & lxnum
else if moda is "UDP" then
set q number of thecue to "V"
end if
end tell