主菜单退出按钮改成返回按钮
This commit is contained in:
@@ -220,7 +220,6 @@ return{
|
|||||||
about="About",
|
about="About",
|
||||||
dict="Zictionary",
|
dict="Zictionary",
|
||||||
manual="Manual",
|
manual="Manual",
|
||||||
quit="Exit",
|
|
||||||
},
|
},
|
||||||
main_simple={
|
main_simple={
|
||||||
sprint="Sprint",
|
sprint="Sprint",
|
||||||
|
|||||||
@@ -197,7 +197,6 @@ return{
|
|||||||
-- about="About",
|
-- about="About",
|
||||||
dict="Zictionary",
|
dict="Zictionary",
|
||||||
manual="Manuel",
|
manual="Manuel",
|
||||||
quit="Quitter",
|
|
||||||
},
|
},
|
||||||
mode={
|
mode={
|
||||||
mod="Mods (F1)",
|
mod="Mods (F1)",
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ return{
|
|||||||
-- about="About",
|
-- about="About",
|
||||||
dict="Zictionary",
|
dict="Zictionary",
|
||||||
manual="Manual",
|
manual="Manual",
|
||||||
quit="Saída",
|
|
||||||
},
|
},
|
||||||
main_simple={
|
main_simple={
|
||||||
sprint="Sprint",
|
sprint="Sprint",
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ return{
|
|||||||
about="Acerca del Juego",
|
about="Acerca del Juego",
|
||||||
dict="Zictionary",
|
dict="Zictionary",
|
||||||
manual="Manual",
|
manual="Manual",
|
||||||
quit="Salir",
|
|
||||||
},
|
},
|
||||||
main_simple={
|
main_simple={
|
||||||
sprint="Sprint",
|
sprint="Sprint",
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ return{
|
|||||||
about="?",
|
about="?",
|
||||||
dict="z",
|
dict="z",
|
||||||
manual="???",
|
manual="???",
|
||||||
quit="X",
|
|
||||||
},
|
},
|
||||||
mode={
|
mode={
|
||||||
mod="?!?!?!(F1)",
|
mod="?!?!?!(F1)",
|
||||||
|
|||||||
@@ -220,7 +220,6 @@ return{
|
|||||||
about="关于",
|
about="关于",
|
||||||
dict="小Z词典",
|
dict="小Z词典",
|
||||||
manual="说明书",
|
manual="说明书",
|
||||||
quit="退出",
|
|
||||||
},
|
},
|
||||||
main_simple={
|
main_simple={
|
||||||
sprint="40行",
|
sprint="40行",
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ function scene.mouseDown(_,_,k)
|
|||||||
else
|
else
|
||||||
SCN.go(SETTING.simpMode and"main_simple"or"main")
|
SCN.go(SETTING.simpMode and"main_simple"or"main")
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
SCN.swapTo("quit","slowFade")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function scene.touchDown()
|
function scene.touchDown()
|
||||||
@@ -30,7 +32,7 @@ end
|
|||||||
function scene.keyDown(key)
|
function scene.keyDown(key)
|
||||||
if key=="escape"then
|
if key=="escape"then
|
||||||
VOC.play("bye")
|
VOC.play("bye")
|
||||||
SCN.back()
|
SCN.swapTo("quit","slowFade")
|
||||||
else
|
else
|
||||||
scene.mouseDown()
|
scene.mouseDown()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ scene.widgetList={
|
|||||||
{"doArc",53,31,40,2.3,3.9},
|
{"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="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
|
return scene
|
||||||
Reference in New Issue
Block a user