Wowpedia

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

READ MORE

Wowpedia
({{widgetmethod}})
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{widgetmethod}}
+
{{widgetmethod}} __NOTOC__
{{stub/api}}
 
   
  +
Sets the GameTooltip to show a loot item.
get toolip of loot item (�?�得LOOT物�?的说明)
 
  +
GameTooltip:SetLootItem(lootIndex)
SetLootItem(slot) slot = index of LOOTFRAME_NUMBUTTONS
 
   
<GameTooltip name="MyGameTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
 
MyGameTooltip:SetLootItem(slot);
 
   
  +
== Arguments ==
i am sorry i am chinese if you can't understand it you can add my msn.my msn is cim_bird@hotmail.com
 
  +
:; 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.

Revision as of 14:49, 27 June 2007

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.