WoW:API GameTooltip SetBagItem: Difference between revisions
Jump to navigation
Jump to search
(shifted parameters; unsure what 1st parameter is) |
No edit summary |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
hasCooldown, repairCost = GameTooltip:SetBagItem( | 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). | 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). | ||
Line 11: | Line 8: | ||
;''Arguments'' | ;''Arguments'' | ||
:(bag, slot) | |||
:( | |||
:;bag: Numeric - the ID of the bag | :;bag: Numeric - the ID of the bag | ||
:;slot: Numeric - the ID of the slot | :;slot: Numeric - the ID of the slot | ||
Line 20: | Line 14: | ||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
:hasCooldown, repairCost | :hasCooldown, repairCost | ||
Line 29: | Line 21: | ||
---- | ---- | ||
;''Details'' | ;''Details'' | ||
: 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 19:38, 15 February 2008
← Widget API ← GameTooltip < SetBagItem
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.