Lore archive · Warcraft Wiki, 2023 dump
API GameTooltip AddTexture
Last wiki revision 2022-12-10
Adds a texture (icon) to the beginning of the last line added by AddLine, AddDoubleLine, etc. GameTooltip:AddTexture(fileDataID/"filename" [, TooltipTextureInfo])
- fileDataID : number - FileDataID
- or filename : string - Path to the file
- TooltipTextureInfo : structure (optional)
These are the internal defaults. The table may be partially filled out and any unspecified settings will be used at their default values. { width = 12, height = 12, anchor = Enum.TooltipTextureAnchor.LeftTop, region = Enum.TooltipTextureRelativeRegion.LeftLine, verticalOffset = 0, margin = { left = 8, right = 8, top = 0, bottom = 0 }, texCoords = { left = 0, right = 1, top = 0, bottom = 1 }, vertexColor = { r = 1, g = 1, b = 1, a = 1 }, }
GameTooltip:AddTexture(134532, {width = 32, height = 32})
- There is a limit of 10 textures per tooltip line (as seen in GameTooltipTemplate.xml). You can get around this limitation by using
Source
https://warcraft.wiki.gg/wiki/API_GameTooltip_AddTexture · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.