View Single Post
12-04-12, 08:44 AM   #10
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Well you can do this:
  1. create a new statusbar on the nameplate object
  2. set the statusbartexture of the old statusbar to "" to keep it for value reference but have it invisible
  3. OnShow check the nameplate name color (if it is gray you have a tagged mob)
  4. if you find a tagged mob instead of using GetStatusBarColor of the old healthbar you apply the name color to your new healthbar

That's basically what I do in rDiabloPlates2 to fix the healthbar alpha bug. I have not yet implemented the tagging color change and I'm still unsure. If I turn around the camera 360° the nameplates return to default color (neutral for training dummies).
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 12-04-12 at 08:58 AM.
  Reply With Quote