WoW:API GameTooltip AddTexture: Difference between revisions
Jump to navigation
Jump to search
GameTooltip.AddTexture -Documentation by Egingell-
m (Updated link text.) |
m (Prettied it up a little) |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
<center>''' | <center>'''GameTooltip.AddTexture''' ''-Documentation by [[user:Egingell|Egingell]]-''</center> | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
Line 16: | Line 16: | ||
Note: There appears to be a limit of 10 textures per tooltip. | Note: There appears to be a limit of 10 textures per tooltip. | ||
:As per [http://wdn.wowinterface.com/code/0307485/FrameXML/GameTooltipTemplate.xml GameTooltipTemplate.xml], there are ''10'' '''Texture''' elements defined in '''GameTooltipTemplate'''. | |||
As |
Revision as of 06:56, 24 November 2007
← Widget API ← GameTooltip < AddTexture
--[[ 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 per GameTooltipTemplate.xml, there are 10 Texture elements defined in GameTooltipTemplate.