Using SetTexture to change the texture of a frame created by another addon?
GwGarrisonButton is a frame created by GW2 UI
The goal with that code is to change gwbutton's texture to another one. If I get it to work I'll start employing the same to other frames Lua Code:
However this returns me an error. Apparently I can't use SetTexture that way. I tried googling around but only found people talking about changing Blizzard's default textures. How do I change the texture of a frame created by another addon? Maybe a XML file could help in this case? |
This is the error I'm getting:
Quote:
|
Buttons don't have a SetTexture method. You can only call SetTexture on an actual texture. However, buttons do have SetNormalTexture and SetPushedTexture methods for setting their visuals.
|
Using SetNormalTexture instead of SetTexture worked, thanks!
|
All times are GMT -6. The time now is 09:10 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI