自定义界面显示序列模式,AI冲突条件修改
This commit is contained in:
@@ -38,6 +38,7 @@ local langList={
|
|||||||
|
|
||||||
ai_fixed="不能同时开启AI和固定序列",
|
ai_fixed="不能同时开启AI和固定序列",
|
||||||
ai_prebag="不能同时开启AI和自定义序列",
|
ai_prebag="不能同时开启AI和自定义序列",
|
||||||
|
ai_mission="不能同时开启AI和自定义任务",
|
||||||
settingSaved="设置已保存",
|
settingSaved="设置已保存",
|
||||||
settingSavingError="设置保存失败:",
|
settingSavingError="设置保存失败:",
|
||||||
keyMapSaved="键位设置已保存",
|
keyMapSaved="键位设置已保存",
|
||||||
@@ -456,7 +457,7 @@ local langList={
|
|||||||
back="返回",
|
back="返回",
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
username="测试",
|
title="账户",
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
p15="15 Puzzle",
|
p15="15 Puzzle",
|
||||||
@@ -620,6 +621,7 @@ local langList={
|
|||||||
|
|
||||||
ai_fixed="不能同时开启电脑玩家和固定序列",
|
ai_fixed="不能同时开启电脑玩家和固定序列",
|
||||||
ai_prebag="不能同时开启电脑玩家和自定义序列",
|
ai_prebag="不能同时开启电脑玩家和自定义序列",
|
||||||
|
ai_mission="不能同时开启电脑玩家和自定义任务",
|
||||||
settingSaved="设置已保存",
|
settingSaved="设置已保存",
|
||||||
settingSavingError="设置保存失败:",
|
settingSavingError="设置保存失败:",
|
||||||
keyMapSaved="键位设置已保存",
|
keyMapSaved="键位设置已保存",
|
||||||
@@ -631,7 +633,7 @@ local langList={
|
|||||||
recSavingError="纪录保存失败:",
|
recSavingError="纪录保存失败:",
|
||||||
switchSpawnSFX="请开启方块出生音效",
|
switchSpawnSFX="请开启方块出生音效",
|
||||||
getRank="本局评级:",
|
getRank="本局评级:",
|
||||||
ranks={"D","C","B","A","S"},
|
ranks={"菜","可","好","强","您"},
|
||||||
|
|
||||||
needRestart="重新开始以生效",
|
needRestart="重新开始以生效",
|
||||||
copySuccess="已复制到剪切板",
|
copySuccess="已复制到剪切板",
|
||||||
@@ -1040,7 +1042,7 @@ local langList={
|
|||||||
back="返回",
|
back="返回",
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
username="test",
|
title="账户",
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
p15="15 Puzzle",
|
p15="15 Puzzle",
|
||||||
@@ -1204,6 +1206,7 @@ local langList={
|
|||||||
|
|
||||||
ai_fixed="The AI is incompatible with fixed sequences.",
|
ai_fixed="The AI is incompatible with fixed sequences.",
|
||||||
ai_prebag="The AI is incompatible with custom sequences.",
|
ai_prebag="The AI is incompatible with custom sequences.",
|
||||||
|
ai_mission="The AI is incompatible with custom missions.",
|
||||||
settingSaved="Settings Saved",
|
settingSaved="Settings Saved",
|
||||||
settingSavingError="Failed to save settings:",
|
settingSavingError="Failed to save settings:",
|
||||||
keyMapSaved="Key settings saved",
|
keyMapSaved="Key settings saved",
|
||||||
@@ -1614,7 +1617,7 @@ local langList={
|
|||||||
back="Back",
|
back="Back",
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
username="test",
|
title="Account",
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
p15="15 Puzzle",
|
p15="15 Puzzle",
|
||||||
@@ -1785,6 +1788,7 @@ local langList={
|
|||||||
|
|
||||||
ai_fixed="X!!!",
|
ai_fixed="X!!!",
|
||||||
ai_prebag="X!!!",
|
ai_prebag="X!!!",
|
||||||
|
ai_mission="X!!!",
|
||||||
settingSaved="~~~",
|
settingSaved="~~~",
|
||||||
settingSavingError="x!:",
|
settingSavingError="x!:",
|
||||||
keyMapSaved="~~~",
|
keyMapSaved="~~~",
|
||||||
@@ -2202,7 +2206,7 @@ local langList={
|
|||||||
back="X",
|
back="X",
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
username="test",
|
title="@_@",
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
p15="15 Puzzle",
|
p15="15 Puzzle",
|
||||||
@@ -2364,6 +2368,7 @@ local langList={
|
|||||||
|
|
||||||
ai_fixed="不能同时开启AI和固定序列",
|
ai_fixed="不能同时开启AI和固定序列",
|
||||||
ai_prebag="不能同时开启AI和自定义序列",
|
ai_prebag="不能同时开启AI和自定义序列",
|
||||||
|
ai_mission="不能同时开启电脑玩家和自定义任务",
|
||||||
settingSaved="设置已保存",
|
settingSaved="设置已保存",
|
||||||
settingSavingError="设置保存失败:",
|
settingSavingError="设置保存失败:",
|
||||||
keyMapSaved="键位设置已保存",
|
keyMapSaved="键位设置已保存",
|
||||||
@@ -2783,7 +2788,7 @@ local langList={
|
|||||||
back="返回",
|
back="返回",
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
username="test",
|
title="账户",
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
p15="15 Puzzle",
|
p15="15 Puzzle",
|
||||||
|
|||||||
@@ -181,8 +181,8 @@ local Widgets={
|
|||||||
customGame={
|
customGame={
|
||||||
newText({name="title", x=600,y=5,font=80,align="R"}),
|
newText({name="title", x=600,y=5,font=80,align="R"}),
|
||||||
newText({name="subTitle", x=610,y=50,font=35,align="L",color="grey"}),
|
newText({name="subTitle", x=610,y=50,font=35,align="L",color="grey"}),
|
||||||
newText({name="defSeq", x=450,y=550,color="grey",hide=function()return preBag[1]end}),
|
newText({name="defSeq", x=330,y=550,align="L",color="grey",hide=function()return preBag[1]end}),
|
||||||
newText({name="noMsn", x=730,y=550,color="grey",hide=function()return preMission[1]end}),
|
newText({name="noMsn", x=610,y=550,align="L",color="grey",hide=function()return preMission[1]end}),
|
||||||
|
|
||||||
--Basic
|
--Basic
|
||||||
newSelector({name="drop", x=170, y=150,w=220,color="orange", list=CUSlist.drop, disp=CUSval("drop"),code=CUSsto("drop")}),
|
newSelector({name="drop", x=170, y=150,w=220,color="orange", list=CUSlist.drop, disp=CUSval("drop"),code=CUSsto("drop")}),
|
||||||
@@ -660,7 +660,7 @@ local Widgets={
|
|||||||
newButton({name="back", x=640, y=620,w=200,h=80, font=35,code=BACK}),
|
newButton({name="back", x=640, y=620,w=200,h=80, font=35,code=BACK}),
|
||||||
},
|
},
|
||||||
account={
|
account={
|
||||||
newText({name="username", x=100,y=100,font=60}),
|
newText({name="title", x=80,y=50,font=70,align="L"}),
|
||||||
},
|
},
|
||||||
minigame={
|
minigame={
|
||||||
newButton({name="p15", x=240, y=250,w=350,h=120,font=40,code=goScene("p15")}),
|
newButton({name="p15", x=240, y=250,w=350,h=120,font=40,code=goScene("p15")}),
|
||||||
|
|||||||
@@ -753,6 +753,7 @@ do--mode
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
do--customGame
|
do--customGame
|
||||||
|
local customEnv=customEnv
|
||||||
function sceneInit.customGame()
|
function sceneInit.customGame()
|
||||||
destroyPlayers()
|
destroyPlayers()
|
||||||
BG.set(customEnv.bg)
|
BG.set(customEnv.bg)
|
||||||
@@ -762,17 +763,19 @@ do--customGame
|
|||||||
function keyDown.customGame(key)
|
function keyDown.customGame(key)
|
||||||
if key=="return"or key=="return2"then
|
if key=="return"or key=="return2"then
|
||||||
if customEnv.opponent>0 then
|
if customEnv.opponent>0 then
|
||||||
if customEnv.opponent>5 and customEnv.seq=="fixed"then
|
if customEnv.opponent>5 and customEnv.sequence=="fixed"then
|
||||||
LOG.print(text.ai_fixed,"warn")
|
LOG.print(text.ai_fixed,"warn")
|
||||||
return
|
return
|
||||||
elseif customEnv.opponent>0 and #preBag>0 then
|
elseif customEnv.opponent>0 and #preBag>0 then
|
||||||
LOG.print(text.ai_prebag,"warn")
|
LOG.print(text.ai_prebag,"warn")
|
||||||
return
|
return
|
||||||
|
elseif customEnv.opponent>0 and #preMission>0 then
|
||||||
|
LOG.print(text.ai_mission,"warn")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
SCN.push()
|
SCN.push()
|
||||||
|
loadGame((key=="return2"or kb.isDown("lalt","lctrl","lshift"))and"custom_puzzle"or"custom_clear",true)
|
||||||
loadGame(key=="return"and"custom_clear"or"custom_puzzle",true)
|
|
||||||
elseif key=="f"then
|
elseif key=="f"then
|
||||||
SCN.go("custom_field","swipeD")
|
SCN.go("custom_field","swipeD")
|
||||||
elseif key=="s"then
|
elseif key=="s"then
|
||||||
@@ -847,19 +850,20 @@ do--customGame
|
|||||||
gc.pop()
|
gc.pop()
|
||||||
|
|
||||||
--Sequence
|
--Sequence
|
||||||
|
setFont(30)
|
||||||
|
gc.printf(customEnv.sequence,330,550,240,"right")
|
||||||
|
setFont(40)
|
||||||
if #preBag>0 then
|
if #preBag>0 then
|
||||||
setFont(40)
|
gc.setColor(1,1,int(Timer()*6.26)%2)
|
||||||
gc.setColor(1,1,int(Timer()*3)%2)
|
gc.print("#",330,545)
|
||||||
gc.print("#",365,545)
|
gc.print(#preBag,360,545)
|
||||||
gc.print(#preBag,390,545)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--Sequence
|
--Sequence
|
||||||
if #preMission>0 then
|
if #preMission>0 then
|
||||||
setFont(40)
|
gc.setColor(1,customEnv.missionKill and 0 or 1,int(Timer()*6.26)%2)
|
||||||
gc.setColor(1,1,int(Timer()*3)%2)
|
gc.print("#",610,545)
|
||||||
gc.print("#",645,545)
|
gc.print(#preMission,640,545)
|
||||||
gc.print(#preMission,670,545)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user