Files
wow-weakauras/FreshShit/__Ascension/TooltipItemInfo/init.lua
2025-05-15 20:37:50 +02:00

22 lines
713 B
Lua

if not _G.tooltipItemInfoHooked then
local function iteminfo(self, bag, slot)
local itemLink = GetContainerItemLink(bag, slot)
if itemLink then
local _, _, _, ilvl, reqLevel, class, subclass, maxStack, equipSlot = GetItemInfo(itemLink)
self:AddLine("")
self:AddLine("Req Level: " .. reqLevel)
self:AddLine("Item Level: " .. ilvl)
self:AddLine("Class: " .. class)
self:AddLine("Subclass: " .. subclass)
self:AddLine("Max Stack: " .. maxStack)
self:AddLine("Equip Slot: " .. equipSlot)
end
self:Show()
end
-- hooksecurefunc(GameTooltip, "SetInventoryItem", iteminfo)
hooksecurefunc(GameTooltip, "SetBagItem", iteminfo)
_G.tooltipItemInfoHooked = true
end