整理代码,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

@@ -5,13 +5,13 @@ function scene.sceneInit()
end
scene.widgetList={
WIDGET.newButton{name="mg_15p", x=240, y=250,w=350,h=120,font=40,code=WIDGET.lnk_goScene("mg_15p")},
WIDGET.newButton{name="mg_schulteG",x=640, y=250,w=350,h=120,font=40,code=WIDGET.lnk_goScene("mg_schulteG")},
WIDGET.newButton{name="mg_pong", x=1040, y=250,w=350,h=120,font=40,code=WIDGET.lnk_goScene("mg_pong")},
WIDGET.newButton{name="mg_AtoZ", x=240, y=400,w=350,h=120,font=40,code=WIDGET.lnk_goScene("mg_AtoZ")},
WIDGET.newButton{name="mg_UTTT", x=640, y=400,w=350,h=120,font=30,code=WIDGET.lnk_goScene("mg_UTTT")},
WIDGET.newButton{name="mg_cubefield",x=1040,y=400,w=350,h=120,font=40,code=WIDGET.lnk_goScene("mg_cubefield")},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=WIDGET.lnk_BACK},
WIDGET.newButton{name="mg_15p", x=240, y=250,w=350,h=120,font=40,code=goScene"mg_15p"},
WIDGET.newButton{name="mg_schulteG",x=640, y=250,w=350,h=120,font=40,code=goScene"mg_schulteG"},
WIDGET.newButton{name="mg_pong", x=1040, y=250,w=350,h=120,font=40,code=goScene"mg_pong"},
WIDGET.newButton{name="mg_AtoZ", x=240, y=400,w=350,h=120,font=40,code=goScene"mg_AtoZ"},
WIDGET.newButton{name="mg_UTTT", x=640, y=400,w=350,h=120,font=30,code=goScene"mg_UTTT"},
WIDGET.newButton{name="mg_cubefield",x=1040,y=400,w=350,h=120,font=40,code=goScene"mg_cubefield"},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=backScene},
}
return scene