debug: Add prints to trace scale update
This commit is contained in:
@@ -794,8 +794,12 @@ function QuestieArrow:ApplyAlpha()
|
||||
end
|
||||
|
||||
function QuestieArrow:UpdateSettings()
|
||||
-- Debug
|
||||
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())
|
||||
end
|
||||
|
||||
@@ -55,6 +55,7 @@ function QuestieOptions.tabs.arrow:Initialize()
|
||||
step = 0.05,
|
||||
get = function() return Questie.db.profile.arrowScale or 1 end,
|
||||
set = function(_, value)
|
||||
print("Arrow scale set to: " .. tostring(value))
|
||||
Questie.db.profile.arrowScale = value
|
||||
if QuestieArrow and QuestieArrow.UpdateSettings then
|
||||
QuestieArrow:UpdateSettings()
|
||||
|
||||
Reference in New Issue
Block a user