API GameTooltip AddTexture

Adds a texture (icon) to the beginning of the last line added by AddLine, AddDoubleLine, etc. GameTooltip:AddTexture(fileDataID/"filename" [, TooltipTextureInfo])

Arguments

 * fileDataID : number- FileDataID
 * or filename : string - Path to the file
 * TooltipTextureInfo : structure (optional)

Defaults
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 }, }

Example
GameTooltip:AddTexture(134532, {width = 32, height = 32})



Details

 * There is a limit of 10 textures per tooltip line (as seen in GameTooltipTemplate.xml). You can get around this limitation by using