WoW:API GameTooltip SetUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GameTooltip SetUnit to API GameTooltip SetUnit without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{widgetmethod}}
Sets the UnitID for the tooltip.
Sets the UnitID for the tooltip.


Line 12: Line 14:
----
----
'''Example'''
'''Example'''
    ''GameTooltip:SetUnit("player")''
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
Shows the GameTooltip with informations about the player.
GameTooltip:'''SetUnit'''("player")
GameTooltip:Show()
Shows the GameTooltip with information about the player.

Latest revision as of 04:45, 15 August 2023

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.