fix: Apply scale and alpha immediately via dedicated functions

This commit is contained in:
Xurkon
2026-04-02 18:53:55 -05:00
parent a5c5560c21
commit 4df787419a
2 changed files with 20 additions and 5 deletions
+16 -1
View File
@@ -770,7 +770,8 @@ end
function QuestieArrow:ResetPosition()
Questie.db.profile.arrowPosition = nil
-- Reset to default center position
-- Ensure frame exists, then reset to default center position
EnsureArrowFrame()
if arrowFrame then
arrowFrame:ClearAllPoints()
arrowFrame:SetPoint("CENTER", UIParent, "CENTER", 0, -100)
@@ -778,6 +779,20 @@ function QuestieArrow:ResetPosition()
end
end
function QuestieArrow:ApplyScale()
EnsureArrowFrame()
if arrowFrame then
arrowFrame:SetScale(_GetArrowScale())
end
end
function QuestieArrow:ApplyAlpha()
EnsureArrowFrame()
if arrowFrame then
arrowFrame:SetAlpha(_GetArrowAlpha())
end
end
function QuestieArrow:Initialize()
EnsureArrowFrame()