WoW:API GameTooltip AddTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Updated link text.)
Line 15: Line 15:
Adds a texture (icon) to the beginning of the last line added by [[API GameTooltip_AddLine|AddLine]](), [[API GameTooltip_AddDoubleLine|AddDoubleLine]](), etc.
Adds a texture (icon) to the beginning of the last line added by [[API GameTooltip_AddLine|AddLine]](), [[API GameTooltip_AddDoubleLine|AddDoubleLine]](), etc.


Note: There appears to be a limit of 8 textures per tooltip.
Note: There appears to be a limit of 10 textures per tooltip.
 
As what I got in GameTooltipTemplate.xml[http://wdn.wowinterface.com/code/0307485/FrameXML/GameTooltipTemplate.xml], there are ''10'' '''Texture''' elements defined in '''GameTooltipTemplate'''.

Revision as of 13:07, 23 November 2007

Widget API ← GameTooltip < AddTexture

Title -Documentation by Egingell-
--[[
 PNG or BLP (without the .blp extension) relative to the Addon's directory with the WoW install
 directory being the top level (eg "\\interface" = "C:\\Program Files\\World of Warcraft\\interface").
 You'll probably use the texture returned by GetItemInfo().
--]]
 GameTooltip:AddTexture(texture);


Adds a texture (icon) to the beginning of the last line added by AddLine(), AddDoubleLine(), etc.

Note: There appears to be a limit of 10 textures per tooltip.

As what I got in GameTooltipTemplate.xml[1], there are 10 Texture elements defined in GameTooltipTemplate.