mod系统初版(三个mod未完成)

This commit is contained in:
MrZ626
2020-11-21 20:20:48 +08:00
parent c38ef7c487
commit 046d173090
12 changed files with 401 additions and 143 deletions

View File

@@ -123,6 +123,8 @@ function keyDown.mode(key)
SCN.push()
loadGame(mapCam.sel)
end
elseif key=="f1"then
SCN.go("mod")
elseif key=="escape"then
if mapCam.sel then
mapCam.sel=nil
@@ -307,6 +309,7 @@ function Pnt.mode()
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}),
WIDGET.newKey({name="mod", x=140,y=655,w=210,h=80,font=35,code=WIDGET.lnk_goScene("mod")}),
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}),
})