fixed main fucntion bug
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+20
-20
@@ -317,6 +317,25 @@ end
|
|||||||
-- Main menu
|
-- Main menu
|
||||||
|
|
||||||
function main()
|
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(
|
local resultTable = MessageBox(
|
||||||
{
|
{
|
||||||
title = "Song Tool - Main Menu",
|
title = "Song Tool - Main Menu",
|
||||||
@@ -349,25 +368,6 @@ function main()
|
|||||||
do return end
|
do return end
|
||||||
end
|
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
|
return main
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user