WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Any way to mirror/flip UI elements? (https://www.wowinterface.com/forums/showthread.php?t=59656)

Toyoka 08-29-23 12:42 AM

Any way to mirror/flip UI elements?
 
Hi there, I'm new to the forums and to WoW UI addon creation. However, I did a bit of sleuthing in regards to the particular subject of manipulating UI elements but I could not find a way to be able to mirror and/or flip elements in the UI so that things like images, text, and other parts of UI panels are backwards/mirrored. Does anyone know if this is actually possible? I know that you can do rotations and translations to images in a panel, but I'm wondering if there is some method for flipping entire panels or elements in a panel (or the world frame itself)?

Fizzlemizz 08-29-23 10:49 AM

For textures you can use SetTexCoord to change the orientation of the image inside the texture region.

For a full size image, normal orientation is (0, 1, 0, 1). To flip horizontally change to (1, 0, 0, 1) and to flip vertically use (0, 1, 1, 0).

As for just flipping a frame, region or fontstring etc., I don't believe you can If so it would be lists here.


All times are GMT -6. The time now is 06:42 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI