主菜单ui再改,帮助菜单改名关于

This commit is contained in:
MrZ626
2021-03-27 13:05:17 +08:00
parent e7d2897582
commit 3d33b0938b
9 changed files with 119 additions and 82 deletions

View File

@@ -171,7 +171,6 @@ return{
"FnsErrs./FnsRate:", "FnsErrs./FnsRate:",
}, },
help={ help={
"I'd assume you wouldn't need any \"help\" thus far?",
"This is just an *ordinary* block stacker. Really. That's it.", "This is just an *ordinary* block stacker. Really. That's it.",
"With inspirations from TO/C2/KOS/TGM3 etc.", "With inspirations from TO/C2/KOS/TGM3 etc.",
"", "",
@@ -213,15 +212,16 @@ return{
WidgetText={ WidgetText={
main={ main={
offline="Single Player", offline="Single Player",
qplay="Quick Play", qplay="Last Play",
online="Multiplayer", online="Multiplayer",
custom="Custom Game", custom="Custom Game",
setting="Settings", setting="Settings",
stat="Statistics", stat="Statistics",
music="Music & SE", music="Music & SE",
help="Help", about="About",
dict="Zictionary", dict="Zictionary",
lang="言/A", lang="言/A",
manual="Manual",
quit="Exit", quit="Exit",
}, },
main_simple={ main_simple={
@@ -493,8 +493,7 @@ return{
paste="Paste", paste="Paste",
mission="Force Mission", mission="Force Mission",
}, },
help={ about={
manual="Manual",
staff="Staff", staff="Staff",
his="History", his="History",
qq="Author's qq", qq="Author's qq",

View File

@@ -149,7 +149,6 @@ return{
"Errs. Finesse/Finesse :", "Errs. Finesse/Finesse :",
}, },
help={ help={
"Vous pouvez jouer à ceci, vous n'avez probablement pas besoin d'\"aide\"?",
"Ceci est un simple jeu de blocs.", "Ceci est un simple jeu de blocs.",
"On y joue comme sur TO/C2/KOS/TGM3 et autres.", "On y joue comme sur TO/C2/KOS/TGM3 et autres.",
"", "",
@@ -190,15 +189,16 @@ return{
WidgetText={ WidgetText={
main={ main={
-- offline="Solo", -- offline="Solo",
qplay="Partie rapide", -- qplay="Last Play",
-- online="Multi", -- online="Multi",
-- custom="Mode perso.", -- custom="Mode perso.",
setting="Paramètres", setting="Paramètres",
stat="Statistiques", stat="Statistiques",
-- music="Music & SE", -- music="Music & SE",
help="Aide", -- about="About",
dict="Zictionary", dict="Zictionary",
lang="言/A", lang="言/A",
manual="Manuel",
quit="Quitter", quit="Quitter",
}, },
mode={ mode={
@@ -556,8 +556,7 @@ return{
reset="Réinitialiser", reset="Réinitialiser",
-- mode="Mode", -- mode="Mode",
}, },
help={ about={
manual="Manuel",
staff="Staff", staff="Staff",
his="History", his="History",
qq="QQ du créateur", qq="QQ du créateur",

View File

@@ -171,7 +171,6 @@ return{
"FalhaDestreza/TaxaDestreza:", "FalhaDestreza/TaxaDestreza:",
}, },
help={ help={
"Agora você pode jogar - você provavelmente nao precisa de \"ajuda\"?",
"Isso é apenas um jogo de blocos, nada de especial.", "Isso é apenas um jogo de blocos, nada de especial.",
"Joga como TO/C2/KOS/TGM3 e outros.", "Joga como TO/C2/KOS/TGM3 e outros.",
"", "",
@@ -213,15 +212,16 @@ return{
WidgetText={ WidgetText={
main={ main={
offline="Solo", offline="Solo",
qplay="Jogo R.", -- qplay="Last Play",
online="Multi", online="Multi",
custom="Custom", custom="Custom",
setting="Config.", setting="Config.",
stat="Stats", stat="Stats",
-- music="Music & SE", -- music="Music & SE",
help="Ajuda", -- about="About",
dict="Zictionary", dict="Zictionary",
lang="言/A", lang="言/A",
manual="Manual",
quit="Saída", quit="Saída",
}, },
main_simple={ main_simple={
@@ -493,8 +493,7 @@ return{
paste="Colar", paste="Colar",
mission="Forçar Missão", mission="Forçar Missão",
}, },
help={ about={
manual="Manual",
staff="Staff", staff="Staff",
his="History", his="History",
qq="Author's qq", qq="Author's qq",

View File

@@ -150,7 +150,6 @@ return{
"Err.Fns./RatioFns:", "Err.Fns./RatioFns:",
}, },
help={ help={
"Ahora que sabes jugar a este juego, no necesitas ayuda, ¿o sí?",
"Este es simplemente un juego de puzzle ordinario, no pienses de él como un juego promedio.", "Este es simplemente un juego de puzzle ordinario, no pienses de él como un juego promedio.",
"Está inspirado en otros como TO/C2/KoS/TGM3/JS.", "Está inspirado en otros como TO/C2/KoS/TGM3/JS.",
"", "",
@@ -192,15 +191,16 @@ return{
WidgetText={ WidgetText={
main={ main={
-- offline="Single", -- offline="Single",
qplay="P. Rápida", -- qplay="Last Play",
-- online="Multi", -- online="Multi",
-- custom="Person.", -- custom="Person.",
setting="Opciones", setting="Opciones",
stat="Estadísticas", stat="Estadísticas",
-- music="Music & SE", -- music="Music & SE",
help="Ayuda", -- about="About",
dict="Zictionary", dict="Zictionary",
lang="言/A", lang="言/A",
manual="Manual",
quit="Salir", quit="Salir",
}, },
main_simple={ main_simple={
@@ -454,8 +454,7 @@ return{
paste="Pegar", paste="Pegar",
mission="Forzar misión", mission="Forzar misión",
}, },
help={ about={
manual="Manual",
staff="Staff", staff="Staff",
his="Hist. de Acts.", his="Hist. de Acts.",
qq="QQ del Autor", qq="QQ del Autor",

View File

@@ -80,7 +80,6 @@ return{
"!#!X/%:", "!#!X/%:",
}, },
help={ help={
"□□□□~~~, ?_?x ?",
"□!!~~~,□□□□X", "□!!~~~,□□□□X",
"□!!==*/*/*/*~", "□!!==*/*/*/*~",
"", "",
@@ -93,15 +92,16 @@ return{
WidgetText={ WidgetText={
main={ main={
offline="!", offline="!",
qplay="!", qplay="(!)",
online="!!!", online="!!!",
custom="_?!", custom="_?!",
setting="_?_", setting="_?_",
stat="=___", stat="=___",
music="~~~ & =><=", music="~~~ & =><=",
help="???", about="?",
dict="z", dict="z",
lang="言/A", lang="言/A",
manual="???",
quit="X", quit="X",
}, },
mode={ mode={
@@ -337,8 +337,7 @@ return{
paste="__→", paste="__→",
mission="Force mission", mission="Force mission",
}, },
help={ about={
manual="?",
staff="Orz", staff="Orz",
his="_&_", his="_&_",
qq="_@_", qq="_@_",

View File

@@ -107,8 +107,7 @@ return{
basic="阳间", basic="阳间",
pro="阴间", pro="阴间",
}, },
help={ about={
manual="聪明人不用看",
staff="游戏谁做的", staff="游戏谁做的",
his="黑历史", his="黑历史",
qq="QQ对线", qq="QQ对线",

View File

@@ -171,7 +171,6 @@ return{
"多余操作/极简率:", "多余操作/极简率:",
}, },
help={ help={
"既然你能玩到这个游戏,应该也不需要什么帮助吧?",
"这只是一个普通的方块游戏,请勿称此游戏为某某某方块", "这只是一个普通的方块游戏,请勿称此游戏为某某某方块",
"从TO/C2/KOS/TGM3/JS等方块获得过灵感", "从TO/C2/KOS/TGM3/JS等方块获得过灵感",
"", "",
@@ -219,9 +218,10 @@ return{
setting="设置", setting="设置",
stat="统计信息", stat="统计信息",
music="音乐&音效", music="音乐&音效",
help="帮助", about="关于",
dict="小Z词典", dict="小Z词典",
lang="言/A", lang="言/A",
manual="说明书",
quit="退出", quit="退出",
}, },
main_simple={ main_simple={
@@ -570,8 +570,7 @@ return{
pc="PC", pc="PC",
music="音乐", music="音乐",
}, },
help={ about={
manual="说明书",
staff="制作人员", staff="制作人员",
his="更新历史", his="更新历史",
qq="作者QQ", qq="作者QQ",

View File

@@ -41,10 +41,9 @@ end
scene.widgetList={ scene.widgetList={
WIDGET.newImage{name="pay1", x=20, y=20}, WIDGET.newImage{name="pay1", x=20, y=20},
WIDGET.newImage{name="pay2", x=1014, y=20}, WIDGET.newImage{name="pay2", x=1014, y=20},
WIDGET.newButton{name="manual", x=1140, y=400,w=220,h=70,font=35,code=goScene"manual"}, WIDGET.newButton{name="staff", x=1140, y=400,w=220,h=80,font=35,code=goScene"staff"},
WIDGET.newButton{name="staff", x=1140, y=490,w=220,h=70,font=35,code=goScene"staff"}, WIDGET.newButton{name="his", x=1140, y=500,w=220,h=80,font=35,code=goScene"history"},
WIDGET.newButton{name="his", x=1140, y=580,w=220,h=70,font=35,code=goScene"history"}, WIDGET.newButton{name="qq", x=1140, y=600,w=220,h=80,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="qq", x=1140, y=670,w=220,h=70,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=35,code=backScene}, WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=35,code=backScene},
} }

View File

@@ -3,10 +3,17 @@ local gc=love.graphics
local scene={} local scene={}
local verName=SYSTEM.." "..VERSION_NAME local verName=SYSTEM.." "..VERSION_NAME
local tipLength=540 local tipLength=760
local tip=gc.newText(getFont(30),"") local tip=gc.newText(getFont(30),"")
local scrollX--Tip scroll position local scrollX--Tip scroll position
local quickSure
local widgetX0={
-10,-10,-10,-10,
1290,1290,1290,1290,
}
local cmdEntryThread=coroutine.create(function() local cmdEntryThread=coroutine.create(function()
while true do while true do
while true do while true do
@@ -28,7 +35,8 @@ function scene.sceneInit()
coroutine.resume(cmdEntryThread) coroutine.resume(cmdEntryThread)
--Set quick-play-button text --Set quick-play-button text
scene.widgetList[2].text=text.modes[STAT.lastPlay][1].."-"..text.modes[STAT.lastPlay][2] scene.widgetList[2].text=text.WidgetText.main.qplay
quickSure=false
--Create demo player --Create demo player
destroyPlayers() destroyPlayers()
@@ -52,52 +60,88 @@ function scene.mouseDown(x,y)
) )
end end
end end
scene.touchDown=scene.mouseDown
local function testButton(n)
if WIDGET.sel==scene.widgetList[n]then
return true
else
WIDGET.sel=scene.widgetList[n]
end
end
function scene.keyDown(key) function scene.keyDown(key)
if key=="1"then if key=="1"then
SCN.go("mode") if testButton(1)then
SCN.go("mode")
end
elseif key=="q"then elseif key=="q"then
loadGame(STAT.lastPlay,true) if not quickSure then
scene.widgetList[2].text=text.modes[STAT.lastPlay][1].."-"..text.modes[STAT.lastPlay][2]
quickSure=true
testButton(2)
elseif testButton(2)then
loadGame(STAT.lastPlay,true)
end
elseif key=="a"then elseif key=="a"then
if not LATEST_VERSION then if testButton(3)then
TEXT.show(text.notFinished,640,450,60,"flicker") if not LATEST_VERSION then
SFX.play("finesseError") TEXT.show(text.notFinished,640,450,60,"flicker")
elseif LOGIN then SFX.play("finesseError")
--[[TODO elseif LOGIN then
if USER.accessToken then --[[TODO
WS.send("app",JSON.encode{ if USER.accessToken then
opration="access", WS.send("app",JSON.encode{
email=USER.email, opration="access",
accessToken=USER.accessToken, email=USER.email,
}) accessToken=USER.accessToken,
})
else
WS.send("app",JSON.encode{
opration="access",
email=USER.email,
authToken=USER.authToken,
})
end
]]
else else
WS.send("app",JSON.encode{ SCN.go("login")
opration="access",
email=USER.email,
authToken=USER.authToken,
})
end end
]]
else
SCN.go("login")
end end
elseif key=="z"then elseif key=="z"then
SCN.go("customGame") if testButton(4)then
SCN.go("customGame")
end
elseif key=="-"then elseif key=="-"then
SCN.go("setting_game") if testButton(5)then
SCN.go("setting_game")
end
elseif key=="p"then elseif key=="p"then
SCN.go("stat") if testButton(6)then
SCN.go("stat")
end
elseif key=="l"then elseif key=="l"then
SCN.go("music") if testButton(7)then
SCN.go("dict")
end
elseif key==","then elseif key==","then
SCN.go("help") if testButton(8)then
elseif key=="application"then SCN.go("manual")
SCN.go("dict") end
elseif key=="ralt"then
SCN.go("lang")
elseif key=="f1"then elseif key=="f1"then
SCN.go("manual") if testButton(11)then
SCN.go("about")
end
elseif key=="f2"then
if testButton(9)then
SCN.go("music")
end
elseif key=="f3"then
if testButton(10)then
SCN.go("lang")
end
elseif key=="escape"then elseif key=="escape"then
SCN.back() if testButton(12)then
SCN.back()
end
else else
coroutine.resume(cmdEntryThread,key) coroutine.resume(cmdEntryThread,key)
end end
@@ -113,7 +157,7 @@ function scene.update(dt)
end end
local L=scene.widgetList local L=scene.widgetList
for i=1,8 do for i=1,8 do
L[i].x=L[i].x*.9+((i<5 and 40 or 1240)-350+(WIDGET.sel==L[i]and(i<5 and 100 or -100)or 0))*.1 L[i].x=L[i].x*.9+(widgetX0[i]-400+(WIDGET.sel==L[i]and(i<5 and 100 or -100)or 0))*.1
end end
end end
@@ -132,7 +176,7 @@ function scene.draw()
--Tip --Tip
gc.push("transform") gc.push("transform")
gc.translate(40,650) gc.translate(260,650)
gc.setLineWidth(2) gc.setLineWidth(2)
gc.rectangle("line",0,0,tipLength,42) gc.rectangle("line",0,0,tipLength,42)
gc.stencil(tipStencil,"replace",1) gc.stencil(tipStencil,"replace",1)
@@ -147,19 +191,20 @@ function scene.draw()
end end
scene.widgetList={ scene.widgetList={
WIDGET.newButton{name="offline",x=-1200,y=210,w=700,h=100, color="lR", font=45,align="R",edge=30, code=pressKey"1"}, WIDGET.newButton{name="offline",x=-1200,y=210,w=800,h=100, color="lR", font=45,align="R",edge=30, code=pressKey"1"},
WIDGET.newButton{name="qplay", x=-1200,y=330,w=700,h=100, color="lM", font=40,align="R",edge=30, code=pressKey"q"}, WIDGET.newButton{name="qplay", x=-1200,y=330,w=800,h=100, color="lM", font=40,align="R",edge=30, code=pressKey"q"},
WIDGET.newButton{name="online", x=-1200,y=450,w=700,h=100, color="lPurple",font=45,align="R",edge=30, code=pressKey"a"}, WIDGET.newButton{name="online", x=-1200,y=450,w=800,h=100, color="lPurple",font=45,align="R",edge=30, code=pressKey"a"},
WIDGET.newButton{name="custom", x=-1200,y=570,w=700,h=100, color="lSea", font=45,align="R",edge=30, code=pressKey"z"}, WIDGET.newButton{name="custom", x=-1200,y=570,w=800,h=100, color="lSea", font=45,align="R",edge=30, code=pressKey"z"},
WIDGET.newButton{name="setting",x=2480,y=210,w=700,h=100, color="lOrange",font=40,align="L",edge=30, code=pressKey"-"}, WIDGET.newButton{name="setting",x=2480,y=210,w=800,h=100, color="lOrange",font=40,align="L",edge=30, code=pressKey"-"},
WIDGET.newButton{name="stat", x=2480,y=330,w=700,h=100, color="lLame", font=40,align="L",edge=30, code=pressKey"p"}, WIDGET.newButton{name="stat", x=2480,y=330,w=800,h=100, color="lLame", font=40,align="L",edge=30, code=pressKey"p"},
WIDGET.newButton{name="music", x=2480,y=450,w=700,h=100, color="lGreen", font=40,align="L",edge=30, code=pressKey"l"}, WIDGET.newButton{name="dict", x=2480,y=450,w=800,h=100, color="lGreen", font=40,align="L",edge=30, code=pressKey"l"},
WIDGET.newButton{name="help", x=2480,y=570,w=700,h=100, color="lC", font=40,align="L",edge=30, code=pressKey","}, WIDGET.newButton{name="manual", x=2480,y=570,w=800,h=100, color="lC", font=40,align="L",edge=30, code=pressKey","},
WIDGET.newButton{name="lang", x=720,y=680,w=200,h=100, color="Y", font=40, code=goScene"lang"}, WIDGET.newButton{name="music", x=160,y=80,w=200,h=90, color="lOrange",font=35, code=pressKey"f2"},
WIDGET.newButton{name="dict", x=940,y=680,w=200,h=100, color="orange", font=35, code=goScene"dict"}, WIDGET.newButton{name="lang", x=1120,y=80,w=200,h=90, color="lY", font=40, code=pressKey"f3"},
WIDGET.newButton{name="quit", x=1160,y=680,w=200,h=100, color="R", font=40, code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end}, WIDGET.newButton{name="about", x=-110,y=670,w=600,h=70, color="B", font=35,align="R",edge=30, code=pressKey"f1"},
WIDGET.newButton{name="quit", x=1390,y=670,w=600,h=70, color="R", font=40,align="L",edge=30, code=function()VOC.play("bye")SCN.swapTo("quit","slowFade")end},
} }
return scene return scene