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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user