Thread Tools Display Modes
02-19-15, 01:50 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Simply Nameplate addon

Hi all,
a friend of mine ask if there is an addon that do basically what did this:
http://www.wowinterface.com/download...ameplates.html

"This is not a complete Nameplates-Mod. The only thing it does, is colorizing the default Blizzard-Nameplates based on threat. This is the only feature I miss on the standard nameplates, so I made this little addon. In DPS/Healer-Mode, nameplates of mobs you have aggro from are red, if you gain aggro, they are yellow and if they are tanked, they are green. For tanks the behavior is of course reversed.

There is one option for this Addon: Only activate it for tanks."


It is and old not update anymore addon and unfortunately I was not able to fix it for the current game version.
So I ask if someone knows if there is something similar or if it is possible to fix the error:


Lua Code:
  1. NamePlate.Healthbar = NamePlate:GetChildren()
  2.    
  3.     --check if it is a player, no need to do threat on them
  4.     local r, g, b = NamePlate.Healthbar:GetStatusBarColor()
  5.     if (b > 0 and g > 0) then return end



Code:
7x nioNameplates\Nameplates.lua:49: attempt to call method 'GetStatusBarColor' (a nil value)
nioNameplates\Nameplates.lua:49: in function <nioNameplates\Nameplates.lua:45>
nioNameplates\Nameplates.lua:81: in function <nioNameplates\Nameplates.lua:69>
I think that the code:

Lua Code:
  1. NamePlate.Healthbar = NamePlate:GetChildren()

should returned now 2 values and the rest of the code applied to the second one.

Boh ... :-)

Thanks for attention and for every tips you can give me.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
02-19-15, 05:25 PM   #2
sticklord
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 57
I think the healthbar is the first child to the first child of the nameplate, so hm, maybe this works?

Lua Code:
  1. NamePlate.Healthbar = NamePlate:GetChildren():GetChildren()
  Reply With Quote
02-20-15, 12:22 AM   #3
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Thanks,
it really fixes this iussue :-)

Following your input I have also fixed the others iussue:

This:

Lua Code:
  1. NamePlate.BlizzThreat = NamePlate:GetRegions()

to this:

Lua Code:
  1. NamePlate.BlizzThreat = NamePlate:GetChildren():GetRegions()


And now it seems to works.

Thanks again.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Simply Nameplate addon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off