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

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

@@ -175,4 +175,9 @@ function Pnt.pong()
gc.rectangle("fill",130,S.p1.y-50,20,100)
gc.setColor(.8,.8,1)
gc.rectangle("fill",1130,S.p2.y-50,20,100)
end
end
WIDGET.init("pong",{
WIDGET.newKey({name="reset",x=640,y=45,w=150,h=50, font=35,code=WIDGET.lnk.pressKey("r")}),
WIDGET.newKey({name="back", x=640,y=675,w=150,h=50, font=35,code=WIDGET.lnk.BACK}),
})