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,033
Favorites:42
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 10-23-13, 05:54 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Sorry but I do not understand your question.
__________________
| 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 offline Report comment to moderator  
Reply With Quote
Unread 10-23-13, 01:46 AM  
Aklaim
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Thank you for your prompt reply. I would like to say a wish: whether in your addon in any way to make the selection of targets, it somehow signals those it (say what appeared a frame)?
Last edited by Aklaim : 10-23-13 at 01:47 AM.
Aklaim is offline Report comment to moderator  
Reply With Quote
Unread 10-22-13, 03:38 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Re: Need help!

Originally Posted by Aklaim
What a piece of code is responsible for this?u
Change the value of SetBackdropColor. Currently it is set to 0,0,0,1 in RGBA (reg,green,blue,alpha). For red you use (1,0,0,1) etc.
http://code.google.com/p/rothui/sour...s2/core.lua#75
__________________
| 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 offline Report comment to moderator  
Reply With Quote
Unread 10-22-13, 12:52 PM  
Aklaim
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Post Need help!

Dear zork. First please forgive me for my English. Secondly, the question is how you can (and if it's possible) in your addon to make the background in the allocation of targets in a different color? What a piece of code is responsible for this? I would be very grateful for your response. Thank you
Aklaim is offline Report comment to moderator  
Reply With Quote
Unread 10-22-13, 01:41 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Re: help with percentage function

Add the function to the top where the other functions are.
Add the new value string to the NamePlateInit function.
Lua Code:
  1. --update health func
  2. local function UpdateHealth(self)
  3.   local hcur, hmin, hmax = self:GetValue(), self:GetMinMaxValues()
  4.   local hper = 0
  5.   if hmax > 0 then hper = hcur/hmax*100 end
  6.   self.value:SetText(hper.."%")
  7. end
  8.  
  9. --new value string
  10. plate.healthbar.value = plate.healthbar:CreateFontString(nil,"BORDER")
  11. plate.healthbar.value:SetPoint("RIGHT", 0, 0)
  12. plate.healthbar.value:SetFont(STANDARD_TEXT_FONT,11,"THINOUTLINE")
  13. plate.healthbar:HookScript("OnValueChanged", UpdateHealth)
  14. UpdateHealth(plate.healthbar)
__________________
| 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 : 10-22-13 at 01:42 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-21-13, 04:25 PM  
Dhaern
A Kobold Labourer

Forum posts: 0
File comments: 61
Uploads: 0
help with percentage function

Hi zork, can you help with percentage health function creation? I would like add this option to rnameplates2

Thx in advance
Last edited by Dhaern : 10-21-13 at 04:25 PM.
Dhaern is offline Report comment to moderator  
Reply With Quote
Unread 10-21-13, 01:16 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
That is normal. I only scan for nameplates once per second. That's why. Once the nameplate is parsed it will stay nice and shiny.
__________________
| 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 : 10-21-13 at 01:17 PM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 10-21-13, 12:43 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 67
Uploads: 1
Hello Zork,

I love your nameplate only i keep getting issues with it.

In the beginning i see blizzard nameplates then in a second it changes to your nameplates.

It's like he needs to load or something

Could u please look at it?

Thanks
__________________
Cashtro is offline Report comment to moderator  
Reply With Quote
Unread 10-12-13, 09:40 AM  
nuubcakeboss
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Big and fat nameplates

If you are having issues with "exanding" nameplates just use this:
Code:

/console bloatnameplates 0
/console bloatthreat 0

^
Having this issue.
Doesnt Work... any fix for this please?
nuubcakeboss is offline Report comment to moderator  
Reply With Quote
Unread 09-08-13, 08:50 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Glad that you like it. You can edit the addon to whatever floats your boat.
__________________
| 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-13 at 08:50 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 09-07-13, 05:17 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 67
Uploads: 1
Hello Zork my friend,

How are u mate? WOW i like your nameplate, but i missed your config setting

I kinda edit your config into this --> maybe a idea for your next release .
Maybe some people want's to hide Castbar or Castbar Icon etc.

I hope u are not mad
Code:
-- ------------------------------------------------------------------------
-- Settings
-- ------------------------------------------------------------------------
  local cfg = {}

    -- -------------------------------
    -- Health, Name, Icon, Shieldicon, Raidicon and Castbar Size
    -- -------------------------------
    cfg.nameplateWidth    = 100
    cfg.healthbarHeight   = 6
    cfg.castbarHeight     = 4
    cfg.gap               = 4
    cfg.iconSize          = 16
    cfg.shieldSize        = 16
    cfg.raidiconSize      = 16

    -- -------------------------------
    -- Texture, Status Bar Media
    -- -------------------------------
    cfg.texture     = "Interface\\AddOns\\rNamePlates2\\media\\texture.tga"
    cfg.castbar     = "Interface\\AddOns\\rNamePlates2\\media\\castbar.tga"
    cfg.shield      = "Interface\\AddOns\\rNamePlates2\\media\\castbar_shield"
    cfg.iconborder  = "Interface\\AddOns\\rNamePlates2\\media\\castbar_icon_border"
    cfg.glow        = "Interface\\AddOns\\rNamePlates2\\media\\threat_glow"

    -- -------------------------------
    -- Font, Font Size
    -- -------------------------------
    cfg.font = "Interface\\AddOns\\rNamePlates2\\media\\font.ttf"
    cfg.fontsize = 8

    -- -------------------------------
    -- Backdrop and Background
    -- -------------------------------
    cfg.backdrop = {
    bgFile = "Interface\\AddOns\\rNamePlates2\\media\\backdrop",
    edgeFile = "Interface\\AddOns\\rNamePlates2\\media\\backdrop_edge",
    tile = false,
    tileSize = 0,
    edgeSize = 3,
    insets = {
      left = 3,
      right = 3,
      top = 3,
      bottom = 3,
      },
    }

    -- -------------------------------
    -- Hide and Show
    -- -------------------------------
    cfg.show_threat              = false
    cfg.show_level                = true
    cfg.show_castbar            = true
    cfg.show_castbaricon      = false
    cfg.show_raidicon           = true
BTW i have edit your healthbar and castbar in 3D mode lol i just add Background texture

Code:
  -- ------------------------------------
  -- Healthbar
  -- ------------------------------------
    plate.healthbar:SetParent(newPlate)
    plate.healthbar:SetStatusBarTexture(cfg.texture)
    CreateBackdrop(plate.healthbar)

    plate.healthbar.bg = plate.healthbar:CreateTexture(nil, "BACKGROUND")
    plate.healthbar.bg:SetAllPoints(plate.healthbar)
    plate.healthbar.bg:SetVertexColor(1,0,0,0)
    plate.healthbar.bg:SetAlpha(0.25)
    plate.healthbar.bg:SetTexture(cfg.texture)  

  -- ------------------------------------
  -- Castbar
  -- ------------------------------------
    plate.castbar:SetParent(newPlate)
    plate.castbar:SetStatusBarTexture(cfg.castbar)
    CreateBackdrop(plate.castbar)

    plate.castbar.bg = plate.castbar:CreateTexture(nil, "BACKGROUND")
    plate.castbar.bg:SetAllPoints(plate.castbar)
    plate.castbar.bg:SetVertexColor(255, 255, 0, 255)
    plate.castbar.bg:SetAlpha(0.25)
    plate.castbar.bg:SetTexture(cfg.texture)
I hope u could make Hide and Show options in your config
__________________
Last edited by Cashtro : 09-08-13 at 07:57 AM.
Cashtro is offline Report comment to moderator  
Reply With Quote
Unread 09-07-13, 03:56 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Cloudnyne reminded me of some hidden nameplate variables. Some of them are relicts from a bug that appeared in Cataclysm where nameplates would just disappear out of nowhere.

Code:
/console bloattest 1 - Might make nameplates larger but it fixes the disappearing ones.
/console spreadnameplates 0 - Makes them overlap like they used to.
/console bloatnameplates 1 - Makes nameplates larger depending on threat percentage.
/console bloatthreat 1 - Makes nameplates resize depending on threat gain/loss. Only active when a mob has multiple units on its threat table.
If you are having issues with "exanding" nameplates just use this:
Code:
/console bloatnameplates 0
/console bloatthreat 0
I just reseted my config files to test it.

*edit*

Ok. I could reproduce it.

Since they are still needed I'm going to add them to the addon.
__________________
| 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-07-13 at 04:39 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 09-06-13, 10:47 AM  
Cloudnyne84
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
LOL! I would over think it. I've been using other plates for so long that don't use anything from the wow interface so i didn't even think of that. Thanks!
Cloudnyne84 is offline Report comment to moderator  
Reply With Quote
Unread 09-06-13, 10:38 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1343
File comments: 3311
Uploads: 86
Originally Posted by Cloudnyne84
Very nice plates! One prob i'm having is in bg's/pvp it's not showing class colors just the hostile color. Any solution to this?
Of course. You need to enable the "show class color" checkbox in your interface settings first.
It is hidden somewhere in the Blizzard interface settings.
__________________
| 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 offline Report comment to moderator  
Reply With Quote
Unread 09-06-13, 10:04 AM  
Cloudnyne84
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Very nice plates! One prob i'm having is in bg's/pvp it's not showing class colors just the hostile color. Any solution to this?
Cloudnyne84 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: