debug: Add prints to trace scale update

This commit is contained in:
Xurkon
2026-04-02 19:06:56 -05:00
parent a1f273bba5
commit fb8c4292c9
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -794,8 +794,12 @@ function QuestieArrow:ApplyAlpha()
end end
function QuestieArrow:UpdateSettings() function QuestieArrow:UpdateSettings()
-- Debug
print("UpdateSettings called, arrowFrame=" .. tostring(arrowFrame))
EnsureArrowFrame() EnsureArrowFrame()
print("After EnsureArrowFrame, arrowFrame=" .. tostring(arrowFrame))
if arrowFrame then if arrowFrame then
print("Setting scale to " .. tostring(_GetArrowScale()))
arrowFrame:SetScale(_GetArrowScale()) arrowFrame:SetScale(_GetArrowScale())
arrowFrame:SetAlpha(_GetArrowAlpha()) arrowFrame:SetAlpha(_GetArrowAlpha())
end end
@@ -55,6 +55,7 @@ function QuestieOptions.tabs.arrow:Initialize()
step = 0.05, step = 0.05,
get = function() return Questie.db.profile.arrowScale or 1 end, get = function() return Questie.db.profile.arrowScale or 1 end,
set = function(_, value) set = function(_, value)
print("Arrow scale set to: " .. tostring(value))
Questie.db.profile.arrowScale = value Questie.db.profile.arrowScale = value
if QuestieArrow and QuestieArrow.UpdateSettings then if QuestieArrow and QuestieArrow.UpdateSettings then
QuestieArrow:UpdateSettings() QuestieArrow:UpdateSettings()