Updated to match the current API boilerplate.
({{widgetmethod}}) |
(Updated to match the current API boilerplate.) |
||
| Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} __NOTOC__ | ||
Sets the GameTooltip to show a loot item. | |||
SetLootItem( | GameTooltip:SetLootItem(lootIndex) | ||
== Arguments == | |||
:; lootIndex : Number - The index of the loot item to show (from 1 to [[API GetNumLootItems|GetNumLootItems()]]) | |||
== Returns == | |||
:nil | |||
== Example == | |||
<GameTooltip name="MyGameTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/> | |||
MyGameTooltip:SetLootItem(GetNumLootItems()); | |||
<big>'''Result'''</big> | |||
Sets the GameTooltip to show the last loot item. | |||