Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(44 Kb)
Download
Updated: 10-13-12 08:11 PM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:10-13-12 08:11 PM
Created:06-05-10 04:26 PM
Downloads:22,733
Favorites:143
MD5:
dNamePlates  Popular! (More than 5000 hits)
Version: r17
by: Dawn [More]
Custom minimalistic and lightweight nameplates.

Features
* works with PlateBuffs
* spell icon
* name text is colored by threat
* Totems are shown as icons
* current health value
- current health value is hidden @100% health
- between 35% and 25%, value is yellow colored
- between 25% and 20%, value is orange colored
- below 20%, value is red colored
* added hankthetank's raidicon textures
* show hostile nameplates in combat and/or optionally hide them out of combat
- by default nameplates show in combat and do not hide out of combat
...


NPCs are not class coloured, never.
Hostile players are only class coloured out of a sanctuary (which excludes Dalaran for example). Generally said, they are class coloured in PvP, which also means they have to be flagged for PvP on a PvE server.



FAQ

1. Where'z teh options?

Take a look into your World of Warcraft folder: Interface\Addons\dNamePlates\dNameplates.lua. You can open this file with Wordpad, Notepad or any other text editor. I recommend Notepad++ - it's free, google it.

note: If you change anything, you have to reload your interface, either via /rl, /console reloadui or log out ingame.



Credits
p3lim - for Overhead
hankthetank - raid icon texture
Cyprias - for helping me to improve the code



Config
Code:

local TEXTURE = mediaFolder.."dA"
local FONT = mediaFolder.."Pixelway_Baseline.ttf"
local FONTSIZE = 8
local FONTFLAG = "OUTLINE MONOCHROME"			-- "THINOUTLINE", "OUTLINE MONOCHROME", "OUTLINE" or nil (no outline)

local hpHeight = 5
local hpWidth = 100
local cbIconSize = 20
local cbHeight = 5
local cbWidth = 100

local showIC = true 
local hideOOC = false

local blankTex = "Interface\\Buttons\\WHITE8x8"	
r17
* quick updated for Mists of Pandaria

note: untested


r16
* updated for 4.1
* the selected nameplate won't be resized by default, anymore (aka adWidth and adHeight are set to 0)
- the option is still there, however ...

note:
- untested, just a quick fix for 4.1


r15
* selected nameplates will now be larger than others
* added options to set the increased size for selected plates
- adWidth = 14 -- additional width for selected nameplate (hpWidth + adWidth)
- adHeight = 4 -- additional height for selected nameplate (hpHeight + adHeight)
* fixed totem icon display, which broke in r14, because of level display ... D'OH!


r14
* added Totem of Tranquil Mind support
* added Spirit Link Totem support
* added 1px border around totem icons
* added highlight for selected nameplate
* tweaked level and name position code
* added an option to set a font shadow offset (default: FontShadowOffset = 0)
- 1 = (1,-1), 1.5 = (1.5, -1.5), ...


r13
* forgot to include raidicon texture ...


r12
* Totems are now shown as icons
* some CVars are now set by default
- SetCVar("ShowClassColorInNameplate", 1)
- SetCVar("nameplateShowEnemyTotems", 1)
* added level display ...
* some minor visual tweaks


r11
* removed some obsolete code
* small visual tweaks

r10
* toc update for patch 4.x
* code rewritten, extremely simplified, no longer based on caelNameplates
* removed class icon code
* removed separate config - some options (size, etc) can still be found in dNameplates.lua
* level is now hidden
* names are no longer abbreviated

NOTE:
Blizzards Nameplates are still bugged and seem to show/hide randomly. This addon modifies blizzards nameplates instead of replacing them. Therefore the same oddly behaviour will happen. This is Blizzards fault. Once Blizzard will fix their code, the issue will be gone. ;)


r9
* nicer raid icon position...

r8
* replaced the "glow border" with a solid border, to match my oUF layout
* added an option to change the border color
* long names will be abbreviated, to match my oUF layout (for example: Sunreaver Mage Guardian becomes S. M. Guardian)
* added an option to change the maximum number of characters before a name gets abbreviated
* revised class icon code
* added new border to class icon
* some tweaks
* removed the class icon textures from the package and use blizzards default textures instead - reduced package size FTW ...
* removed some more unused textures and fonts from the package - reduced package size FTW ... #2

r7
* added an option to change the position of the nameplate (X and Y Offset)
* cleaned up some code and improved PlateBuffs compatibility

r6
* added class icon (only visible for hostile players)
* added 3 icon sets of class textures (oldClassIcons, newClassIcons)
- you can choose a different one, via config
- you might have to adjust the size of the icon, depending on the texture you choose
* added hankthetanks's raidicon textures
* added an icon texture (dBBorderJ) for castbars spell icon
* added a new mouseover highlight texture and made the highlight slightly more visible
* added a more flat bartexture (dM2) and set it as default
* level text font shadow can be turned on/off via "showFontShadow", too

r5
* possible fix for r4 nil error, everyone but myself seems to enounter - D'OH! #2

r4
* added current health value as a possible shown health value
* added an option to show/hide current health value
* added an option to show/hide percent health value
- if both options are true it will show both, current AND percent health value

r3
* possible fix for a nil error everyone but myself seems to enounter - D'OH!
- I need some feedback on this.Since I don't get the error, I can't tell if it's gone now or not.

