结算界面显示关卡评级
This commit is contained in:
@@ -49,7 +49,6 @@ return{
|
|||||||
unlockSavingError="Failed to save unlocked content:",
|
unlockSavingError="Failed to save unlocked content:",
|
||||||
recSavingError="Failed to save record:",
|
recSavingError="Failed to save record:",
|
||||||
switchSpawnSFX="Switch on spawn SFX to play",
|
switchSpawnSFX="Switch on spawn SFX to play",
|
||||||
getRank="Rank: ",
|
|
||||||
ranks={"D","C","B","A","S"},
|
ranks={"D","C","B","A","S"},
|
||||||
|
|
||||||
needRestart="Effective after restart",
|
needRestart="Effective after restart",
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ return{
|
|||||||
unlockSavingError="x!:",
|
unlockSavingError="x!:",
|
||||||
recSavingError="x!:",
|
recSavingError="x!:",
|
||||||
switchSpawnSFX="Switch on spawn SFX to play",
|
switchSpawnSFX="Switch on spawn SFX to play",
|
||||||
getRank="#:",
|
|
||||||
ranks={"D","C","B","A","S"},
|
ranks={"D","C","B","A","S"},
|
||||||
|
|
||||||
needRestart="!!*#R#*!!",
|
needRestart="!!*#R#*!!",
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ return{
|
|||||||
unlockSavingError="解锁保存失败:",
|
unlockSavingError="解锁保存失败:",
|
||||||
recSavingError="纪录保存失败:",
|
recSavingError="纪录保存失败:",
|
||||||
switchSpawnSFX="请开启方块出生音效",
|
switchSpawnSFX="请开启方块出生音效",
|
||||||
getRank="本局评级:",
|
|
||||||
ranks={"D","C","B","A","S"},
|
ranks={"D","C","B","A","S"},
|
||||||
|
|
||||||
needRestart="重新开始以生效",
|
needRestart="重新开始以生效",
|
||||||
|
|||||||
@@ -2563,7 +2563,7 @@ local function gameOver()--Save record
|
|||||||
needSave=true
|
needSave=true
|
||||||
end
|
end
|
||||||
if R>0 then
|
if R>0 then
|
||||||
LOG.print(text.getRank..text.ranks[R],color.green)
|
GAME.rank=text.ranks[R]
|
||||||
if M.unlock then
|
if M.unlock then
|
||||||
for i=1,#M.unlock do
|
for i=1,#M.unlock do
|
||||||
local m=M.unlock[i]
|
local m=M.unlock[i]
|
||||||
|
|||||||
@@ -1338,20 +1338,20 @@ do--pause
|
|||||||
setFont(25)
|
setFont(25)
|
||||||
if GAME.pauseCount>0 then
|
if GAME.pauseCount>0 then
|
||||||
gc.setColor(1,.4,.4,T)
|
gc.setColor(1,.4,.4,T)
|
||||||
gc.print(text.pauseCount..":["..GAME.pauseCount.."] "..format("%.2f",GAME.pauseTime).."s",70,100)
|
gc.print(text.pauseCount..":["..GAME.pauseCount.."] "..format("%.2f",GAME.pauseTime).."s",40,160)
|
||||||
end
|
end
|
||||||
|
|
||||||
gc.setColor(1,1,1,T)
|
gc.setColor(1,1,1,T)
|
||||||
|
|
||||||
--Mode Info
|
|
||||||
_=drawableText.modeName
|
|
||||||
gc.draw(_,40,170)
|
|
||||||
gc.draw(drawableText.levelName,60+_:getWidth(),170)
|
|
||||||
|
|
||||||
--Result Text
|
--Result Text
|
||||||
setFont(35)
|
setFont(35)
|
||||||
mText(GAME.result and drawableText[GAME.result]or drawableText.pause,640,50-10*(5-sceneTemp.timer*.1)^1.5)
|
mText(GAME.result and drawableText[GAME.result]or drawableText.pause,640,50-10*(5-sceneTemp.timer*.1)^1.5)
|
||||||
|
|
||||||
|
--Mode Info
|
||||||
|
_=drawableText.modeName
|
||||||
|
gc.draw(_,40,200)
|
||||||
|
gc.draw(drawableText.levelName,60+_:getWidth(),200)
|
||||||
|
|
||||||
--Infos
|
--Infos
|
||||||
if GAME.frame>180 then
|
if GAME.frame>180 then
|
||||||
_=S.list
|
_=S.list
|
||||||
@@ -1362,7 +1362,13 @@ do--pause
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--rank & trophy
|
--Level rank
|
||||||
|
if GAME.rank then
|
||||||
|
setFont(80)
|
||||||
|
gc.print(GAME.rank,50,10,nil,1.6)
|
||||||
|
end
|
||||||
|
|
||||||
|
--Finesse rank & trophy
|
||||||
if S.rank then
|
if S.rank then
|
||||||
setFont(60)
|
setFont(60)
|
||||||
gc.setColor(S.rankColor[1],S.rankColor[2],S.rankColor[3],T)
|
gc.setColor(S.rankColor[1],S.rankColor[2],S.rankColor[3],T)
|
||||||
|
|||||||
Reference in New Issue
Block a user