Some Multi renamer fixes
This commit is contained in:
@@ -331,6 +331,7 @@ local function Multi_Draw_LCD()
|
|||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
local output, nbr
|
local output, nbr
|
||||||
|
if done == 0 then
|
||||||
for i,v in ipairs(channel_names) do
|
for i,v in ipairs(channel_names) do
|
||||||
output = model.getOutput(i-1)
|
output = model.getOutput(i-1)
|
||||||
output["name"] = v
|
output["name"] = v
|
||||||
@@ -347,9 +348,10 @@ local function Multi_Draw_LCD()
|
|||||||
output["name"] = "BindCH"
|
output["name"] = "BindCH"
|
||||||
model.setOutput(15,output)
|
model.setOutput(15,output)
|
||||||
end
|
end
|
||||||
|
done = 1
|
||||||
|
end
|
||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
done = 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -363,15 +365,12 @@ local function Multi_Run(event)
|
|||||||
error("Cannot be run as a model script!")
|
error("Cannot be run as a model script!")
|
||||||
return 2
|
return 2
|
||||||
else
|
else
|
||||||
if done == 0 then
|
|
||||||
Multi_Draw_LCD()
|
Multi_Draw_LCD()
|
||||||
else
|
|
||||||
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
||||||
return 2
|
return 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
return { init=Multi_Init, run=Multi_Run }
|
return { init=Multi_Init, run=Multi_Run }
|
||||||
|
|||||||
@@ -331,6 +331,7 @@ local function Multi_Draw_LCD()
|
|||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
local output, nbr
|
local output, nbr
|
||||||
|
if done == 0 then
|
||||||
for i,v in ipairs(channel_names) do
|
for i,v in ipairs(channel_names) do
|
||||||
output = model.getOutput(i-1)
|
output = model.getOutput(i-1)
|
||||||
output["name"] = v
|
output["name"] = v
|
||||||
@@ -347,9 +348,10 @@ local function Multi_Draw_LCD()
|
|||||||
output["name"] = "BindCH"
|
output["name"] = "BindCH"
|
||||||
model.setOutput(15,output)
|
model.setOutput(15,output)
|
||||||
end
|
end
|
||||||
|
done = 1
|
||||||
|
end
|
||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
done = 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -363,15 +365,12 @@ local function Multi_Run(event)
|
|||||||
error("Cannot be run as a model script!")
|
error("Cannot be run as a model script!")
|
||||||
return 2
|
return 2
|
||||||
else
|
else
|
||||||
if done == 0 then
|
|
||||||
Multi_Draw_LCD()
|
Multi_Draw_LCD()
|
||||||
else
|
|
||||||
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
||||||
return 2
|
return 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
return { init=Multi_Init, run=Multi_Run }
|
return { init=Multi_Init, run=Multi_Run }
|
||||||
|
|||||||
@@ -331,6 +331,7 @@ local function Multi_Draw_LCD()
|
|||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Setting channel names.", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
local output, nbr
|
local output, nbr
|
||||||
|
if done == 0 then
|
||||||
for i,v in ipairs(channel_names) do
|
for i,v in ipairs(channel_names) do
|
||||||
output = model.getOutput(i-1)
|
output = model.getOutput(i-1)
|
||||||
output["name"] = v
|
output["name"] = v
|
||||||
@@ -347,9 +348,10 @@ local function Multi_Draw_LCD()
|
|||||||
output["name"] = "BindCH"
|
output["name"] = "BindCH"
|
||||||
model.setOutput(15,output)
|
model.setOutput(15,output)
|
||||||
end
|
end
|
||||||
|
done = 1
|
||||||
|
end
|
||||||
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
lcd.drawText(x_pos, y_pos+y_inc*line,"Done!", lcd_opt)
|
||||||
line = line + 1
|
line = line + 1
|
||||||
done = 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -363,15 +365,12 @@ local function Multi_Run(event)
|
|||||||
error("Cannot be run as a model script!")
|
error("Cannot be run as a model script!")
|
||||||
return 2
|
return 2
|
||||||
else
|
else
|
||||||
if done == 0 then
|
|
||||||
Multi_Draw_LCD()
|
Multi_Draw_LCD()
|
||||||
else
|
|
||||||
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
if event == EVT_VIRTUAL_ENTER or event == EVT_VIRTUAL_EXIT then
|
||||||
return 2
|
return 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
return { init=Multi_Init, run=Multi_Run }
|
return { init=Multi_Init, run=Multi_Run }
|
||||||
|
|||||||
Reference in New Issue
Block a user