控件代码分分布到场景代码中,优化控件相关代码

This commit is contained in:
MrZ626
2020-11-02 11:08:04 +08:00
parent e720387c61
commit 95fce6ca01
39 changed files with 917 additions and 902 deletions

View File

@@ -27,4 +27,14 @@ function Pnt.help()
setFont(30)
mStr(text.support,150+sin(Timer()*4)*20,283)
mStr(text.support,1138-sin(Timer()*4)*20,270)
end
end
WIDGET.init("help",{
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="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}),
})