fix: sync native objective POIs with Questie icons
This commit is contained in:
@@ -266,6 +266,7 @@ function QuestieOptions.tabs.icons:Initialize()
|
||||
get = function() return Questie.db.profile.enableObjectives; end,
|
||||
set = function(info, value)
|
||||
Questie.db.profile.enableObjectives = value
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(value)
|
||||
QuestieQuest:ToggleNotes(value)
|
||||
QuestieOptionsUtils.DetermineTheme()
|
||||
end,
|
||||
@@ -1334,12 +1335,7 @@ end
|
||||
function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.iconTheme = value
|
||||
if value == 'questie' then
|
||||
if GetCVar("questPOI") then -- if wotlk objectives available
|
||||
SetCVar("questPOI", "0") -- disable them
|
||||
end
|
||||
if WorldMapQuestShowObjectives then -- if wotlk blizzard objectives button exists
|
||||
WorldMapQuestShowObjectives:SetChecked(false) -- uncheck it
|
||||
end
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(true)
|
||||
Questie.db.profile.enableObjectives = true
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["slay"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["loot"]
|
||||
@@ -1352,12 +1348,7 @@ function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.alwaysGlowMinimap = optionsDefaults.profile.alwaysGlowMinimap
|
||||
Questie.db.profile.clusterLevelHotzone = optionsDefaults.profile.clusterLevelHotzone
|
||||
elseif value == 'pfquest' then
|
||||
if GetCVar("questPOI") then -- if wotlk objectives available
|
||||
SetCVar("questPOI", "0") -- disable them
|
||||
end
|
||||
if WorldMapQuestShowObjectives then -- if wotlk blizzard objectives button exists
|
||||
WorldMapQuestShowObjectives:SetChecked(false) -- uncheck it
|
||||
end
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(true)
|
||||
Questie.db.profile.enableObjectives = true
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["node"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["node"]
|
||||
@@ -1370,12 +1361,7 @@ function QuestieOptionsUtils.ExecuteTheme(info, value)
|
||||
Questie.db.profile.alwaysGlowMinimap = false
|
||||
Questie.db.profile.clusterLevelHotzone = 1
|
||||
elseif value == 'blizzard' then
|
||||
if GetCVar("questPOI") then -- if wotlk objectives available
|
||||
SetCVar("questPOI", "1") -- enable them
|
||||
end
|
||||
if WorldMapQuestShowObjectives then -- if wotlk blizzard objectives button exists
|
||||
WorldMapQuestShowObjectives:SetChecked(false) -- check it
|
||||
end
|
||||
QuestieCompat.SyncBlizzardObjectivePOIs(false)
|
||||
Questie.db.profile.enableObjectives = false
|
||||
Questie.db.profile.ICON_SLAY = Questie.icons["slay"]
|
||||
Questie.db.profile.ICON_LOOT = Questie.icons["loot"]
|
||||
|
||||
Reference in New Issue
Block a user