Quantcast
Download
(8 Kb)
Download
Updated: 08-06-18 04:50 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-06-18 04:50 PM
Created:11-19-17 05:24 PM
Downloads:2,281
Favorites:14
MD5:
8.0.1

Improved Nameplates

Version: 4.0.4.80000
by: Ammako [More]

Nameplate improvements to the new default nameplates from 7.0.3



What it does:

- Adds a unit level display to the nameplate unit frame
- Adds a numeric display to nameplate health bars and Personal Resource Display (for Personal Resource Display, this is available with Larger Nameplates only)
- Adds a better threat display similar to pre-7.0.3
- Makes it easier to tell which mobs are currently in combat by coloring their name red when they are in combat and you are able to gain credit for the kill (raid/party groups, multitap mobs), and grey for mobs that have been tapped
- Enables names to always show up on nameplates regardless of NPC names settings
- Adds an outline to the names to make them easier to read
- Fades other nameplates out whenever you target something, similar to pre-7.0.3
- Makes Personal Resource Display click-through

It also sets some CVars for arguably better functionality:

- Prevents nameplates from becoming increasingly transparent when moving away from them, makes every nameplate fully opaque similar to pre-7.0.3 (nameplateMaxAlpha, nameplateMinAlpha)
- Prevents nameplates from changing in size depending on distance (nameplateMaxScale, nameplateMinScale)

Note: Chinese/Mandarin and Korean are not supported unless somebody offers to help for that.



Setting up:

The add-on works as-is with no setup required. However, there are a few settings you can change for personal preference.

Currently customizable:

- NPC Names setting
- Font size for name and health/resource display
- Health/Primary Resource display
- Level display (on/off)
- Realm name display, for cross-realm players

2018/08/06 - v4.0.4.80000
- Fix forbidden nameplates error in instances, I forgot to add that check last time.

2018/07/23 - v4.0.3.80000
- Fix buff frame on nameplates jumping up and down.

2018/07/19 - v4.0.2.80000
- Fix buff frame on Personal Resource Display jumping up and down.

2018/07/18 - v4.0.1.80000
- 8.0.1 toc bump, no actual changes included

2018/05/25 - v4.0.1
- There was a little bug that caused Personal Resource Display health display to not be properly separate from other nameplates' health display, for some reason. I fixed that.

2018/03/31 - v4.0.0
- Should be okay with friendly nameplates while in PvE instances now. Might need more testing.
- Taking v4.0.0 out of beta because I guess it's been months and no major issues have been reported. Likely the final version, unless major changes happen in future patches/expansions or bugs are found.
Post A Reply Comment Options
Unread 08-06-18, 12:38 PM  
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view AddOns

Forum posts: 246
File comments: 24
Uploads: 8
Ah, when you talked about colors I was expecting more than that for some reason.

I don't think it's worth adding an extra option just for a small change like that, so I probably won't do that, but what I can do is add an extra options panel later to allow customizing fonts and colors where applicable. That way it serves a bigger purpose, to warrant adding in the extra options, and you'll be able to get the colors you want through that, so it should also work for you.

I kinda like the idea of having enemy player names in a different color when PvP is enabled. By default I'll leave it the same as it is right now (white), but support for it will be included and name color for PvP-enabled enemy players will be customizable separately from other units.

Right now I'll just fix the problem that's causing the errors in instances because that's more important, I'll do the rest later because I don't really feel like working on that right now. But it'll be done.
__________________
Report comment to moderator  
Reply With Quote
Unread 08-06-18, 11:51 AM  
azradomm
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Thank you for the quick response.

If you are interessted, this would be the code I changed at Line 548.
This was my first time scripting with LUA, so if there's anything to improve just let me know.

The color change itself just influences the name text, and is mostly visible for PvP with active warmode. Feel free to take a look

Code:
		-- Colorize unit name when they are in combat.
		if CompactUnitFrame_IsTapDenied(frame) then -- If unit has been tapped (opposite faction, or 5+ players of your faction.)
			frame.name:SetVertexColor(0.5, 0.5, 0.5, 1) -- Grey.
		elseif UnitAffectingCombat(frame.unit) and UnitCanAttack("player", frame.unit) and not UnitIsFriend("player", frame.unit) then -- If unit is in combat and an enemy (npc or pvp).
			if UnitIsUnit(frame.unit, "target") then
				frame.name:SetVertexColor(1, 0.1, 0.1, 1) -- Red.
			else
				frame.name:SetVertexColor(1, 0.5, 0.5, 1) -- Reddish for a bit more contrast.
			end	
		else -- If unit not in combat.
			if UnitIsPlayer(frame.unit) and not UnitIsFriend("player", frame.unit) then 
				frame.name:SetVertexColor(1, 0.2, 0.2, 1) -- Reddish for warmode / pvp
			else
				frame.name:SetVertexColor(1, 1, 1, 1) -- White.
			end
		end

Thanks for the work on this addon !
Report comment to moderator  
Reply With Quote
Unread 08-06-18, 10:14 AM  
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view AddOns

Forum posts: 246
File comments: 24
Uploads: 8
Originally Posted by azradomm
Hi there,

i'm a huge fan of the simplicity of this addon.

However, there seems to be a bug in the current Version 4.0.3.80000
When selecting a friendly target in a dungeon or raid, there's a LUA error stating: "Attempt to access forbidden object".
I fixed this by adding a :IsForbidden() check to the UpdateAnchor function.

Furthermore, I slightly changed some colors for more contrast, especially helpful in PvP.

Is there a official repository where i could create a Pull-Request for those changes?
Yeah, I'm stupid and forgot to add the check last time when I fixed a thing, and since I never use friendly nameplates I never noticed.

There's no repository or anything; I can fix the friendly nameplate thing on my own, but for the color thing, feel free to just post your code here and I can add it in with appropriate credit given.
I'll keep the current colors as default, because I prefer to keep default blizzard look where possible, just with more info being displayed on top, but I can add higher contrast colors as an option especially if it can be helpful in certain scenarios.
__________________
Report comment to moderator  
Reply With Quote
Unread 08-06-18, 09:49 AM  
azradomm
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hi there,

i'm a huge fan of the simplicity of this addon.

However, there seems to be a bug in the current Version 4.0.3.80000
When selecting a friendly target in a dungeon or raid, there's a LUA error stating: "Attempt to access forbidden object".
I fixed this by adding a :IsForbidden() check to the UpdateAnchor function.

Furthermore, I slightly changed some colors for more contrast, especially helpful in PvP.

Is there a official repository where i could create a Pull-Request for those changes?
Report comment to moderator  
Reply With Quote
Unread 07-08-18, 06:42 AM  
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view AddOns

Forum posts: 246
File comments: 24
Uploads: 8
It works fine on BfA without any changes required (unless you've noticed issues, in which case you'll have to elaborate.)
I'll update the .toc interface number once the expansion is actually out.

Bar texture goes outside of the scope of what I want this to do, and I'm not too interested in figuring out how to do that tbh. but if it's a simple thing to learn, and you can point me to resources that explain how to do it, I wouldn't mind making a separate addon for it that could be used alongside this.
__________________
Report comment to moderator  
Reply With Quote
Unread 07-08-18, 12:53 AM  
awoh
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Great addon!

Will it be updated for Battle for Azeroth?
Also, would it be possible to be able to change the bar texture?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: