feat: Add arrow font settings; Add Apply to All font options to Tracker

This commit is contained in:
Xurkon
2026-04-02 19:27:05 -05:00
parent 882cd01628
commit 57f6cc4471
4 changed files with 92 additions and 4 deletions
+13 -3
View File
@@ -794,13 +794,23 @@ function QuestieArrow:ApplyAlpha()
end
function QuestieArrow:UpdateSettings()
print("UpdateSettings called, arrowFrame=" .. tostring(arrowFrame))
EnsureArrowFrame()
print("After EnsureArrowFrame, arrowFrame=" .. tostring(arrowFrame))
if arrowFrame then
print("Setting scale to " .. tostring(_GetArrowScale()))
arrowFrame:SetScale(_GetArrowScale())
arrowFrame:SetAlpha(_GetArrowAlpha())
QuestieArrow:UpdateFont()
end
end
function QuestieArrow:UpdateFont()
if not arrowFrame then return end
local fontSize = Questie.db.profile.arrowFontSize or 10
local fontFace = Questie.db.profile.arrowFont or QuestieFont:GetFont()
if arrowFrame.title then
arrowFrame.title:SetFont(fontFace, fontSize, "OUTLINE")
end
if arrowFrame.distance then
arrowFrame.distance:SetFont(fontFace, fontSize - 2, "OUTLINE")
end
end