整理代码

调整中文tip
This commit is contained in:
MrZ626
2021-12-30 18:35:54 +08:00
parent 05921c2c53
commit 1c5b7f1f9c
6 changed files with 8 additions and 7 deletions

View File

@@ -373,7 +373,7 @@ function scene.draw()
if replaying or tas then
setFont(20)
gc_setColor(1,1,TIME()%.8>.4 and 1 or 0)
mStr(text[replaying and'replaying'or'tasUsing'],770,6)
mStr(replaying and text.replaying or text.tasUsing,770,6)
gc_setColor(1,1,1,.8)
mStr(("%s %sf"):format(repRateStrings[gameRate],PLAYERS[1].frameRun),770,31)
end

View File

@@ -30,7 +30,7 @@ function scene.sceneInit()
local frameLostRate=(S.frame/S.time/60-1)*100
form={
{COLOR.Z,STRING.time(S.time),COLOR[frameLostRate>10 and'R'or frameLostRate>3 and'Y'or'H'],(" (%.2f%%)"):format(frameLostRate)},
{COLOR.Z,STRING.time(S.time),frameLostRate>10 and COLOR.R or frameLostRate>3 and COLOR.Y or COLOR.H,(" (%.2f%%)"):format(frameLostRate)},
("%d/%d/%d"):format(S.key,S.rotate,S.hold),
("%d %.2fPPS"):format(S.piece,S.piece/S.time),
("%d(%d) %.2fLPM"):format(S.row,S.dig,S.row/S.time*60),

View File

@@ -188,7 +188,7 @@ function scene.draw()
if selected then
gc.setLineWidth(3)
gc.setColor(COLOR[TIME()%.26<.13 and'F'or'Y'])
gc.setColor(TIME()%.26<.13 and COLOR.F or COLOR.Y)
gc.rectangle('line',
selected>10 and 860 or 240,
selected>10 and 60*(selected-10)-50 or selected>0 and 60*selected-50 or 640,