Flipping a default frame
How do I flip the WarlockPowerFrame? Specifically the Demonology power frame. I’ve tried /run WarlockPowerFrame:SetRotation() and /run WarlockPowerFrame:SetTexCoords() with appropriate values but neither work; I always get an error stating SetRotation() or SetTexCoords() are nil values.
I’m trying to flip the power frame upside-down. With some free time I managed to flip it, but the shards remained unflipped. https://i.imgur.com/8BhMXTE.jpg This is what I used: Code:
local Addon = CreateFrame("Frame") |
One guess might be that the shards are populated after the player entering world event. You might want to RegisterUnitEvent unit_power, player, and flip the shards there. Since you only care about gaining/losing shards, I would include an if check at the beginning to see if the power type that is changing is shards.
|
The shards are added to the Shards table. Given the complexity of the shard template I'm not sure a crude "flip"will work for everything but...
Lua Code:
|
Hey Fizzlemizz, that worked perfectly. Thank you for the solution! Thank you as well Terenna.
|
All times are GMT -6. The time now is 02:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI