再微调主界面布局

This commit is contained in:
MrZ626
2021-03-25 23:29:05 +08:00
parent 86c45e39f6
commit 1878558392
7 changed files with 52 additions and 48 deletions

View File

@@ -214,15 +214,15 @@ return{
main={ main={
offline="Single", offline="Single",
online="Multi", online="Multi",
custom="Custom",
stat="Stats",
setting="Settings",
qplay="Quick", qplay="Quick",
lang="言/A", custom="Custom",
help="Help", setting="Settings",
quit="Exit", stat="Stats",
music="Music Room", music="Music Room",
sound="SE Room", sound="SE Room",
help="Help",
lang="言/A",
quit="Exit",
}, },
main_simple={ main_simple={
sprint="Sprint", sprint="Sprint",

View File

@@ -191,15 +191,15 @@ return{
main={ main={
offline="Solo", offline="Solo",
online="Multi", online="Multi",
custom="Mode perso.",
stat="Statistiques",
setting="Paramètres",
qplay="Partie rapide", qplay="Partie rapide",
lang="言/A", custom="Mode perso.",
help="Aide", setting="Paramètres",
quit="Quitter", stat="Statistiques",
music="Salon musical", music="Salon musical",
sound="Salon SE", sound="Salon SE",
help="Aide",
lang="言/A",
quit="Quitter",
}, },
mode={ mode={
mod="Mods (F1)", mod="Mods (F1)",

View File

@@ -214,15 +214,15 @@ return{
main={ main={
offline="Solo", offline="Solo",
online="Multi", online="Multi",
custom="Custom",
stat="Stats",
setting="Config.",
qplay="Jogo R.", qplay="Jogo R.",
lang="言/A", custom="Custom",
help="Ajuda", setting="Config.",
quit="Saída", stat="Stats",
music="Música", music="Música",
sound="SFX", sound="SFX",
help="Ajuda",
lang="言/A",
quit="Saída",
}, },
main_simple={ main_simple={
sprint="Sprint", sprint="Sprint",

View File

@@ -193,15 +193,15 @@ return{
main={ main={
-- offline="Single", -- offline="Single",
-- online="Multi", -- online="Multi",
custom="Person.",
stat="Estadísticas",
setting="Opciones",
qplay="P. Rápida", qplay="P. Rápida",
lang="言/A", custom="Person.",
help="Ayuda", setting="Opciones",
quit="Salir", stat="Estadísticas",
music="Música", music="Música",
sound="Sala de SE", sound="Sala de SE",
help="Ayuda",
lang="言/A",
quit="Salir",
}, },
main_simple={ main_simple={
sprint="Sprint", sprint="Sprint",

View File

@@ -94,15 +94,15 @@ return{
main={ main={
offline="!", offline="!",
online="!!!", online="!!!",
custom="_?!",
stat="=___",
setting="_?_",
qplay="!", qplay="!",
lang="言/A", custom="_?!",
help="???", setting="_?_",
quit="X", stat="=___",
music="~~~", music="~~~",
sound="=><=", sound="=><=",
help="???",
lang="言/A",
quit="X",
}, },
mode={ mode={
mod="?!?!?!(F1)", mod="?!?!?!(F1)",

View File

@@ -214,15 +214,15 @@ return{
main={ main={
offline="单机游戏", offline="单机游戏",
online="联网游戏", online="联网游戏",
custom="自定义",
stat="统计信息",
setting="设置",
qplay="快速开始", qplay="快速开始",
lang="言/A", custom="自定义",
help="帮助", setting="设置",
quit="退出", stat="统计信息",
music="音乐室", music="音乐室",
sound="音效室", sound="音效室",
help="帮助",
lang="言/A",
quit="退出",
}, },
main_simple={ main_simple={
sprint="40行", sprint="40行",

View File

@@ -21,16 +21,20 @@ function scene.sceneInit()
end end
function scene.keyDown(key) function scene.keyDown(key)
if key=="application"then if key=="q"then
SCN.go("dict")
elseif key=="f1"then
SCN.go("help")
elseif key=="f2"then
SCN.go("setting_game")
elseif key=="q"then
loadGame(STAT.lastPlay,true) loadGame(STAT.lastPlay,true)
elseif key=="p"then
SCN.go("mode")
elseif key=="escape"then elseif key=="escape"then
SCN.back() SCN.back()
elseif key=="application"then
SCN.go("dict")
elseif key=="f1"then
SCN.go("manual")
elseif key=="c"then
SCN.go("customGame")
elseif key=="s"then
SCN.go("setting_game")
else else
WIDGET.keyPressed(key) WIDGET.keyPressed(key)
end end
@@ -83,7 +87,7 @@ end
scene.widgetList={ scene.widgetList={
WIDGET.newText{name="system", x=610,y=50,fText=SYSTEM, color="white",font=30,align="L"}, WIDGET.newText{name="system", x=610,y=50,fText=SYSTEM, color="white",font=30,align="L"},
WIDGET.newText{name="version", x=610,y=90,fText=VERSION_NAME, color="white",font=30,align="L"}, WIDGET.newText{name="version", x=610,y=90,fText=VERSION_NAME, color="white",font=30,align="L"},
WIDGET.newKey{name="offline", x=150,y=260,w=200,h=160,color="lRed", font=40,code=goScene"mode"}, WIDGET.newKey{name="offline", x=150,y=260,w=200,h=160,color="lRed", font=40,code=pressKey"p"},
WIDGET.newKey{name="online", x=370,y=260,w=200,h=160,color="lCyan", font=40,code=function() WIDGET.newKey{name="online", x=370,y=260,w=200,h=160,color="lCyan", font=40,code=function()
if not LATEST_VERSION then if not LATEST_VERSION then
TEXT.show(text.notFinished,370,380,60,"flicker") TEXT.show(text.notFinished,370,380,60,"flicker")
@@ -109,14 +113,14 @@ scene.widgetList={
end end
end}, end},
WIDGET.newKey{name="qplay", x=590,y=260,w=200,h=160,color="lBlue", font=40,code=pressKey"q"}, WIDGET.newKey{name="qplay", x=590,y=260,w=200,h=160,color="lBlue", font=40,code=pressKey"q"},
WIDGET.newKey{name="setting", x=150,y=480,w=200,h=110,color="lOrange",font=40,code=goScene"setting_game"}, WIDGET.newKey{name="custom", x=370,y=440,w=200,h=160,color="white", font=40,code=pressKey"c"},
WIDGET.newKey{name="custom", x=370,y=455,w=200,h=160,color="white", font=40,code=goScene"customGame"}, WIDGET.newKey{name="setting", x=150,y=490,w=200,h=110,color="lOrange",font=40,code=pressKey"s"},
WIDGET.newKey{name="stat", x=590,y=480,w=200,h=110,color="lGreen", font=40,code=goScene"stat"}, WIDGET.newKey{name="stat", x=590,y=490,w=200,h=110,color="lGreen", font=40,code=goScene"stat"},
WIDGET.newKey{name="music", x=150,y=600,w=200,h=60,color="red", code=goScene"music"}, WIDGET.newKey{name="music", x=150,y=600,w=200,h=60,color="red", code=goScene"music"},
WIDGET.newKey{name="sound", x=370,y=600,w=200,h=60,color="grape", code=goScene"sound"}, WIDGET.newKey{name="sound", x=370,y=600,w=200,h=60,color="grape", code=goScene"sound"},
WIDGET.newKey{name="help", x=590,y=600,w=200,h=60,color="blue", code=goScene"help"}, WIDGET.newKey{name="help", x=590,y=600,w=200,h=60,color="blue", code=goScene"help"},
WIDGET.newButton{name="lang", x=795,y=560,w=170,h=80,color="white", font=40,code=goScene"lang"}, WIDGET.newButton{name="lang", x=795,y=560,w=170,h=80,color="white", font=40,code=goScene"lang"},
WIDGET.newButton{name="quit", x=795,y=660,w=170,h=80,color="grey", font=40,code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end}, WIDGET.newButton{name="quit", x=795,y=660,w=170,h=80,color="dGrey", font=40,code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end},
} }
return scene return scene