fix: refresh map tooltip objective progress

This commit is contained in:
Xurkon
2026-06-12 17:23:10 -05:00
parent 493545a4d4
commit 90f1f31474
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -69,6 +69,18 @@ local DEFAULT_WAYPOINT_HOVER_COLOR = { 0.93, 0.46, 0.13, 0.8 }
local lastTooltipShowTimestamp = GetTime()
function MapIconTooltip:RefreshObjectiveForTooltip(objective)
if not objective or not objective.Update then
return
end
-- Map/minimap pins can remain on screen while quest progress changes. Refresh the
-- shared objective before rendering so tooltip counters do not stay at the value
-- captured when the pin was originally drawn.
objective.isUpdated = false
objective:Update()
end
local function _GetWorldMapTooltipSourceLine(pinData)
-- Show learner spawn data for the hovered map icon when available.
local id = pinData and pinData.Id
@@ -870,6 +882,7 @@ end
function _MapIconTooltip:GetObjectiveTooltip(icon)
local tooltips = {}
local iconData = icon.data
MapIconTooltip:RefreshObjectiveForTooltip(iconData.ObjectiveData)
local text = iconData.ObjectiveData.Description
local color = QuestieLib:GetRGBForObjective(iconData.ObjectiveData)
if iconData.ObjectiveData.Needed then