Wikia

WoWWiki

API GameTooltip SetLootItem

Talk0
101,390pages on
this wiki
Revision as of 23:52, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API


Sets the GameTooltip to show a loot item.

GameTooltip:SetLootItem(lootIndex)


Arguments Edit

lootIndex 
Number - The index of the loot item to show (from 1 to GetNumLootItems())


Returns Edit

nil


Example Edit

<GameTooltip name="MyGameTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
MyGameTooltip:SetLootItem(GetNumLootItems());

Result

Sets the GameTooltip to show the last loot item.

Around Wikia's network

Random Wiki