Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:DynamicImageSetTextureOrientation

From RoR Wiki

UI Lua API · DynamicImage functions
Version: WAR 1.4.8

Mirrors the texture of a DynamicImage left to right.

DynamicImageSetTextureOrientation(imageName, mirrored)

Arguments

imageName
string – Name of a DynamicImage window.
mirrored
boolean – true to show the texture mirrored horizontally, false to show it normally.

Returns

Nothing.

Details

  • While the flag is set, the client swaps the left and right texture coordinates.
  • If the flag already has the requested value, nothing happens.
  • mirrored must be a real boolean. Passing nil or a number raises an Invalid Parameters error.

Errors

  • Error in function call 'DynamicImageSetTextureOrientation': Window %s does not exist
  • Error in function call 'DynamicImageSetTextureOrientation': Window %s is not a DynamicImage

Example

From eatemplate_unitframes/source/targetunitframe.lua:

DynamicImageSetTextureOrientation (windowName.."StatusHealthBarFrame", UnitStatusInfo[newUnitFrame.m_IsFriendly].MirrorTexture)

See also