fix(tooltip): remove misleading data-source attribution line

The Source: line cannot accurately reflect per-pin provenance without
changing every spawn registration site. Until that infrastructure
exists, the label is misleading — showing Questie DB even when data
came from the learner, or Learner when it came from AscensionDB.
Remove from both MapIconTooltip (world-map pins) and Tooltip
(unit/object hover).
This commit is contained in:
Xurkon
2026-06-08 21:40:10 -05:00
parent 6a4f715b76
commit f9a3301584
2 changed files with 3 additions and 40 deletions
+1 -5
View File
@@ -70,11 +70,7 @@ local DEFAULT_WAYPOINT_HOVER_COLOR = { 0.93, 0.46, 0.13, 0.8 }
local lastTooltipShowTimestamp = GetTime()
local function _GetWorldMapTooltipSourceLine()
local parts = { "Questie DB" }
if QuestieComms and (QuestieComms.remotePlayerEnabled or QuestieComms.data) then
tinsert(parts, "Comms")
end
return "|cFF808080Source: " .. table.concat(parts, " + ") .. "|r"
return nil
end
function MapIconTooltip:Show()
+2 -35
View File
@@ -116,44 +116,11 @@ local function _GetQuestObjectiveSummary(questId)
end
local function _BuildTooltipSourceLine(sourceFlags)
if not sourceFlags then
return nil
end
local parts = {}
if sourceFlags.static then
tinsert(parts, "Static DB")
end
if sourceFlags.learner then
tinsert(parts, "Learner")
end
if sourceFlags.comms then
tinsert(parts, "Comms")
end
if table.getn(parts) == 0 then
return nil
end
return "|cFF808080Source: " .. table.concat(parts, " + ") .. "|r"
return nil
end
local function _GetTooltipSourceLine(key)
local sourceFlags = {}
local QuestieLearner = QuestieLoader:ImportModule("QuestieLearner")
local mode = QuestieLearner and QuestieLearner.GetDataSourceMode and QuestieLearner:GetDataSourceMode() or "auto"
if mode == "learner" then
sourceFlags.learner = true
else
sourceFlags.static = true
end
if QuestieComms and QuestieComms.data and QuestieComms.data.KeyExists and QuestieComms.data:KeyExists(key) then
sourceFlags.comms = true
end
return _BuildTooltipSourceLine(sourceFlags)
return nil
end
---@param questId number