Fandom

WoWWiki

API GameTooltip SetLootItem

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Widget API ← GameTooltip < SetLootItem

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.

Also on Fandom

Random Wiki