r2
* added an option to turn auto show nameplates in combat on/off
* added auto hide nameplates out of combat (disabled by default)
* added an option to turn auto hide nameplates out of combat on/off
* added an option to show/hide a shadow behind text (disabled by default)
* removed some fonts

r1
* initial release
Archived Files (12)
File Name
Version
Size
Author
Date
r16
42kB
Dawn
04-28-11 05:02 PM
r15
42kB
Dawn
03-26-11 07:03 PM
r14
42kB
Dawn
03-18-11 10:57 AM
r13
39kB
Dawn
03-12-11 07:57 PM
r12
26kB
Dawn
03-12-11 05:43 PM
r11
30kB
Dawn
10-25-10 11:17 AM
r10
30kB
Dawn
10-18-10 02:48 PM
r9
44kB
Dawn
07-05-10 07:52 PM
r7
237kB
Dawn
06-19-10 10:44 AM
r6
237kB
Dawn
06-14-10 05:59 AM
r5
118kB
Dawn
06-07-10 07:59 AM
r3
118kB
Dawn
06-06-10 01:27 AM


Post A Reply Comment Options
Unread 06-05-10, 09:37 PM  
kxuhx
A Kobold Labourer

Forum posts: 0
File comments: 83
Uploads: 0
Originally posted by Pixelzombie
if you sort this minor prob out i'll be using this addon
Same, this looks to be a great low mem mod
kxuhx is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 12:31 AM  
Narghul
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
Hey Dawn

I wanted to help you sort out this problem, so I had a go.

Occurs when: Standing in Thunderbluff, just turned friendly nameplates on and pop. Standing near enemy units and turning hostile nameplates on.

Error in dnameplate.lua line 50 - attempt to call global 'round' (a nil value)

For everyone that wants a quickfix change line 50 to
Code:
	local d =(valueHealth/maxHealth)*100
This returns the percentage in full numbers as in 66%, 33%, 20%
Last edited by Narghul : 06-06-10 at 06:38 AM.
Narghul is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 01:48 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
Hopefully, r3 will fix the error.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Dawn is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 02:01 AM  
Narghul
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
Fixes the error for me at least.

Also if you are a bit nerdy and want to add more decimals to the percentage you would want to change line 55 from

Code:
			self.healthBar.percent:SetText(string.format("%d%%", math.ceil((valueHealth/maxHealth)*100)))
to

Code:
			self.healthBar.percent:SetText(string.format("%0.1f%%", (valueHealth/maxHealth)*100))
The number after the "." is the number of decimals you would want. 0.1 = 1 decimal and 0.2 = 2 decimals
Last edited by Narghul : 06-06-10 at 02:05 AM.
Narghul is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 06:26 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
I just failed at copy and pasting the percent code from my oUF layout. Never meant to keep the decimals.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Dawn is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 07:00 AM  
nin
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 210
File comments: 76
Uploads: 1
Originally posted by Dawn
I'll rewrite the health value code, that might fix the issue. I'm still curious why I'm not getting said error, though.
Did you try only the nameplates? i remember a while back that i fiddled with some addons and they worked fine, but realized later that it only worked when having my ouf layout active.. was pretty weird. :P

Your work is ace as usual!
nin is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:04 AM  
kxuhx
A Kobold Labourer

Forum posts: 0
File comments: 83
Uploads: 0
No error - plan on using this.

Nice work!
kxuhx is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:27 AM  
Latharus
A Murloc Raider
 
Latharus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 22
Uploads: 3
What all did you change?

Did you work will cael on this? It still looks almost the same as his nameplates.
Latharus is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:47 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
Originally posted by nin
Did you try only the nameplates? i remember a while back that i fiddled with some addons and they worked fine, but realized later that it only worked when having my ouf layout active.. was pretty weird. :P

Your work is ace as usual!
OMG, That might be the reason. Never tried the nameplates without oUF being enabled!


@Latharus
Fail @not reading the info page is Fail.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Last edited by Dawn : 06-06-10 at 09:48 AM.
Dawn is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 10:50 AM  
Latharus
A Murloc Raider
 
Latharus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 22
Uploads: 3
It was a simple question. There is no need to call people fail. That is childish and just not constructive.

Anyway, cael said you talked with him, so there is no problem anyway.
Latharus is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 12:31 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
Originally posted by Latharus
It was a simple question. There is no need to call people fail. That is childish and just not constructive.

Anyway, cael said you talked with him, so there is no problem anyway.
Of course I did ... asking for permission if you are using even parts of code is essential. And I can call people fail if they fail. The first part of your post was answered on the front page. The second part is not your freaking business, to say the least, anyway. Last time I checked, being a snitch is childish.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Dawn is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 05:03 PM  
roballey
A Defias Bandit
 
roballey's Avatar

Forum posts: 2
File comments: 25
Uploads: 0
Great work

Nice work on these. I was using caelnameplates, I have switched to dminimap and dnameplates now!
roballey is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:19 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 564
Uploads: 32
I look foward to trying these out dawn
Ferous is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:38 PM  
kxuhx
A Kobold Labourer

Forum posts: 0
File comments: 83
Uploads: 0
r4 the same error is back as previous versions.

had to revert back to r3
kxuhx is offline Report comment to moderator  
Reply With Quote
Unread 06-06-10, 09:55 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 564
Uploads: 32
Yeah I'm going to wait to try this when all the comments don't say it has errors no more, but i'm definitely going to give this a try when it's stable!
Ferous is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.