WoW:API GameTooltip SetLootItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GameTooltip SetLootItem to API GameTooltip SetLootItem without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
get toolip of loot item (�?�得LOOT物�?的说明)
{{widgetmethod}} __NOTOC__
SetLootItem(slot) slot = index of LOOTFRAME_NUMBUTTONS


<GameTooltip name="MyGameTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
Sets the GameTooltip to show a loot item.
MyGameTooltip:SetLootItem(slot);
GameTooltip:SetLootItem(lootIndex)


i am sorry i am chinese if you can't understand it you can add my msn.my msn is cim_bird@hotmail.com


{{template:WoW API}}
== 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.

Latest revision as of 04:45, 15 August 2023

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.