WoW:API GameTooltip SetBagItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 35: Line 35:


----
----
{{Template:WoW API}}
{{template:WoW API}}
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. -->
[[Widget_API#GameTooltip|GameTooltip]]

Revision as of 17:56, 30 December 2005

GameTooltip:SetBagItem -Documentation by Xenoveritas-


hasCooldown, repairCost = GameTooltip:SetBagItem(bagId, itemId);


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


(bagId, itemId)
bagId
Integer? - the ID of the bag
itemId
Integer? - the ID of the item

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.

Template:WoW API