Baggins

Baggins

1M Downloads

Tooltip filter does not work for items in the bank

Elberet opened this issue ยท 1 comments

commented

In WoW Cataclysm Classic, items in the bank, i.e. bag -1, never match any category based using the tooltip filter. This is because the API has changed, and GameTooltip:SetBagItem no longer works with the player's bank. Instead, GameTooltip:SetInventoryItem must be used to generate tooltip text for items in the main bank window.

I've patched Tooltip.lua to use the newer API and the filter now works as expected:

Old:

tip:SetBagItem(bag, slot)

New:

        if bag == -1 then
            local invId = BankButtonIDToInvSlotID(slot, false)
            tip:SetInventoryItem("player", invId)
        else
            tip:SetBagItem(bag, slot)
        end
commented

thanks for this, change is being pushed out now!