Download
(44Kb)
Download
Updated: 10-13-12 08:11 PM
Pictures
File Info
Updated:10-13-12 08:11 PM
Created:06-05-10 04:26 PM
Downloads:28,271
Favorites:132
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
Post A Reply Comment Options
Unread 06-12-10, 10:26 PM  
Alfrunnah
A Kobold Labourer

Forum posts: 1
File comments: 56
Uploads: 0
When I use the code below, I can get the bars to be red when I have no threat on the target, and green when I'm tanking, but I can't seem to code in the yellow medium threat without error. The other problem I have is that every nameplate ends up red this way, as in, I don't see the yellow neutral bars on a neutral unit. I think I might be asking too much of you here, and maybe I should just be happy with what I'm given :P

Code:
local ThreatUpdate = function(self, elapsed)
	self.elapsed = self.elapsed + elapsed
	if self.elapsed >= 0.2 then
		if not self.oldglow:IsShown() then
			self.healthBar:SetStatusBarColor(1, 0.35, 0.2)
		else
			self.healthBar:SetStatusBarColor(0.3, 1, 0.3)

		end

		self.elapsed = 0
	end
Report comment to moderator  
Reply With Quote
Unread 06-13-10, 06:51 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
I would do it more like this...

Code:
	if self.elapsed >= 0.2 then
		if not self.oldglow:IsShown() then
			self.healthBar:SetStatusBarColor(self.r, self.g, self.b)
		else
			self.healthBar:SetStatusBarColor(self.oldglow:GetVertexColor())
		end

		-- self.healthBar:SetStatusBarColor(self.r, self.g, self.b)

		self.elapsed = 0
	end
note: I'm currently really busy and have been the whole week, already. I wouldn't take my own posts to serious right now.
__________________
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..."

Report comment to moderator  
Reply With Quote
Unread 06-14-10, 06:06 AM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 787
Uploads: 5
Originally posted by SofaKing
Maybe the ability to hide neutral mob nameplates?
This is an option in TidyPlates.
Might help here.
... this isn't TidyPlates and yea, that kind of option would be cool to have as well. I know that Doc's Nameplates are able to hide specific nameplates by name
__________________
Livestream | Twitter | YouTube
Report comment to moderator  
Reply With Quote
Unread 06-14-10, 02:23 PM  
Pixelzombie
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
re : dNamePlates

Hey! been trying your latest version of dNamePlates tonight, have to say there absolutely great! look beautiful and the newiconskins are awesome!

Great Work! and Thank you..
Report comment to moderator  
Reply With Quote
Unread 06-15-10, 05:32 AM  
Cyprias
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 71
Uploads: 9
Can I request you use HookScript isntead of SetScript for the nameplate OnShow/OnHide/OnUpdate handlers please.

Also, r6 seems to be using a lot of globals.
http://paste.wowace.com/2104/. (found with FindGlobals)
and the config table in config.lua is global too. If another addon comes along and does config = nil you config table gets destroyed.
You can share variables between your lua files by using your addon's namespace table. At the top of your files add
local folderName, namespace = ...
namespace is a table only accessible to the lua files in your addon's folder. You should put your config in there.
Report comment to moderator  
Reply With Quote
Unread 06-15-10, 04:27 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
HookScript because it's secure or why?
__________________
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..."

Report comment to moderator  
Reply With Quote
Unread 06-16-10, 04:13 AM  
Cyprias
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 71
Uploads: 9
HookScript so other addons can hook the handlers too. Otherwise they need to scan for broken hooks wasting CPU.
Report comment to moderator  
Reply With Quote
Unread 06-16-10, 11:41 AM  
fhaddad922
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 11
Uploads: 2
Class Icon

I noticed you added the feature of showing class icons on the nameplate and I read that you need to disable class colored name plates if you want to disable the icon. For me, I like class colored name plates and I don't see the point of class colors and an icon at the same time. Seems redundant. Is there a way I can turn off the icon and leave class colors enabled?

Not sure if in your config file if I can make the icon size 0x0?

I'd like to do it in a way to maximize performance and not even process the icon in the first place. Probably seems silly but I'm OCD about addon efficiency.
Report comment to moderator  
Reply With Quote
Unread 06-16-10, 02:25 PM  
brotherhobbes
A Rage Talon Dragon Guard
AddOn Author - Click to view AddOns

Forum posts: 313
File comments: 41
Uploads: 2
Dawn, Cyprias writes the PlateBuffs and LibNameplate addons. When using PlateBuffs with dNamePlates, I encountered some errors -> http://forums.wowace.com/showthread....age=2&p=302439. He's been working to build a way around the errors.
Report comment to moderator  
Reply With Quote
Unread 06-16-10, 02:26 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
It still matters for PvP and class icons only work in PvP, anyway. Due to the fact how the icon code is bound to get the class color of the "nameplate" to be able to set the proper icon. It matters for PvP, because it's easier to track enemies, especially in arena. I do agree that it is somewhat "doubled information", but it's increased visibility though, imho.

The CPU cycle/memory impact of a 0x0 icon shouldn't be noticable at all. Especially not when you are using class colored nameplates, anyway.

@brotherhobbes
I know, Cyprias already suggested some changes few post below yours. Thanks, though. I just need to find the time to make those changes.

Seems like r135 of PlateBuffs works without issues.
__________________
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-16-10 at 03:08 PM.
Report comment to moderator  
Reply With Quote
Unread 06-16-10, 09:03 PM  
Cyprias
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 71
Uploads: 9
In ThreatUpdate() you're calling
Code:
    local minHealth, maxHealth = self.healthOriginal:GetMinMaxValues()
    local valueHealth = self.healthOriginal:GetValue()
then right below it
Code:
    self.healthBar:SetMinMaxValues(minHealth, maxHealth)
    self.healthBar:SetValue(valueHealth)
self.healthOriginal and self.healthBar point to the same frame. There's no need to SetMinMaxValues() & SetValue().
Last edited by Cyprias : 06-17-10 at 09:09 AM.
Report comment to moderator  
Reply With Quote
Unread 06-19-10, 08:48 AM  
bvcyp
A Kobold Labourer

Forum posts: 0
File comments: 29
Uploads: 0
Can I disable the totems?
Report comment to moderator  
Reply With Quote
Unread 06-19-10, 10:45 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Originally posted by bvcyp
Can I disable the totems?
Go into blizzards interface options > Names > enemy units ...
__________________
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..."

Report comment to moderator  
Reply With Quote
Unread 06-19-10, 10:42 PM  
x0reaper0x
A Kobold Labourer

Forum posts: 1
File comments: 20
Uploads: 0
Thumbs up amazing

So Ive been looking for good nameplates for quite awhile now... hated TidyPlates, never could get Cael's to look the way I wanted with the textures I wanted...

These... Perfect!

Thank you!
Report comment to moderator  
Reply With Quote
Unread 06-28-10, 11:37 AM  
bvcyp
A Kobold Labourer

Forum posts: 0
File comments: 29
Uploads: 0
Originally posted by Dawn
Go into blizzards interface options > Names > enemy units ...
This was already disabled, the totems are still being shown!
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.