add ability to change curse timer text size

This commit is contained in:
pepopo978
2025-12-10 09:56:46 -08:00
parent f8bb31fe78
commit 9e3c0acf45
4 changed files with 28 additions and 7 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
## Interface: 11200
## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.5
## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.5.5
## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.6.0
## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.6.0
## Author: Pepopo
## Notes: Uses SuperWoW GUIDs to show units in combat and track curses
## Notes-zhCN: 使用SuperWoW的GUID功能来显示战斗中的单位并监视诅咒等
+4 -2
View File
@@ -61,7 +61,8 @@ L:RegisterTranslations("enUS", function()
["Raid Icon Size"] = true,
["Curse Icon Size"] = true,
["Spacing"] = true,
["Text Size"] = true,
["Name/Hp Text Size"] = true,
["Curse Timer Text Size"] = true,
["Scale"] = true,
["In Combat"] = true,
["Player"] = true,
@@ -271,7 +272,8 @@ L:RegisterTranslations("zhCN", function()
["Raid Icon Size"] = "团队标记大小",
["Curse Icon Size"] = "诅咒图标大小",
["Spacing"] = "间距",
["Text Size"] = "文本大小",
["Name/Hp Text Size"] = "名称/生命值文字大小",
["Curse Timer Text Size"] = "诅咒计时器文字大小",
["Scale"] = "缩放",
["In Combat"] = "战斗中",
["Player"] = "玩家",
+21 -2
View File
@@ -38,6 +38,7 @@ Cursive:RegisterDefaults("profile", {
maxrow = 10,
maxcol = 1,
textsize = 9,
cursetimersize = 11,
curseordering = L["Expiring soonest -> latest"],
curseshowdecimals = false,
@@ -304,8 +305,8 @@ local barOptions = {
},
["textsize"] = {
type = "range",
name = L["Text Size"],
desc = L["Text Size"],
name = L["Name/Hp Text Size"],
desc = L["Name/Hp Text Size"],
order = 90,
min = 8,
max = 20,
@@ -320,6 +321,24 @@ local barOptions = {
end
end,
},
["cursetimersize"] = {
type = "range",
name = L["Curse Timer Text Size"],
desc = L["Curse Timer Text Size"],
order = 95,
min = 6,
max = 20,
step = 1,
get = function()
return Cursive.db.profile.cursetimersize
end,
set = function(v)
if v ~= Cursive.db.profile.cursetimersize then
Cursive.db.profile.cursetimersize = v
Cursive.UpdateFramesFromConfig()
end
end,
},
["scale"] = {
type = "range",
name = L["Scale"],
+1 -1
View File
@@ -454,7 +454,7 @@ local function CreateBarThirdSection(unitFrame, guid)
curse.timer = thirdSection:CreateFontString(nil, "OVERLAY", "GameFontNormal")
curse.timer:SetFontObject(GameFontHighlight)
curse.timer:SetFont(STANDARD_TEXT_FONT, 11, "OUTLINE")
curse.timer:SetFont(STANDARD_TEXT_FONT, config.cursetimersize, "OUTLINE")
curse.timer:SetTextColor(1, 1, 1)
curse.timer:SetAllPoints(curse)