结算界面显示关卡评级

This commit is contained in:
MrZ626
2020-10-27 13:37:33 +08:00
parent 5559f47510
commit bb81429130
5 changed files with 14 additions and 11 deletions

View File

@@ -49,7 +49,6 @@ return{
unlockSavingError="Failed to save unlocked content:",
recSavingError="Failed to save record:",
switchSpawnSFX="Switch on spawn SFX to play",
getRank="Rank: ",
ranks={"D","C","B","A","S"},
needRestart="Effective after restart",

View File

@@ -49,7 +49,6 @@ return{
unlockSavingError="x!:",
recSavingError="x!:",
switchSpawnSFX="Switch on spawn SFX to play",
getRank="#:",
ranks={"D","C","B","A","S"},
needRestart="!!*#R#*!!",

View File

@@ -49,7 +49,6 @@ return{
unlockSavingError="解锁保存失败:",
recSavingError="纪录保存失败:",
switchSpawnSFX="请开启方块出生音效",
getRank="本局评级:",
ranks={"D","C","B","A","S"},
needRestart="重新开始以生效",

View File

@@ -2563,7 +2563,7 @@ local function gameOver()--Save record
needSave=true
end
if R>0 then
LOG.print(text.getRank..text.ranks[R],color.green)
GAME.rank=text.ranks[R]
if M.unlock then
for i=1,#M.unlock do
local m=M.unlock[i]

View File

@@ -1338,20 +1338,20 @@ do--pause
setFont(25)
if GAME.pauseCount>0 then
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
gc.setColor(1,1,1,T)
--Mode Info
_=drawableText.modeName
gc.draw(_,40,170)
gc.draw(drawableText.levelName,60+_:getWidth(),170)
--Result Text
setFont(35)
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
if GAME.frame>180 then
_=S.list
@@ -1362,7 +1362,13 @@ do--pause
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
setFont(60)
gc.setColor(S.rankColor[1],S.rankColor[2],S.rankColor[3],T)