Nameplate's castbar won't change its texture
Hi all,
I've been a user of kui nameplate, but have recently decided to work on my private nameplate addon which I honestly don't know why LOL.......... Anyways! I have started to working on media updates like font, statusbar texture, etc as my first job. Everything is working fine except from the statusbar texture of castbar. Please have a look at the code. Lua Code:
It looks like Blizzard's code is keep updating the castbar's texture which I dug into, but failed :( Could anyone please correct me if I am getting it wrong? As always, thank you in advance! |
I've also tried something like this:
Lua Code:
So, on nameplate creation, the SetStatusBarTexture is backed up with a name _SetStatusBarTexture, call SetStatusBarTexture then SetStatusBarTexture is now set to empty function. This worked fine when the player is not in the combat, but once the player is in the combat, it causes the following error. Code:
1x [ADDON_ACTION_BLOCKED] AddOn 'LyakNameplate' tried to call the protected function 'SetTargetClampingInsets()' |
In this case you may need to change the texture every time it is set by the default UI. This can be achieved using the funciton hooksecurefunc. Otherwise you will keep tainting the UI.
This work around is provided you can not find where it keeps resetting the texture. If you happen to know where/how it is being reset there may be some other options. Lua Code:
|
Hi jeruku,
Yeah, I am currently using hooksecurefunc as a temporary solution although I didn't update this thread. (Sorry was damn tired and didn't have much time to update here :o) I am keep trying to find the best solution for this ;) |
All times are GMT -6. The time now is 06:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI