RSS

Вторник, 05.11.2024, 08:41
Главная » WoW API » API Виджеты » Внутриигровая подсказка »

hasItem, hasCooldown, repairCost = GameTooltip:SetInventoryItem("unit", slot [, nameOnly])

[ править ]
Fills the tooltip with information about an equipped item.
[клоны]
Fills the tooltip with information about an equipped item.


Signature:
Code
hasItem, hasCooldown, repairCost = GameTooltip:SetInventoryItem("unit", slot [, nameOnly])

Arguments:
  • unit - A unit to query; only valid for 'player' or the unit currently being inspected (string, unitID)
  • slot - An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)
  • nameOnly - True to omit much of the item's information (stat bonuses, sockets, and binding) from the tooltip; false to show all of the item's information (boolean)

Returns:
  • hasItem - 1 if the unit has an item in the given slot; otherwise nil (number, 1nil)
  • hasCooldown - 1 if the item is currently on cooldown; otherwise nil (number, 1nil)
  • repairCost - Cost to repair the item (in copper, ignoring faction discounts) (number)

Также смотрите: Внутриигровая подсказка
Ссылки: http://wowprogramming.com/docs/widgets/GameTooltip/SetInventoryItem