Download
(156Kb)
Download
Updated: 11-27-12 05:59 PM
Pictures
File Info
Updated:11-27-12 05:59 PM
Created:11-19-10 01:04 AM
Downloads:42,494
Favorites:184
MD5:

shNameplates  Popular! (More than 5000 hits)

Version: r9.2
by: shUI [More]

shNameplates
A light-weight and beautiful nameplate addon that works right out of the box!

Why use this addon instead of some of the other famous nameplates? Simple: elegance, ease of use, and efficiency. Other addons similar to shNameplates are extremely "busy" or they are too plain. In some cases, they are highly inefficient when it comes to coding.
  • Unit Name
  • Raid Icon
  • Unit Level (using blizzard code to add difficulty coloring)
  • PvE coloring (blizzard based) and PvP coloring (class colored based)
  • Aggro and threat color (with glow overlay)
  • Castbar, Cast Time, and Spell Icon
  • Health Text Display (using color gradient for percentage)
  • Auto toggle on and off when in or out of combat (user set via config.lua)
  • Lots of config attributes that handle nameplate behavior, colors, fonts, and positioning (user set via config.lua)
  • Configuration that allows repositioning of the spell and raid icons (user set via config.lua)
  • Configuration option for TANKMODE (green coloring on aggro) and namecoloring (colors pvp enemy names with their class color) (user set via config.lua - PLEASE see changelog for more details)
  • Target cast spell names (for both channeled and cast)
  • Mouse over highlighting
  • Cool new fade in effects when nameplates appear
  • Target Unit POWER bar under health frame. SET TO ONLY IN PVP (b/c who cares about mob power at this point in the game)
  • COMBO points for feral and rogues...AND addition of showing Chi, burning embers, soul shards, holy power, burning embers, etc. (SELF buffs ony)
  • Now works with Icicle and/or Plate Buffs

NOTE: I want to thank the following authors: Caelian, Tekkub, Luzz, and Rothar. Especially Caelian, b/c I have based this addon to his famous addon caelNameplates

Bug Reports and/or Requests:
All bug reports, requests (with this addon or another), errors, suggestions, and problems will be handled via the forum-comments page.

If you liked this mod, please check out my other addons:
shClock: Data Broker simple clock
shPerformance: Data Broker memory/latency/fps usage display utility

Click here to lend your support!

