修复自定义模式用按钮开始游戏会报错
This commit is contained in:
@@ -503,8 +503,8 @@ return{
|
||||
|
||||
copy="Copy Field+Seq+Mssn",
|
||||
paste="Paste Field+Seq+Mssn",
|
||||
clear="Start-Clear",
|
||||
puzzle="Start-Puzzle",
|
||||
play_clear="Start-Clear",
|
||||
play_puzzle="Start-Puzzle",
|
||||
|
||||
reset="Reset (Del)",
|
||||
advance="More (A)",
|
||||
|
||||
@@ -468,8 +468,8 @@ return{
|
||||
|
||||
copy="Copiar Campo+Sec.+Mis.",
|
||||
paste="Pegar Campo+Sec.+Mis.",
|
||||
clear="Inicio-Fin",
|
||||
puzzle="Inicio-Puzzle",
|
||||
play_clear="Inicio-Fin",
|
||||
play_puzzle="Inicio-Puzzle",
|
||||
|
||||
reset="Reiniciar (Supr)",
|
||||
advance="Más opciones (A)",
|
||||
|
||||
@@ -469,8 +469,8 @@ return{
|
||||
|
||||
copy="Copier Mtrc+Seq+Missn",
|
||||
paste="Coller Mtrc+Seq+Missn",
|
||||
clear="Démarrer Clear",
|
||||
puzzle="Démarrer Puzzle",
|
||||
play_clear="Démarrer Clear",
|
||||
play_puzzle="Démarrer Puzzle",
|
||||
|
||||
-- reset="Reset (Del)",
|
||||
advance="Plus (A)",
|
||||
|
||||
@@ -491,8 +491,8 @@ return{
|
||||
|
||||
copy="Copiar Tab.+Seq+Misn",
|
||||
paste="Colar Tab.+Seq+Misn",
|
||||
clear="Iniciar-Limpar",
|
||||
puzzle="Iniciar-Puzzle",
|
||||
play_clear="Iniciar-Limpar",
|
||||
play_puzzle="Iniciar-Puzzle",
|
||||
|
||||
-- reset="Reset (Del)",
|
||||
advance="Mais (A)",
|
||||
|
||||
@@ -393,8 +393,8 @@ return{
|
||||
|
||||
copy="Field+Seq+Misn→__",
|
||||
paste="__→Field+Seq+Misn",
|
||||
clear="Start-Clear",
|
||||
puzzle="Start-Puzzle",
|
||||
play_clear="Start-Clear",
|
||||
play_puzzle="Start-Puzzle",
|
||||
|
||||
reset="Reset (Del)",
|
||||
advance="More (A)",
|
||||
|
||||
@@ -502,8 +502,8 @@ return{
|
||||
|
||||
copy="复制场地+序列+任务",
|
||||
paste="粘贴场地+序列+任务",
|
||||
clear="开始-消除",
|
||||
puzzle="开始-拼图",
|
||||
play_clear="开始-消除",
|
||||
play_puzzle="开始-拼图",
|
||||
|
||||
reset="重置所有(Del)",
|
||||
advance="更多设置(A)",
|
||||
|
||||
@@ -500,8 +500,8 @@ return{
|
||||
|
||||
copy="复制字段+序号+使命",
|
||||
paste="粘贴字段+序号+使命",
|
||||
clear="清场",
|
||||
puzzle="开始拼图",
|
||||
play_clear="清场",
|
||||
play_puzzle="开始拼图",
|
||||
|
||||
reset="复位(Del)",
|
||||
advance="更多(A)",
|
||||
|
||||
@@ -501,8 +501,8 @@ return{
|
||||
|
||||
copy="拷貝場地+序列+任務",
|
||||
paste="黏貼場地+序列+任務",
|
||||
clear="開始-清除",
|
||||
puzzle="開始-拼圖",
|
||||
play_clear="開始-清除",
|
||||
play_puzzle="開始-拼圖",
|
||||
|
||||
reset="重設所有(Del)",
|
||||
advance="更多設置(A)",
|
||||
|
||||
@@ -67,10 +67,10 @@ end
|
||||
|
||||
function scene.keyDown(key,isRep)
|
||||
if isRep then return true end
|
||||
if key=='return'and kb.isDown('lctrl','lalt')then
|
||||
if kb.isDown('lalt')and #FIELD[1]>0 then
|
||||
if key=='return'and kb.isDown('lctrl','lalt')or key=='play1'or key=='play2'then
|
||||
if(key=='play2'or kb.isDown('lalt'))and #FIELD[1]>0 then
|
||||
_play('puzzle')
|
||||
elseif kb.isDown('lctrl')then
|
||||
elseif key=='play1'or kb.isDown('lctrl')then
|
||||
_play('clear')
|
||||
end
|
||||
elseif key=='f'then
|
||||
@@ -218,8 +218,8 @@ scene.widgetList={
|
||||
--Copy / Paste / Start
|
||||
WIDGET.newButton{name='copy', x=1070,y=300,w=310,h=70,color='lR',font=25,code=pressKey'cC'},
|
||||
WIDGET.newButton{name='paste', x=1070,y=380,w=310,h=70,color='lB',font=25,code=pressKey'cV'},
|
||||
WIDGET.newButton{name='clear', x=1070,y=460,w=310,h=70,color='lY',font=35,code=pressKey'return'},
|
||||
WIDGET.newButton{name='puzzle', x=1070,y=540,w=310,h=70,color='lM',font=35,code=pressKey'return2',hideF=function()return #FIELD[1]==0 end},
|
||||
WIDGET.newButton{name='play_clear', x=1070,y=460,w=310,h=70,color='lY',font=35,code=pressKey'play1'},
|
||||
WIDGET.newButton{name='play_puzzle', x=1070,y=540,w=310,h=70,color='lM',font=35,code=pressKey'play2',hideF=function()return #FIELD[1]==0 end},
|
||||
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,font=60,fText=CHAR.icon.back,code=pressKey'escape'},
|
||||
|
||||
--Rule set
|
||||
|
||||
Reference in New Issue
Block a user