fixed main fucntion bug
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+21
-21
@@ -317,6 +317,25 @@ end
|
||||
-- Main menu
|
||||
|
||||
function main()
|
||||
if args then
|
||||
local cues = SelectedSequence():Children()
|
||||
local spCues = {}
|
||||
|
||||
for i = 1, tablelength(cues), 1 do
|
||||
cue = cues[i]:Children()[1]
|
||||
cueNo = cues[i].no
|
||||
if cue.appearance then
|
||||
if cue.appearance.name == "Start Point" then
|
||||
table.insert(spCues, tonumber(cueNo))
|
||||
end
|
||||
end
|
||||
end
|
||||
for i = 1, 10, 1 do
|
||||
if args == "goto_sp"..tostring(i) then
|
||||
Cmd("Goto Cue "..tostring(spCues[i]/1000))
|
||||
end
|
||||
end
|
||||
else
|
||||
local resultTable = MessageBox(
|
||||
{
|
||||
title = "Song Tool - Main Menu",
|
||||
@@ -348,26 +367,7 @@ function main()
|
||||
else
|
||||
do return end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if args then
|
||||
local cues = SelectedSequence():Children()
|
||||
local spCues = {}
|
||||
|
||||
for i = 1, tablelength(cues), 1 do
|
||||
cue = cues[i]:Children()[1]
|
||||
cueNo = cues[i].no
|
||||
if cue.appearance then
|
||||
if cue.appearance.name == "Start Point" then
|
||||
table.insert(spCues, tonumber(cueNo))
|
||||
end
|
||||
end
|
||||
end
|
||||
for i = 1, 10, 1 do
|
||||
if args == "goto_sp"..tostring(i) then
|
||||
Cmd("Goto Cue "..tostring(spCues[i]/1000))
|
||||
end
|
||||
end
|
||||
else
|
||||
return main
|
||||
end
|
||||
return main
|
||||
Reference in New Issue
Block a user