Widget API: GameTooltip:SetUnit

From AddOn Studio
Revision as of 10:08, 29 October 2008 by WoWWiki>Egingell (Functional example and spelling)
Jump to navigation Jump to search

Widget API ← GameTooltip < SetUnit

Sets the UnitID for the tooltip.


Arguments

("unit")


"unit"
String - UnitID of the wanted Unit ("player,"party1".."party4","target","raid1".."raid40", etc.)

Example

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetUnit("player")
GameTooltip:Show()

Shows the GameTooltip with information about the player.