From 9e3c0acf452a7933e5223ae912ba257cf0b9e882 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Wed, 10 Dec 2025 09:56:46 -0800 Subject: [PATCH] add ability to change curse timer text size --- Cursive.toc | 4 ++-- Localization.lua | 6 ++++-- settings.lua | 23 +++++++++++++++++++++-- ui.lua | 2 +- 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Cursive.toc b/Cursive.toc index 4b52d7f..f29a9fd 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -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功能来显示战斗中的单位并监视诅咒等 diff --git a/Localization.lua b/Localization.lua index 2507970..cb731fb 100644 --- a/Localization.lua +++ b/Localization.lua @@ -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"] = "玩家", diff --git a/settings.lua b/settings.lua index d6d82fa..dca9fd3 100644 --- a/settings.lua +++ b/settings.lua @@ -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"], diff --git a/ui.lua b/ui.lua index 7984699..a919b77 100644 --- a/ui.lua +++ b/ui.lua @@ -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)