v9.2
- Fixed errors due to new Nameplate object creation
- TOC bump
-----------
v9.1
- Fixed bug that was causing errors when powerbar was disabled
- Fixed code in threat update to also fix bar coloring in and out of combat correctly
------------
v9.0
- Rewrite of most functions and rearranging of function paths
- Addition of "combo" like details on nameplate that show: CHI, Shadow Orbs, Burning Embers, Holy Power, Soul Shards, etc (SELF buffs only)
- Optimized CPU usage
- Changed font and positioning
- FIXED: bug that was showing red highlighting when not having aggro and bug that wasn't properly coloring healthbar
- Big improvements
- Platebuffs and icicles ready...really this time
------------
8.1
- Much needed optimization including: iterating over nameplates and throttled threat updates IN combat ONLY
- Cleaned up some other code
- Let me know of any other random bugs
--------------
8.0
- ToC bump -> 5.0
- fixed transparency of health text, symbols, etc.
- changed function to locate and skin nameplates themselves to make sure to get every new frame correctly
---------------
7.3b
- ToC bump -> 4.3
----------------
7.3a
- OnUpdate function now checks for additional nameplates faster to prevent any issues with them appearing
- ToC bump
----------------
7.3
- ADDED: "OnSizeChanged" function as an additional backup to double check and/or fix castbar bloating
----------------
7.2
- Revamped FixCastbar function to fix castbar bloating - really this time (I have extensively tested this, so PLEASE let me know if you find it happening)
- Minor code fixes to be more readable/understandable
----------------
7.1
- Fixed powerbar nil error when disabling powerbars
----------------
7.0
- Complete revamp of lots of code
- Lots of clean up and fixes of pesky little bugs - I THINK I got them all :) Please bug report
- REMOVED: LibNameplate library and wrote my own code
- FIXED: castbar bloating and interruptability color coding
- NOTE: please let me know of ANY bugs
- REDUCED CPU and MEMORY usage significantly
-----------------
6.3
- Code clean up for initial nameplate settings
- Fix small bug with castbar still bloating...I hope
- fixed castbar width again to make sure it doesn't look like it's bugging hehe
- ADDED option to disable power bar
------------------
6.2
- Updated FixCastbar function and now bloating of castbar shouldn't occur
- Fixed up castbar and icon location and color
- Optimized code for updates
-------------------
6.1
- ADDED: Power bars to ONLY target frames! (shows all types of powers except rage/runic bower <= 0)
- Cool elite/boss icons
- Now works with platebuffs!
-------------------
6.0
- Complete revamp of lots of code and optimizations
- Got rid of redundant baggage within code
- Changed appearance of overall nameplate
- ADDED: combo points to nameplate
- ADDED: LibNameplate for additional features
- ADDED: Icons for elite mobs and boss mobs
---------------------
5.5
- Fixed the castbar from being extremely huge...should work now :)
----------------------
5.4a
- Updated TOC to patch 4.2
----------------------
5.4
- Small bug fix in config.lua file -> I know I'm stupid, but it should be good to go
----------------------
5.3
- Updated TOC to patch 4.1
- Removed CVAR that was causing problems
- Redid some code that would initialize the skinning of the plates (THANKS Csalago!)
- Minor performance tweaks
----------------------
r5.2
- REMOVED the automatic setting to show pvpcoloring in nameplates (you can set it in blizz options)
- Optimized name coloring function
- FIXED lots of global calls and made them local now (i'm an idiot I know)
- OVERALL increase in efficiency
- Fixed config file a bit and made it less bulky (sorry guys that update and have to redo their config)
- Minor bug fixes and improvements
-----------------------
r5.1
- Small bug fixes when hpallthetime set to TRUE
- Small bug fix when updating the health text of mobs
------------------------
r5.0
- ADDED a lot of new configuration options including all coloring options for the different types of units and npc.
- ADDED custom colors for TANKMODE enabled nameplates
- ADDED fade in effect when nameplates appear
- ADDED new mouse over displays of max health and name highlighting
- ADDED spell names when cast or channeled
- ADDED custom status bar texture when cast spells are NOT interruptable
- LOTS of look and feel elements redone and code optimized
- NOTE: due to all the additions, the mem usage has gone up to around 32kb (only a 10kb increase from before) and only about a 12% increase of cpu usage!
------------------------
r4.1
- Function call optimization
- ADDED: tankmode option under behavior options - this will add a green glow and green bar when you HAVE AGGRO
- ADDED: namecoloring option under behavior options - this will color all PVP names with their class colors
- Minor cosmetic fixes
-------------------------
r4.0
- Big update of overall look and feel
- Many code optimizations (still runs around 22kb)
- Increased size of cast bar and spell icon (including changing locations)
- Changed the different unit type colors: hostile, neutral, friendly unit, and friendly player
- Changed some fonts and locations of health text (NOTE: will not show text if at 100% health)
- NOTE: these are all changes that I like, you can change whatever you want via the config.lua
---------------------------
r3.1
- Small update that increased the threshold before names were being formatted of being to long (increased from 20 to 40 characters)
- Optimized Threat Update Function
---------------------------
r3
- ADDED new options to control behaviors (overlapping, threat bloat, etc)
- ADDED option to control raid icon positioning and size
- ADDED option to control spell icon positioning and size
- The thick black border around nameplates started to bother me, so I toned it down a bit
- I like the name text to be centered and the raid icon to be immediately above it
- I didn't like the custom raid icons, so I used the default blizz one (check config.lua) if you want the custom ones back
----------------------------
r2
-- ADDED lots of configuration options to the config.lua file
-- ADDED option for auto toggling the nameplates when OOC and IC (see config.lua)
-- Code optimization and tweaks (shouldn't go over 23kb of memory)
-- Cleaned up the default settings and made the neutral mob color a bit darker so the health text can be seen easier if its set to be shown
Post A Reply Comment Options
Unread 04-09-11, 02:27 AM  
alcaras
A Murloc Raider
 
alcaras's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 61
Uploads: 4
I'd love for tank mode to automatically enable when I'm a tank spec, and automatically disable when I'm not in a tank spec.

Here's some scratch code to detect what spec the player is in:
Code:
local type = type
shNameplates.eventFrame = CreateFrame("Frame", nil, UIParent)
shNameplates.eventFrame:SetScript("OnEvent", function(self, event, ...)
--	if type(self[event] == "function") then
--		return self[event](self, event, ...)
--	     end
	if event == "ACTIVE_TALENT_GROUP_CHANGED" then
	   monitorTalents(self, event, ...)
	end
	if event == "PLAYER_TALENT_UPDATE" then
	   monitorTalents(self, event, ...)
	end
end)
shNameplates.eventFrame:RegisterEvent("PLAYER_TALENT_UPDATE")
shNameplates.eventFrame:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")

function monitorTalents(self, event)


   -- detect what the talent spec is
   -- and adjust the the 
   curSpec = GetPrimaryTalentTree(false, false)
   _, curClass = UnitClass("player")


   if curClass == "PALADIN" then
      if curSpec == 2 then
	 am_tanking = true
      else
	 am_tanking = false
      end
   end
   
   if curClass == "WARRIOR" then
      if curSpec == 3 then
	 am_tanking = true
      else
	 am_tanking = false
      end
   end

   if curClass == "DRUID" then
      if curSpec == 2 then
	 am_tanking = true -- todo: feral cat v. bear detection (if we're in bear form)
      else
	 am_tanking = false
      end
   end

   if curClass == "DEATHKNIGHT" then
      if curSpec == 1 then
	 am_tanking = true
      else
	 am_tanking = false
      end
   end

   if am_tanking == true then
      ChatFrame1:AddMessage("shNameplates: Talent change detected " .. curSpec .. " " .. curClass .. " (TANKING)")
   else
      ChatFrame1:AddMessage("shNameplates: Talent change detected " .. curSpec .. " " .. curClass .. " (dps/heal)")
   end
   
end
Report comment to moderator  
Reply With Quote
Unread 03-25-11, 07:15 PM  
Leokhan
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
There's one thing bothering me as a dps-class: It's not quit visible if you targeted a mob or not, would it be possible to implement a border or to change the alpha to show if the mob is in your target?
In some AoE-situation is important to easily switch mobs, but i find myself often stuck by the same one not noticing that i'v missclicked the nameplates or failed to tab
Last edited by Leokhan : 03-25-11 at 07:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03-24-11, 08:37 AM  
Skydragon
A Kobold Labourer
 
Skydragon's Avatar

Forum posts: 0
File comments: 22
Uploads: 0
Originally posted by Kapz
Hey, i would like to know is there any option to disable the name plates fade in? I would like to see them immediately instead of waiting for the fade in.

Also, dont know if i missed it but is there an option now to toggle level text if the mob is same level as you? Something that i recall caelnameplates doing.

Again thank you for this awesome mod
in the shnameplates.lua file near the bottom you will find

frame.fade:SetDuration(1)
frame.fade:SetChange(1)

Change the 1's to 0's , save and done.
Report comment to moderator  
Reply With Quote
Unread 03-20-11, 01:02 PM  
Mercenari
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
That is a good fix for clutter to hide the totem names, but I need to see the totem type easily so I can kill them quickly. Any ideas for how I could mod the addon to show the totem icon?
Report comment to moderator  
Reply With Quote
Unread 03-18-11, 05:49 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Excellent, that will definitely work. I'll add that in next update. Thanks bud.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 03-17-11, 11:22 PM  
blubz
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I like the mod, thanks. It's really not too bad to selectively hide plates. I made it so that things with low HP (totems, etc.) don't show up. It could also be easily extended to only show nameplates for elites, or whatever other condition

At the very beginning of UpdatePlate() in shNameplates.lua, I put

Code:
local min, max = self.healthBar:GetMinMaxValues()
if (cfg.totemhealthcutoff > 0 and max < cfg.totemhealthcutoff) then
	self:Hide()
	return
end
where cfg.totemhealthcutoff is another variable I added to config.lua.

I wanted to implement range check, pretty badly, but that seems very far out of reach unfortunately.
Last edited by blubz : 03-17-11 at 11:22 PM.
Report comment to moderator  
Reply With Quote
Unread 03-10-11, 04:48 PM  
Mercenari
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hello there, nice plates you've built here thanks for the share. Along with the comment about numbers cluttering the screen, in arena the totem bars are same way during pillar/corner fights etc. Is there a way I can replace totem bars with a totem icon instead? No health etc...?

Also, can I make the bars appear from a further distance?

Thanks =]

.M.
Last edited by Mercenari : 03-11-11 at 01:39 AM.
Report comment to moderator  
Reply With Quote
Unread 03-09-11, 08:29 AM  
Kapz
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Hey, i would like to know is there any option to disable the name plates fade in? I would like to see them immediately instead of waiting for the fade in.

Also, dont know if i missed it but is there an option now to toggle level text if the mob is same level as you? Something that i recall caelnameplates doing.

Again thank you for this awesome mod
Report comment to moderator  
Reply With Quote
Unread 03-06-11, 10:26 AM  
zin99
A Deviate Faerie Dragon

Forum posts: 12
File comments: 41
Uploads: 0
great, really nice nameplates.

i wonder if someone could share (or even how i creat sth myself) a statusbar .tga file with ab black 1px border already implemented, so that one can easily see the borders if 2 or more plates are overlapping.

the standard file has some kind of shadowing on the outer edge, which does this job, but simply doesnt look good imo. (glow .tga is also not that great)

anyway as i said, its close to perfect. thank you.
Report comment to moderator  
Reply With Quote
Unread 03-06-11, 09:34 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by dragaan
Hey, I asked a question on the last page but I think you might have missed it since you were dealing with that weird texture bug (which is understandable). I am starting to really like these nameplates tho, and that's sayin a lot cause I'm always swapping between mods cause I can never find one that's perfect in all situations. For me, these are wonderful except when I'm aoe tanking. There's one little change (besides the blacklist) that I'd absolutely love and I'm wondering if it's at all possible. I'm just going to copy my initial post about it here:

I was just wondering if there is a simple fix to get the hp info to only show on my current target, instead of all of the plates. It just feels a bit cluttered when there's a ton of plates in front of me and all the numbers are jumbled together, lol. If it's not a simple fix, I guess I'll deal with it.

That would be the best/easiest way for me to quickly see which mob I am targeting in a large pack of mobs, and it's pretty much the only reason I swap back to threatplates occasionally.

Thanks a bunch. Good job with the addon, it seems to be getting very popular.
Hmm, that is something to think about. I am not sure how hard/easy it would be to do that. I have a couple of ideas in my mind though. I will see what I can do and, if it's feasible, I will put it up in the next update.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 03-04-11, 08:34 PM  
dragaan
A Kobold Labourer

Forum posts: 1
File comments: 13
Uploads: 0
Hey, I asked a question on the last page but I think you might have missed it since you were dealing with that weird texture bug (which is understandable). I am starting to really like these nameplates tho, and that's sayin a lot cause I'm always swapping between mods cause I can never find one that's perfect in all situations. For me, these are wonderful except when I'm aoe tanking. There's one little change (besides the blacklist) that I'd absolutely love and I'm wondering if it's at all possible. I'm just going to copy my initial post about it here:

I was just wondering if there is a simple fix to get the hp info to only show on my current target, instead of all of the plates. It just feels a bit cluttered when there's a ton of plates in front of me and all the numbers are jumbled together, lol. If it's not a simple fix, I guess I'll deal with it.

That would be the best/easiest way for me to quickly see which mob I am targeting in a large pack of mobs, and it's pretty much the only reason I swap back to threatplates occasionally.

Thanks a bunch. Good job with the addon, it seems to be getting very popular.
__________________
Dragaan
<Incite> of Mannoroth-US
Last edited by dragaan : 03-04-11 at 08:36 PM.
Report comment to moderator  
Reply With Quote
Unread 03-04-11, 12:28 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by Leokhan
Hi there,
First of all: Thanks for those really nice nameplates + configuration-easy-mode suitiable for lua-naps like me

But I have one problem.
How do I show the mob's health only in percantage? I only found the option to turn health on/off in config.lua, but even in shnameplates.lua I did not find anything..

Thanks in advance
That is an easy fix bud, I will get it through the next update. There will be an option that lets you decide to only show percentages.

Hi there, so I preatty much can configure everything I can think of.
But there is one little thing that would me allover happy.
Is there any way to diable pets, totems so that there are only plates above enemy players?

aaaah ok!
the option for totems etc was actually uncheckt, but had to check them, reload und then uncheck again, now it works.
@fuback: I am currently, slowly, working on a whitelist/blacklist for the nameplates. Still in early stages of coding. I have to make sure it doesn't conflict with my ultimate goal of efficiency.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Unread 03-03-11, 12:45 PM  
fuback
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hi there, so I preatty much can configure everything I can think of.
But there is one little thing that would me allover happy.
Is there any way to diable pets, totems so that there are only plates above enemy players?

aaaah ok!
the option for totems etc was actually uncheckt, but had to check them, reload und then uncheck again, now it works.
Last edited by fuback : 03-04-11 at 03:38 AM.
Report comment to moderator  
Reply With Quote
Unread 03-02-11, 08:53 AM  
Leokhan
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Hi there,
First of all: Thanks for those really nice nameplates + configuration-easy-mode suitiable for lua-naps like me

But I have one problem.
How do I show the mob's health only in percantage? I only found the option to turn health on/off in config.lua, but even in shnameplates.lua I did not find anything..

Thanks in advance
Report comment to moderator  
Reply With Quote
Unread 02-25-11, 06:39 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 340
Uploads: 5
Originally posted by Corlan
No i didn't. I tried that afterwards to see if it picked up the wrong one in its default settings, but changed it back, so the config file is unchanged at the moment. Only thing I did was enable tankmode.

Quick thing to note. I installed it on my laptop as well, and the bug doesn't seem to be present there.

Happy to help debug this btw. Just let me know what to do.
I really...hmm, I'm gonna try it with tankmode. I just can't seem to get the same error as you guys. I do thank you for your help though, let me know if anything changes or if you see an error.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: