WoW:API GameTooltip SetBagItem: Difference between revisions
Jump to navigation
Jump to search
GameTooltip:SetBagItem -Documentation by Xenoveritas-
No edit summary |
({{widgetmethod}}) |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''GameTooltip:SetBagItem''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center> | <center>'''GameTooltip:SetBagItem''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center> | ||
Line 33: | Line 35: | ||
: This simply sets the text of the game tooltip to contain various information about the item under the given slot. | : This simply sets the text of the game tooltip to contain various information about the item under the given slot. | ||
Revision as of 12:07, 10 June 2006
← Widget API ← GameTooltip < SetBagItem
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.