Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GameTooltip SetBagItem

From WoW Classic Wiki
GameTooltip:SetBagItem -Documentation by Xenoveritas-


hasCooldown, repairCost = GameTooltip:SetBagItem(bag, slot);


Sets the GameTooltip to contain text information about the specified item, as well as returning whether the item is "cooling down" and the cost to repair the item (which may be 0 (or nil?) if non-applicable).


Arguments


(bag, slot)
bag
Numeric - the ID of the bag
slot
Numeric - the ID of the slot

Returns


hasCooldown, repairCost
hasCooldown
Boolean - if the item currently has a cooldown
repairCost
Integer - the cost to repair the item, may be 0 or nil if the item cannot be repaired.

Details


This simply sets the text of the game tooltip to contain various information about the item under the given slot.