fixed arg handels
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+5
-2
@@ -203,11 +203,12 @@ function StartPointerCueSelectionMenu(main_sequence_no)
|
|||||||
for i = 1, tablelength(cues) do
|
for i = 1, tablelength(cues) do
|
||||||
if cues[i]:Children()[1].appearance then
|
if cues[i]:Children()[1].appearance then
|
||||||
if tostring(cues[i]:Children()[1].appearance.name) == "Start Point" then
|
if tostring(cues[i]:Children()[1].appearance.name) == "Start Point" then
|
||||||
spCues = i
|
spCues = spCues + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
debug_print(tostring(spCues))
|
||||||
if spCues >= 9 then
|
if spCues >= 9 then
|
||||||
LimitReachedMenu(main_sequence_no)
|
LimitReachedMenu(main_sequence_no)
|
||||||
else
|
else
|
||||||
@@ -316,7 +317,8 @@ end
|
|||||||
|
|
||||||
-- Main menu
|
-- Main menu
|
||||||
|
|
||||||
function main()
|
function main(display_handle, args)
|
||||||
|
debug_print(tostring(args))
|
||||||
if args then
|
if args then
|
||||||
local cues = SelectedSequence():Children()
|
local cues = SelectedSequence():Children()
|
||||||
local spCues = {}
|
local spCues = {}
|
||||||
@@ -335,6 +337,7 @@ function main()
|
|||||||
Cmd("Goto Cue "..tostring(spCues[i]/1000))
|
Cmd("Goto Cue "..tostring(spCues[i]/1000))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- args = nil
|
||||||
else
|
else
|
||||||
local resultTable = MessageBox(
|
local resultTable = MessageBox(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user