fix: Remove duplicate arrow_alpha and debug prints
This commit is contained in:
@@ -794,12 +794,8 @@ 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,7 +55,6 @@ 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()
|
||||||
@@ -79,24 +78,6 @@ function QuestieOptions.tabs.arrow:Initialize()
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
arrow_alpha = {
|
|
||||||
type = "range",
|
|
||||||
order = 5,
|
|
||||||
width = 1.5,
|
|
||||||
name = function() return l10n("Arrow Transparency") end,
|
|
||||||
desc = function() return l10n("Change the transparency of the arrow") end,
|
|
||||||
min = 0.1,
|
|
||||||
max = 1.0,
|
|
||||||
step = 0.05,
|
|
||||||
get = function() return Questie.db.profile.arrowAlpha or 1.0 end,
|
|
||||||
set = function(_, value)
|
|
||||||
Questie.db.profile.arrowAlpha = value
|
|
||||||
local frame = _G.QuestieArrowFrame
|
|
||||||
if frame then
|
|
||||||
frame:SetAlpha(value)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
arrow_spacer_2 = QuestieOptionsUtils:Spacer(6),
|
arrow_spacer_2 = QuestieOptionsUtils:Spacer(6),
|
||||||
autoTrackQuests = {
|
autoTrackQuests = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
@@ -126,7 +107,6 @@ function QuestieOptions.tabs.arrow:Initialize()
|
|||||||
Questie.db.profile.arrowPosition = nil
|
Questie.db.profile.arrowPosition = nil
|
||||||
if QuestieArrow and QuestieArrow.ResetPosition then
|
if QuestieArrow and QuestieArrow.ResetPosition then
|
||||||
QuestieArrow:ResetPosition()
|
QuestieArrow:ResetPosition()
|
||||||
QuestieArrow:Refresh()
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user