VertexColor
Hello!
I'm having problems to set a vertex color to some Blizzard frames. For the majority of frames this code work, but some doesn't, Idk if this is a blizzard problem or I'm doing something wrong to those frames, maybe I don't have permission to change them? Example of a code that doesn't change the vertex color: Lua Code:
Someone can help me if this? Thanks in advance. |
There's an r in Journal.
|
Quote:
Lua Code:
|
Works for me:
The frame also has PlayerTalentFrameBtnCornerLeft and PlayerTalentFrameBtnCornerRight plus others inherited from other templates. |
Quote:
|
Try to change to (1, 0, 0),
.1, .1, .1 makes them pretty much black |
Quote:
|
Code:
/run for i, v in pairs({ PlayerTalentFrameTopBorder, PlayerTalentFrameRightBorder,PlayerTalentFrameLeftBorder,PlayerTalentFrameBottomBorder,PlayerTalentFrameBtnCornerLeft,PlayerTalentFrameBtnCornerRight }) do v:SetVertexColor(1, 0, 0) end |
Weird, by using a run command it work, but when I put this in a Lua code doesn't. Any idea why this is happening?
I will try to set a timer to this one and see if it change. (Edit: Didn't work) |
Quote:
|
Quote:
Lua Code:
|
The TalentUI is Load On Demand (the frames and code don't get loaded until you press N or click the talent menu)
Lua Code:
|
Thank you, now it's working the way I wanted.
One last question, how can I find those events for others frames? Like the collection one. Again thank you for the help. |
The event will remain the same, the name will change.
https://wow.gamepedia.com/Viewing_Bl...interface_code Once you've exported the code section there will be an addons folder that contains all the Bizzard_xxx addons. You can check their .toc files to see if they are marked ## LoadOnDemand: 1 |
Quote:
|
All times are GMT -6. The time now is 05:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI