Download
(16 Kb)
Download
Updated: 09-16-13 04:39 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-16-13 04:39 AM
Created:08-21-13 05:56 PM
Downloads:3,201
Favorites:44
MD5:
5.4
rNamePlates 2
Version: 50400.01
by: zork [More]

Intro
Just simple nameplates.

I created this mod after finding out about the FPS bug.

I had friends with 200fps without nameplates that dropped to 40fps with nameplates enabled.
This mod fixes this issue because it hides all NamePlates before applying a new SetPoint().

If you are experiencing high FPS loss with nameplates enabled try them and get amazed.
Config
Config variables can be found at the top of the core.lua.

Lua Code:
  1. --CONFIG
  2.  
  3.   --width/height
  4.   cfg.nameplateWidth    = 100
  5.   cfg.healthbarHeight   = 7
  6.   cfg.castbarHeight     = 7
  7.   cfg.threatglowHeight  = 15
  8.   --gap between bars and castbar icon
  9.   cfg.gap               = 5
  10.   --icon sizes
  11.   cfg.iconSize          = 30
  12.   cfg.shieldSize        = 16
  13.   cfg.raidiconSize      = 25
  14.   --statusbars
  15.   --available textures: statusbar, statusbar_smooth, statusbar_rothui
  16.   cfg.healthbarTexture  = "Interface\\AddOns\\rNamePlates2\\media\\statusbar"
  17.   cfg.castbarTexture    = "Interface\\AddOns\\rNamePlates2\\media\\statusbar"
SVN
http://code.google.com/p/rothui/sour...0/rNamePlates2
50400.01
- added healthbar faction coloring
- updated toc to 50400

50300.04
- Added the threat bloat fix

50300.03
- changed the threat glow to a threat border around the healthbar

50300.02
- code cleanup/overhaul
- added 2 new statusbar textures to pick from

50300.01
- initial release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
50300.04
16kB
zork
09-07-13 04:33 AM
50300.03
16kB
zork
08-24-13 08:10 PM
50300.02
50kB
zork
08-23-13 12:33 PM
50300.01
11kB
zork
08-21-13 05:56 PM


Post A Reply Comment Options
Unread 09-09-14, 06:46 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
Sorry. Try using any other nameplate mod with ingame config then. KuiNameplates are pretty good and do everything you need.
http://www.wowinterface.com/download...19390-238.html
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 09-09-14 at 06:47 AM.
zork is online now Report comment to moderator  
Reply With Quote
Unread 09-09-14, 04:21 AM  
Xully
A Deviate Faerie Dragon

Forum posts: 19
File comments: 121
Uploads: 0
oh ok, then I wont use it, but for the hp - percentage, it didn't work for me, everytime I add those lines , the default blizzard nameplate shows.

ideally I want it to show only [ HP ] if its maxed, and once the mob/boss is losing hp, it shows percentage like this [ HP - percentage ] like for example if mob has 400k hp and he's on full, it shows

[ 400k ]

if he loses hp etc.


[ 300k - 75% ]
Xully is offline Report comment to moderator  
Reply With Quote
Unread 09-08-14, 10:16 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
Platebuff does not work with rNamePlates2. By awful I mean that without throttling the function for the threatglow color check would be called everytime a frame is created on the screen. At 100fps that is 100times per second.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 09-08-14 at 10:23 AM.
zork is online now Report comment to moderator  
Reply With Quote
Unread 09-08-14, 05:57 AM  
Xully
A Deviate Faerie Dragon

Forum posts: 19
File comments: 121
Uploads: 0
thanks zork for the response. can I ask you on @2 "by awful" do you mean it will cause lag or something, or is it just bad?

also can I ask if platebuff addon works with this nameplate or not
Last edited by Xully : 09-08-14 at 07:55 AM.
Xully is offline Report comment to moderator  
Reply With Quote
Unread 09-08-14, 02:03 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
Originally Posted by Xully
1.) For the percentage you need to add a function that hooks the plate healthbar OnValueChanged event and according change a text string depending on the castbar values.
2.) For the threat coloring. Yeah that one is awful to do because you would need to check for the threat glow state on each OnUpdate cycle because there is no event firing for the threat glow.
Example for the healthbar 1.)
https://code.google.com/p/rothui/sou...2/core.lua#308
Lua Code:
  1. local function NamePlateHealthbarOnValueChanged(self)
  2.   local cur, min, max = self:GetValue, self:GetMinMaxValues()
  3.   print(cur,min,max)
  4. end
  5.  
  6. plate.healthbar:HookScript("OnValueChanged", NamePlateHealthbarOnValueChanged)

Example for 2.)
https://code.google.com/p/rothui/sou...2/core.lua#336
Lua Code:
  1. if blizzPlate:IsShown() then
  2.   if blizzPlate.threat:IsShown() then
  3.     newPlate.name:SetTextColor(blizzPlate.threat:GetVertexColor())
  4.    end
  5.   newPlate:SetPoint("CENTER", WorldFrame, "BOTTOMLEFT", blizzPlate:GetCenter())
  6.   newPlate:SetAlpha(blizzPlate:GetAlpha())
  7.   newPlate:Show()
  8. end
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 09-08-14 at 02:05 AM.
zork is online now Report comment to moderator  
Reply With Quote
Unread 09-07-14, 06:59 AM  
Xully
A Deviate Faerie Dragon

Forum posts: 19
File comments: 121
Uploads: 0
hi zork, is there any possible way to show inside the nameplate itself

[ hp current - percentage ]

example inside nameplate.

[ 715.4k - 62% ]


also if I can ask, can The name have the same color as the threat of the unit (for better visibility) would love if i can do this. thanks
Last edited by Xully : 09-07-14 at 07:42 PM.
Xully is offline Report comment to moderator  
Reply With Quote
Unread 08-28-14, 08:38 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
That dumb variable still exists? Lol. So I'm going to change my setvar rewrites to
Lua Code:
  1. --setvar
  2.   SetCVar("bloatnameplates",0)
  3.   SetCVar("bloatthreat",0)
  4.   SetCVar("bloattest",0)
I guess...
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-28-14 at 08:42 AM.
zork is online now Report comment to moderator  
Reply With Quote
Unread 08-27-14, 09:24 PM  
iru
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hello. I just wanted to say I was also having the same nameplate problem already posted here on a PC, but I got it fixed (only thanks to zork pointing out the possible cause of the problem in the first place).

The culprit was a console variable named "bloatTest" in the WTF\Config file, which was set to 1. Like this:
Code:
SET bloatTest "1"
So, in-game, I merely did:
Code:
/console bloatTest 0
And the nameplates were looking good again. I found a console variable like this related to nameplate issues mentioned on this site, here.

Hopefully those who were having nameplate issues find both a similar cause and solution. Cheers!
iru is offline Report comment to moderator  
Reply With Quote
Unread 05-22-14, 06:34 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
Re: changing fonts

Open the core.lua and search for "SetFont". Use any font you like.
http://wowprogramming.com/docs/widge...stance/SetFont
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is online now Report comment to moderator  
Reply With Quote
Unread 05-18-14, 05:44 PM  
feraldrood
An Aku'mai Servant
 
feraldrood's Avatar

Forum posts: 39
File comments: 35
Uploads: 0
changing fonts

Hey Zork,

Ive been digging the fps fix on these frames but I would like to change the fonts used.
unfortunately I haven't had any success with that, would appreciate a pointer or two

also, how do I make the creature name only displayed on my target? is that even an option?
and lastly, I've been having trouble trying to adjust the colors on nameplates (bit too dark)

advice?
feraldrood is offline Report comment to moderator  
Reply With Quote
Unread 05-07-14, 12:49 PM  
nuc_eng
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hiding or changing nameplate/health bar colors

Hi Zork,

Great job with this and Roth UI. I love them both and have been modding them to my comfort level. A couple of questions:

1) How do you hide the health bars on friendly NPCs/Players? I think it would greatly clean up the BG or city landscape and allow me to concentrate on the hostiles.

2) How can you change the color of a nameplate? I'm somewhat colorblind and red, especially against a green background is difficult for me to see.

Again great work!

Thanks.
nuc_eng is offline Report comment to moderator  
Reply With Quote
Unread 03-30-14, 12:05 AM  
ramzax
A Defias Bandit

Forum posts: 2
File comments: 2
Uploads: 0
hey zork, love your addon. I was trying to add the abbreviated form of the remaining health and total health on the left side of the nameplate. Here's the modified code from a post before:
Code:
local function UpdateHealth2(self)
  local hcur, hmin, hmax = self:GetValue(), self:GetMinMaxValues()
  local hrem = 0
  if hmax > 0 then hrem = hmax-hcur end
  	self.value:SetText(hcur.."/"..hmax)
  end
It shows health but I don't know how to abbreviate it, maybe using something "SetText(AbbreviateLargeNumbers)" would help but I obviously suck at lua.

Maybe you could help?
ramzax is offline Report comment to moderator  
Reply With Quote
Unread 03-26-14, 07:21 PM  
gossipgirlxo
A Deviate Faerie Dragon

Forum posts: 10
File comments: 81
Uploads: 1
Originally Posted by zork
Originally Posted by gossipgirlxo
what would be the best way to increase the alpha transparency of my target frame to 100% and my non targets to 20%
Line 338.
Lua Code:
  1. newPlate:SetAlpha(blizzPlate:GetAlpha())

You could change that to
Lua Code:
  1. if blizzPlate:GetAlpha() > 0.9 then
  2.   newPlate:SetAlpha(1)
  3. else
  4.   newPlate:SetAlpha(0.2)
  5. end

Zork, you are the man. thank you for the quick reply
gossipgirlxo is offline Report comment to moderator  
Reply With Quote
Unread 03-24-14, 08:48 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1354
File comments: 3228
Uploads: 86
Originally Posted by gossipgirlxo
what would be the best way to increase the alpha transparency of my target frame to 100% and my non targets to 20%
Line 338.
Lua Code:
  1. newPlate:SetAlpha(blizzPlate:GetAlpha())

You could change that to
Lua Code:
  1. if blizzPlate:GetAlpha() > 0.9 then
  2.   newPlate:SetAlpha(1)
  3. else
  4.   newPlate:SetAlpha(0.2)
  5. end
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is online now Report comment to moderator  
Reply With Quote
Unread 03-24-14, 05:09 AM  
gossipgirlxo
A Deviate Faerie Dragon

Forum posts: 10
File comments: 81
Uploads: 1
what would be the best way to increase the alpha transparency of my target frame to 100% and my non targets to 20%
gossipgirlxo is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: