debug: Add prints to trace scale update
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user