Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Sets a vertex offset for the texture.

TextureBase:SetVertexOffset(vertexIndex, offsetX, offsetY)

Arguments[]

vertexIndex
number - Defined in Constants.lua
UPPER_LEFT_VERTEX = 1;
LOWER_LEFT_VERTEX = 2;
UPPER_RIGHT_VERTEX = 3;
LOWER_RIGHT_VERTEX = 4;
offsetX
number : uiUnit
offsetY
number : uiUnit

Example[]

Sets the upperleft vertex offset.

local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")

tex:SetVertexOffset(UPPER_LEFT_VERTEX, 20, 0)

Patch changes[]

Legion Patch 7.2.0 (2017-03-28): Added.

Advertisement