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–trueto show the texture mirrored horizontally,falseto 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.
mirroredmust be a real boolean. Passingnilor a number raises an Invalid Parameters error.
Errors
Error in function call 'DynamicImageSetTextureOrientation': Window %s does not existError 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)
