Skip to content

Commit

Permalink
完善几个语言文件
Browse files Browse the repository at this point in the history
微调无尽模式代码
  • Loading branch information
MrZ626 committed Sep 7, 2023
1 parent 3aa60d3 commit 481ea06
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
10 changes: 4 additions & 6 deletions parts/eventsets/infinite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ return {
mText(TEXTOBJ.atk,63,243)
mText(TEXTOBJ.eff,63,363)

local opacity=math.max(.4,MATH.expApproach(1,.36,2*(P.stat.time-P.modeData.lastChange)))
local opacity=math.max(.4,1-(P.stat.time-P.modeData.lastChange))
if #P.field>15 then opacity=opacity*.7 end
setFont(25)
GC.setColor(1,1,1,opacity)
Expand All @@ -27,11 +27,9 @@ return {
local env=P.gameEnv
if P.modeData.infHeight then
env.fieldH=math.max(env.fieldH,heightTarget)
return
elseif env.fieldH~=20 then
-- if not infHeight, then only decrease height
env.fieldH=MATH.clamp(env.fieldH,heightTarget,20)
end

-- if not infHeight, then only decrease height
if env.fieldH==20 then return end
env.fieldH=math.max(20,math.min(env.fieldH,heightTarget))
end
}
7 changes: 3 additions & 4 deletions parts/language/lang_symbol.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local x,v=CHAR.icon.crossMark,CHAR.icon.checkMark
return {
fallback='en',
loadText={
Expand Down Expand Up @@ -39,9 +38,9 @@ return {
maxspeed="!!!",
speedup="~!~",
missionFailed="-X_X-",
infHeightOn="∞↑ "..v,
infHeightOff="∞↑ "..x,
infHeightHint=v.."/"..x..": F₁",
infHeightOn="∞↑ "..CHAR.icon.checkMark,
infHeightOff="∞↑ "..CHAR.icon.crossMark,
infHeightHint=CHAR.icon.checkMark.."/"..CHAR.icon.crossMark..": F₁",

win=": )",
lose=": (",
Expand Down
3 changes: 3 additions & 0 deletions parts/language/lang_vi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ return {
maxspeed="TỐC ĐỘ TỐI ĐA!",
speedup="Tăng tốc nào!",
missionFailed="Nhiệm vụ thất bại",
infHeightOn="Infinite Height ON",
infHeightOff="Infinite Height OFF",
infHeightHint="Toggle with Function 1 key",

speedLV="Tốc độ rơi",
piece="Gạch",line="Hàng",atk="Attack",eff="Efficiency",
Expand Down
11 changes: 6 additions & 5 deletions parts/language/lang_zh.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ return {
maxspeed="最高速度",
speedup="速度加快",
missionFailed="非任务消除",
infHeightOn="无限高度 开",
infHeightOff="无限高度 关",
infHeightHint="用功能键1切换",

speedLV="速度等级",
piece="块数",line="行数",atk="攻击",eff="效率",
Expand Down Expand Up @@ -380,11 +383,10 @@ return {
sha2 [Egor Skriptunoff]
]],
support="支持作者",
dict={ -- Message from Sea: credit to User670 for helping me out this part.
dict={ -- Message from Sea: credit to User670 for helping me out this part.
sizeChanged="已更改字号为$1",
sizeReset="字号已重置",
helpText=
[[
helpText=[[
小Z词典操作说明
鼠标/触摸屏:
Expand All @@ -404,8 +406,7 @@ return {
按 $10 to 显示帮助
按 $5 或 $6 滚动文本, 按 $11 加速
按 $7 打开上一词条,按 $8 打开下一词条。按住 $11 加速
按住 $11 并按 $6 缩小字号,或 $5 增大字号
]]
按住 $11 并按 $6 缩小字号,或 $5 增大字号]]
-- 1-4: Up, Down, Left, Right
-- 5-8: Up, Down, Left, Right but D-Pad
-- 9-12: X, Y, A, B
Expand Down
3 changes: 3 additions & 0 deletions parts/language/lang_zh_code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ return {
maxspeed="Speed(Max);",
speedup="Speed(Up);",
missionFailed="Clear.Wrong();",
infHeightOn="infHeight=true",
infHeightOff="infHeight=false",
infHeightHint="F1:!infHeight",

speedLV="P.SpeedLV",
piece="P.Piece",line="P.Line",atk="P.ATK",eff="P.EFF",
Expand Down
11 changes: 7 additions & 4 deletions parts/language/lang_zh_trad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ return {
maxspeed="最大速度",
speedup="加速",
missionFailed="任務外清除",
infHeightOn="無限高度 開",
infHeightOff="無限高度 關",
infHeightHint="用功能鍵1切換",

speedLV="速度等級",
piece="塊數",line="行數",atk="攻擊",eff="效率",
Expand Down Expand Up @@ -906,10 +909,10 @@ return {
['tech_h_plus']= {"科研", "困難+", "僅允許spin與PC"},
['tech_l']= {"科研", "瘋狂", "禁止斷B2B"},
['tech_l_plus']= {"科研", "瘋狂+", "僅允許spin與PC"},
['tech_finesse']= {"科研", "finesse", "強制finesse"},
['tech_finesse_f']= {"科研", "finesse+", "禁止普通清除,強制finesse"},
-- ['tech_finesse_lock']= {"科研", "极简限制", "限制操作次数"},
-- ['tech_finesse_lock_f']={"科研", "极简限制+", "限制操作次数,禁止断B2B"},
['tech_finesse']= {"科研", "finesse", "強制finesse"},
['tech_finesse_f']= {"科研", "finesse+", "禁止普通清除,強制finesse"},
['tech_finesse_lock']= {"科研", "finesse限制", "限制操作次數"},
['tech_finesse_lock_f']={"科研", "finesse限制+","限制操作次數,禁止斷B2B"},
['tsd_e']= {"TSD挑戰", "簡單", "你能連續做幾個TSD?"},
['tsd_h']= {"TSD挑戰", "困難", "你能連續做幾個TSD?"},
['tsd_u']= {"TSD挑戰", "極限", "你能連續做幾個TSD?"},
Expand Down

0 comments on commit 481ea06

Please sign in to comment.