API UpdateWorldMapArrow

From Wowpedia
Jump to: navigation, search

Rotates a texture based on the direction the player is currently facing.

UpdateWorldMapArrow(arrowFrame)

Arguments

arrowFrame 
Widget - any Texture widget, although Interface\Minimap\MinimapArrow is the intended texture.

Details

  • This function applies a Texture:SetTexCoord transformation rotating the texture.
  • The transformation ensures that the visible portion of the original texture remains of a consistent size. This size is slightly smaller than the original (unrotated) texture.

Patch history

Mists of Pandaria Patch 5.2.0 (2013-03-05): Added.