GetObjectIconTextureCoords

From Warcraft Wiki
Jump to navigation Jump to search

Returns texture coordinates of an object icon.

left, right, top, bottom = GetObjectIconTextureCoords(objectIcon)

Arguments

objectIcon
number - index of the object icon to retrieve texture coordinates for, ascending from -2.

Returns

left
number - left edge of the specified icon, 0 for the texture's left edge and 1 for the texture's right edge.
right
number - right edge of the specified icon, 0 for the texture's left edge and 1 for the texture's right edge.
top
number - top edge of the specified icon, 0 for the texture's top edge and 1 for the texture's bottom edge.
bottom
number - bottom edge of the specified icon, 0 for the texture's top edge and 1 for the texture's bottom edge.

Details

OBJECTICONS.blp

Patch changes

Mists of Pandaria Patch 5.4.0 (2013-09-10): Added.