tooltip: add option to display itemIDs

This commit is contained in:
shagu
2019-12-05 21:54:03 +01:00
parent a5df9db348
commit d6d5abdebc
3 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -162,7 +162,15 @@ pfUI:RegisterModule("tooltip", "vanilla:tbc", function ()
function pfUI.tooltip:Update()
local unit = pfUI.tooltip:GetUnit()
if unit == "none" then return end
if unit == "none" then
-- process item tooltips
if C.tooltip.itemid == "1" and libtooltip:GetItemID() then
GameTooltip:AddLine(T["ItemID"] .. ": " .. libtooltip:GetItemID(), .25,.5,1)
GameTooltip:Show()
end
return
end
local pvpname = UnitPVPName(unit)
local name = UnitName(unit)