主菜单退出按钮改成返回按钮
This commit is contained in:
@@ -22,6 +22,8 @@ function scene.mouseDown(_,_,k)
|
||||
else
|
||||
SCN.go(SETTING.simpMode and"main_simple"or"main")
|
||||
end
|
||||
else
|
||||
SCN.swapTo("quit","slowFade")
|
||||
end
|
||||
end
|
||||
function scene.touchDown()
|
||||
@@ -30,7 +32,7 @@ end
|
||||
function scene.keyDown(key)
|
||||
if key=="escape"then
|
||||
VOC.play("bye")
|
||||
SCN.back()
|
||||
SCN.swapTo("quit","slowFade")
|
||||
else
|
||||
scene.mouseDown()
|
||||
end
|
||||
|
||||
@@ -193,7 +193,7 @@ scene.widgetList={
|
||||
{"doArc",53,31,40,2.3,3.9},
|
||||
}},
|
||||
WIDGET.newButton{name="about", x=-110,y=670,w=600,h=70, color="lB",font=35,align="R",edge=30,code=pressKey"x"},
|
||||
WIDGET.newButton{name="quit", x=1390,y=670,w=600,h=70, color="lR",font=40,align="L",edge=30,code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end},
|
||||
WIDGET.newButton{name="back", x=1390,y=670,w=600,h=70, color="lR",font=40,align="L",edge=30,code=backScene},
|
||||
}
|
||||
|
||||
return scene
|
||||
Reference in New Issue
Block a user