fix: sync native objective POIs with Questie icons

This commit is contained in:
Xurkon
2026-06-12 22:20:09 -05:00
parent 9a9002a92e
commit 71e172c4d0
5 changed files with 52 additions and 18 deletions
@@ -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"]
+1
View File
@@ -226,6 +226,7 @@ QuestieInit.Stages[1] = function() -- run as a coroutine
end
Questie:SetIcons()
QuestieCompat.SyncBlizzardObjectivePOIs(Questie.db.profile.enableObjectives)
if QUESTIE_LOCALES_OVERRIDE ~= nil then
l10n:InitializeLocaleOverride()
+1
View File
@@ -302,6 +302,7 @@ function QuestieMenu:Show(hideDelay)
tinsert(menuTable, { text= l10n("Objective"), func = function()
local value = not Questie.db.profile.enableObjectives
Questie.db.profile.enableObjectives = value
QuestieCompat.SyncBlizzardObjectivePOIs(value)
QuestieQuest:ToggleNotes(value)
QuestieQuest:SmoothReset()
end, icon=QuestieLib.AddonPath.."Icons\\event.blp", notCheckable=false, checked=Questie.db.profile.enableObjectives, isNotRadio=true, keepShownOnClick=true})