PTR 5.1 nameplate changes
Has anyone tried the PTR yet? The nameplates got changed again.
Plus tiny mobs get "tiny" nameplates now which looks awful imo. Code:
NamePlate Lua Code:
|
Hey Zork, thank you so much for this post. I'm a very very amateur coder but thanks to this I was able to figure out and fix my nameplate addon :)
Thanks to all you unsung heroes who post & document API changes!! |
The 'small' frames can be fixed by called SetScale(1) on the two child frames of the NamePlate on show.
|
Btw...the default nameplates have a bug.
For some reason it is possible that the healthbar object will be set to alpha = 0.5 even while the parent element itself is at alpha = 1. I tried alot of stuff to fix the alpha value. Nothing worked. In the end I decided to create a new healthbar and just hide the default one (but keep it for value reference). That worked out great. On that note. I had no problems with the frame scaling. That is because I use my own width and create new nameplate art. |
Turns out scaling doesn't work at all because of taint. Lovely. Now I'll have to rewrite the whole thing so that my custom borders scale themselves.
|
I couldn't find anything, but that doesn't mean a whole lot. Could you not simply use UNIT_SPELLCAST_SUCCESS instead, and skip CLEU?
|
All times are GMT -6. The time now is 06:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI