整理代码

This commit is contained in:
MrZ626
2020-11-23 09:39:19 +08:00
parent 914a962a94
commit 44b151c617
44 changed files with 559 additions and 559 deletions

View File

@@ -170,7 +170,7 @@ local virtualkeySet={
},--PC key feedback(top&in a row)
}
WIDGET.init("setting_touch",{
WIDGET.newButton({name="default", x=520,y=90,w=200,h=80,font=35,
WIDGET.newButton{name="default", x=520,y=90,w=200,h=80,font=35,
code=function()
local D=virtualkeySet[sceneTemp.default]
for i=1,#VK_org do
@@ -189,14 +189,14 @@ WIDGET.init("setting_touch",{
sceneTemp.default=sceneTemp.default%5+1
sceneTemp.sel=nil
LOG.print("[ "..sceneTemp.default.." ]")
end}),
WIDGET.newSelector({name="snap", x=760,y=90,w=200,h=80,color="yellow",list={1,10,20,40,60,80},disp=WIDGET.lnk_STPval("snap"),code=WIDGET.lnk_STPsto("snap")}),
WIDGET.newButton({name="option", x=520,y=190,w=200,h=80,font=40,
end},
WIDGET.newSelector{name="snap", x=760,y=90,w=200,h=80,color="yellow",list={1,10,20,40,60,80},disp=WIDGET.lnk_STPval("snap"),code=WIDGET.lnk_STPsto("snap")},
WIDGET.newButton{name="option", x=520,y=190,w=200,h=80,font=40,
code=function()
SCN.go("setting_touchSwitch")
end}),
WIDGET.newButton({name="back", x=760,y=190,w=200,h=80,font=35,code=WIDGET.lnk_BACK}),
WIDGET.newSlider({name="size", x=450,y=270,w=460,unit=19,font=40,show="vkSize",
end},
WIDGET.newButton{name="back", x=760,y=190,w=200,h=80,font=35,code=WIDGET.lnk_BACK},
WIDGET.newSlider{name="size", x=450,y=270,w=460,unit=19,font=40,show="vkSize",
disp=function()
return VK_org[sceneTemp.sel].r/10-1
end,
@@ -207,5 +207,5 @@ WIDGET.init("setting_touch",{
end,
hide=function()
return not sceneTemp.sel
end}),
end},
})