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

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

@@ -130,4 +130,13 @@ function Pnt.setting_key()
end
setFont(35)
gc.print(text.page..S.board,280,570)
end
end
WIDGET.init("setting_key",{
WIDGET.newText({name="keyboard", x=340,y=30,font=25,color="lRed"}),
WIDGET.newText({name="keyboard", x=940,y=30,font=25,color="lRed"}),
WIDGET.newText({name="joystick", x=540,y=30,font=25,color="lBlue"}),
WIDGET.newText({name="joystick", x=1140,y=30,font=25,color="lBlue"}),
WIDGET.newText({name="help", x=50,y=650,font=30,align="L"}),
WIDGET.newButton({name="back", x=1140,y=640,w=170,h=80,font=40,code=WIDGET.lnk.BACK}),
})