Widget API: GameTooltip:SetLootItem
← Widget API ← GameTooltip < SetLootItem
Sets the GameTooltip to show a loot item.
GameTooltip:SetLootItem(lootIndex)
ArgumentsEdit
- lootIndex
- Number - The index of the loot item to show (from 1 to GetNumLootItems())
ReturnsEdit
- nil
ExampleEdit
<GameTooltip name="MyGameTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/> MyGameTooltip:SetLootItem(GetNumLootItems());
Result
Sets the GameTooltip to show the last loot item.