Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions bossrushwavecounter/mcm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ local resetSettings = false

local category = "Wave Counter"
MCM.UpdateCategory(category, {
Info = "A Simple Wave Counter For Boss Rush!",
Info = "一个简单的Boss Rush波次计数器!",
})

MCM.AddSpace(category)

MCM.AddTitle(category, "Hold '/' and use the arrow keys")
MCM.AddTitle(category, "To move the counter, press '.'")
MCM.AddTitle(category, "To reset the counters position")
MCM.AddTitle(category, "按住 / 键,用方向键调整计数器位置")
MCM.AddTitle(category, "按 . 键重置计数器位置")
MCM.AddTitle(category, "计数器位置已重置")

MCM.AddSpace(category)

local presetOptions = { "Default", "Found HUD", "Boss Bar" } -- For changing the preset
local presetOptions = { "默认", "Found HUD", "Boss血条" } -- For changing the preset
MCM.AddSetting(category, {
Type = ModConfigMenu.OptionType.NUMBER,

Expand All @@ -29,7 +29,7 @@ MCM.AddSetting(category, {
Maximum = 3,

Display = function()
return "Preset: " .. presetOptions[variables.displayPreset]
return "预设位置: " .. presetOptions[variables.displayPreset]
end,

OnChange = function(i)
Expand All @@ -38,11 +38,11 @@ MCM.AddSetting(category, {
variables.verticalAdjustment = 0
end,

Info = { "Use a preset for the position of the counter" }
Info = { "使用预设位置摆放计数器" }
})

MCM.AddSpace(category)
MCM.AddTitle(category, "Counter RGB Values")
MCM.AddTitle(category, "计数器文字颜色")
MCM.AddSpace(category)

-- RGB Values
Expand All @@ -57,14 +57,14 @@ MCM.AddSetting(category, {
Maximum = 255,

Display = function()
return "Counter R : " .. variables.textR
return "颜色R(红): " .. variables.textR
end,

OnChange = function(i)
variables.textR = i
end,

Info = { "Change the Red Value in the counters text" }
Info = { "修改计数器文字中的红色值" }
})

MCM.AddSetting(category, {
Expand All @@ -78,14 +78,14 @@ MCM.AddSetting(category, {
Maximum = 255,

Display = function()
return "Counter G : " .. variables.textG
return "颜色G(绿): " .. variables.textG
end,

OnChange = function(i)
variables.textG = i
end,

Info = { "Change the Green Value in the counters text" }
Info = { "修改计数器文字中的绿色值" }
})

MCM.AddSetting(category, {
Expand All @@ -99,18 +99,18 @@ MCM.AddSetting(category, {
Maximum = 255,

Display = function()
return "Counter B : " .. variables.textB
return "颜色B(蓝): " .. variables.textB
end,

OnChange = function(i)
variables.textB = i
end,

Info = { "Change the Blue Value in the counters text" }
Info = { "修改计数器文字中的蓝色值" }
})

MCM.AddSpace(category)
MCM.AddTitle(category, "UI Scaling")
MCM.AddTitle(category, "界面缩放")
MCM.AddSpace(category)

MCM.AddSetting(category, {
Expand All @@ -124,14 +124,14 @@ MCM.AddSetting(category, {
Maximum = 200,

Display = function()
return "Bar Scale : " .. variables.barScale
return "进度条缩放: " .. variables.barScale
end,

OnChange = function(i)
variables.barScale = i
end,

Info = { "Change the scale at which the Bar Sprite should be rendered" }
Info = { "进度条贴图的渲染缩放" }
})

MCM.AddSetting(category, {
Expand All @@ -145,14 +145,14 @@ MCM.AddSetting(category, {
Maximum = 200,

Display = function()
return "Font Scale : " .. variables.textScale
return "字体缩放: " .. variables.textScale
end,

OnChange = function(i)
variables.textScale = i
end,

Info = { "Change the scale at which the Font should be rendered" }
Info = { "文字的渲染缩放" }
})

MCM.AddSetting(category, {
Expand All @@ -166,14 +166,14 @@ MCM.AddSetting(category, {
Maximum = 20,

Display = function()
return "Vertical Adjustment : " .. variables.textNudge
return "垂直微调: " .. variables.textNudge
end,

OnChange = function(i)
variables.textNudge = i
end,

Info = { "Nudge the Counter Text up or down" }
Info = { "上下微调计数器文字的位置" }
})

MCM.AddSpace(category)
Expand All @@ -186,7 +186,7 @@ MCM.AddSetting(category, {
end,

Display = function()
return "RESET ALL SETTINGS"
return "重置所有设置"
end,

OnChange = function(boolean)
Expand All @@ -196,5 +196,5 @@ MCM.AddSetting(category, {
save.saveData()
end,

Info = { "RESET ALL SETTINGS TO DEFAULT" }
Info = { "将所有设置恢复为默认值" }
})
Loading