整理代码,WIDGET.lnk系列函数移出WIDGET模块

This commit is contained in:
MrZ626
2021-01-05 15:40:43 +08:00
parent 19b2f268a8
commit d329f665b1
44 changed files with 417 additions and 394 deletions

View File

@@ -41,11 +41,11 @@ end
scene.widgetList={
WIDGET.newImage{name="pay1", x=20, y=20},
WIDGET.newImage{name="pay2", x=1014, y=20},
WIDGET.newButton{name="dict", x=1140, y=410,w=220,h=70,font=35,code=WIDGET.lnk_goScene("dict")},
WIDGET.newButton{name="staff", x=1140, y=490,w=220,h=70,font=35,code=WIDGET.lnk_goScene("staff")},
WIDGET.newButton{name="his", x=1140, y=570,w=220,h=70,font=35,code=WIDGET.lnk_goScene("history")},
WIDGET.newButton{name="dict", x=1140, y=410,w=220,h=70,font=35,code=goScene"dict"},
WIDGET.newButton{name="staff", x=1140, y=490,w=220,h=70,font=35,code=goScene"staff"},
WIDGET.newButton{name="his", x=1140, y=570,w=220,h=70,font=35,code=goScene"history"},
WIDGET.newButton{name="qq", x=1140, y=650,w=220,h=70,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=35,code=WIDGET.lnk_BACK},
WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=35,code=backScene},
}
return scene