控件代码分分布到场景代码中,优化控件相关代码
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
function sceneInit.minigame()
|
||||
BG.set("space")
|
||||
end
|
||||
end
|
||||
|
||||
WIDGET.init("minigame",{
|
||||
WIDGET.newButton({name="p15", x=240, y=250,w=350,h=120,font=40,code=WIDGET.lnk.goScene("p15")}),
|
||||
WIDGET.newButton({name="schulte_G", x=640, y=250,w=350,h=120,font=40,code=WIDGET.lnk.goScene("schulte_G")}),
|
||||
WIDGET.newButton({name="pong", x=1040, y=250,w=350,h=120,font=40,code=WIDGET.lnk.goScene("pong")}),
|
||||
WIDGET.newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=WIDGET.lnk.BACK}),
|
||||
})
|
||||
Reference in New Issue
Block a user