mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
tooltip: add option to display itemIDs
This commit is contained in:
+9
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user