控件系统微调,lnk系列函数移出table

This commit is contained in:
MrZ626
2020-11-13 16:29:04 +08:00
parent 0bf8cda441
commit 78fc5bb8e5
34 changed files with 326 additions and 327 deletions

View File

@@ -262,18 +262,18 @@ WIDGET.init("custom_field",{
WIDGET.newButton({name="any", x=600, y=400,w=120,color="lGrey", font=40,code=setPen(0)}),
WIDGET.newButton({name="space", x=730, y=400,w=120,color="grey", font=65,code=setPen(-1)}),
WIDGET.newButton({name="pushLine", x=990, y=400,w=120,h=120,color="lYellow",font=20,code=WIDGET.lnk.pressKey("k")}),
WIDGET.newButton({name="delLine", x=1120, y=400,w=120,h=120,color="lYellow",font=20,code=WIDGET.lnk.pressKey("l")}),
WIDGET.newButton({name="pushLine", x=990, y=400,w=120,h=120,color="lYellow",font=20,code=WIDGET.lnk_pressKey("k")}),
WIDGET.newButton({name="delLine", x=1120, y=400,w=120,h=120,color="lYellow",font=20,code=WIDGET.lnk_pressKey("l")}),
WIDGET.newButton({name="copy", x=730, y=530,w=120,color="lRed", font=35,code=WIDGET.lnk.pressKey("cC")}),
WIDGET.newButton({name="paste", x=860, y=530,w=120,color="lBlue", font=35,code=WIDGET.lnk.pressKey("cV")}),
WIDGET.newButton({name="clear", x=990, y=530,w=120,color="white", font=40,code=WIDGET.lnk.pressKey("delete")}),
WIDGET.newSwitch({name="demo", x=755, y=640,disp=WIDGET.lnk.STPval("demo"),code=WIDGET.lnk.STPrev("demo")}),
WIDGET.newButton({name="copy", x=730, y=530,w=120,color="lRed", font=35,code=WIDGET.lnk_pressKey("cC")}),
WIDGET.newButton({name="paste", x=860, y=530,w=120,color="lBlue", font=35,code=WIDGET.lnk_pressKey("cV")}),
WIDGET.newButton({name="clear", x=990, y=530,w=120,color="white", font=40,code=WIDGET.lnk_pressKey("delete")}),
WIDGET.newSwitch({name="demo", x=755, y=640,disp=WIDGET.lnk_STPval("demo"),code=WIDGET.lnk_STPrev("demo")}),
WIDGET.newButton({name="newPage", x=100, y=110,w=160,h=110,color="sky",font=20,code=WIDGET.lnk.pressKey("n")}),
WIDGET.newButton({name="delPage", x=100, y=230,w=160,h=110,color="lRed",font=20,code=WIDGET.lnk.pressKey("m")}),
WIDGET.newButton({name="prevPage", x=100, y=350,w=160,h=110,color="lGreen",font=20,code=WIDGET.lnk.pressKey("sTab"),hide=WIDGET.lnk.STPeq("page",1)}),
WIDGET.newButton({name="nextPage", x=100, y=470,w=160,h=110,color="lGreen",font=20,code=WIDGET.lnk.pressKey("tab"),hide=function()return sceneTemp.page==#FIELD end}),
WIDGET.newButton({name="newPage", x=100, y=110,w=160,h=110,color="sky",font=20,code=WIDGET.lnk_pressKey("n")}),
WIDGET.newButton({name="delPage", x=100, y=230,w=160,h=110,color="lRed",font=20,code=WIDGET.lnk_pressKey("m")}),
WIDGET.newButton({name="prevPage", x=100, y=350,w=160,h=110,color="lGreen",font=20,code=WIDGET.lnk_pressKey("sTab"),hide=WIDGET.lnk_STPeq("page",1)}),
WIDGET.newButton({name="nextPage", x=100, y=470,w=160,h=110,color="lGreen",font=20,code=WIDGET.lnk_pressKey("tab"),hide=function()return sceneTemp.page==#FIELD end}),
WIDGET.newButton({name="back", x=1140, y=640, w=170,h=80,font=40,code=WIDGET.lnk.BACK}),
WIDGET.newButton({name="back", x=1140, y=640, w=170,h=80,font=40,code=WIDGET.lnk_BACK}),
})