Trying to skin Blizzard default buff/debuff frames
1 Attachment(s)
Hi all,
I am currently trying to re-skin Blizzard default buff/debuff frames, but it shows kind of weird result. Sometimes the newly created (template) frame covers the buff/debuff icons while sometimes it doesn't. I'm guessing that it's happening because of my :SetTemplate function, but ain't sure where the actual problems are occurring since it happens so randomly :confused: Here I have attached .zip file, so you can have a look. Thank you! EDIT: temporarily fixed it by setting icon's draw layer to "OVERLAY". |
It's better to use hooksecurefunc, there are two parts :
Hook the BuffButton_OnLoad, so you'll apply your skin to every aura button, you also need to hook each button's SetTexture method, so when blz set texture to those buttons, you can do the cut job : Code:
hooksecurefunc("BuffButton_OnLoad", function(self) |
Hi kurapica.iga,
Thank you for your advice :) What about the borders for debuffs? As you know some debuffs have a different border colors based on their types (like red or blue). Would this be considered on BuffButton_OnLoad or SetTexture functions? |
Quote:
I would do this :) Lua Code:
|
Quote:
|
Quote:
Lua Code:
Don't try to replace the methods directly, it'll cause taint error. |
Quote:
Thanks for the workaround :) |
All times are GMT -6. The time now is 08:53 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI