控件代码分分布到场景代码中,优化控件相关代码
This commit is contained in:
@@ -336,4 +336,9 @@ function Pnt.mode()
|
||||
gc.setColor(1,1,1)
|
||||
gc.draw(TEXTURE.mapCross,460-20,360-20)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
WIDGET.init("mode",{
|
||||
WIDGET.newButton({name="start", x=1040, y=655,w=180,h=80, font=40,code=WIDGET.lnk.pressKey("return"),hide=function()return not mapCam.sel end}),
|
||||
WIDGET.newButton({name="back", x=1200, y=655,w=120,h=80, font=40,code=WIDGET.lnk.BACK}),
|
||||
})
|
||||
Reference in New Issue
Block a user