Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>)
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
Line 1: Line 1:
{{widgetmethod}}<br> __NOTOC__
+
{{widgetmethod}} __NOTOC__
   
 
Sets the GameTooltip to show a loot item.
 
Sets the GameTooltip to show a loot item.

Revision as of 23:52, 14 July 2008

Sets the GameTooltip to show a loot item.

GameTooltip:SetLootItem(lootIndex)


Arguments

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


Returns

nil


Example

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

Result

Sets the GameTooltip to show the last loot item.