Thread Tools Display Modes
10-27-12, 05:22 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
PTR 5.1 nameplate changes

Has anyone tried the PTR yet? The nameplates got changed again.

Plus tiny mobs get "tiny" nameplates now which looks awful imo.

Code:
NamePlate
 2 Chilren, 0 Regions
 -- Child A (FRAME)
     2 Children
     7 Regions
     -- Child AA (Statusbar)
         0 Children
         1 Region
     -- Child AB (Statusbar)
         0 Childen
         4 Regions
 -- Child B (Frame)
     0 Children
     1 Region
Lua Code:
  1. --full nameplate objects
  2.     local f = NamePlate1 --nameplateframe
  3.     f.barFrame, f.nameFrame = f:GetChildren()
  4.     f.barFrame.threat, f.barFrame.border, f.barFrame.highlight, f.barFrame.level, f.barFrame.boss, f.barFrame.raid, f.barFrame.dragon = f.barFrame:GetRegions()
  5.     f.nameFrame.name = f.nameFrame:GetRegions()
  6.     f.barFrame.healthbar, f.barFrame.castbar = f.barFrame:GetChildren()
  7.     f.barFrame.healthbar.texture =  f.barFrame.healthbar:GetRegions()
  8.     f.barFrame.castbar.texture, f.barFrame.castbar.border, f.barFrame.castbar.shield, f.barFrame.castbar.icon =  f.barFrame.castbar:GetRegions()
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-27-12 at 08:35 AM.
 
11-28-12, 01:22 AM   #2
fostic_popcorn
A Murloc Raider
 
fostic_popcorn's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 5
Hey Zork, thank you so much for this post. I'm a very very amateur coder but thanks to this I was able to figure out and fix my nameplate addon

Thanks to all you unsung heroes who post & document API changes!!
 
11-28-12, 02:39 AM   #3
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
The 'small' frames can be fixed by called SetScale(1) on the two child frames of the NamePlate on show.
 
11-28-12, 02:55 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Btw...the default nameplates have a bug.

For some reason it is possible that the healthbar object will be set to alpha = 0.5 even while the parent element itself is at alpha = 1. I tried alot of stuff to fix the alpha value. Nothing worked. In the end I decided to create a new healthbar and just hide the default one (but keep it for value reference). That worked out great.

On that note. I had no problems with the frame scaling. That is because I use my own width and create new nameplate art.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 11-28-12 at 02:58 AM.
 
11-28-12, 10:24 AM   #5
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Turns out scaling doesn't work at all because of taint. Lovely. Now I'll have to rewrite the whole thing so that my custom borders scale themselves.
 
01-11-13, 03:40 AM   #6
hadriya9091
A Kobold Labourer
Join Date: Jan 2013
Posts: 1
I couldn't find anything, but that doesn't mean a whole lot. Could you not simply use UNIT_SPELLCAST_SUCCESS instead, and skip CLEU?
__________________
H@driya
 
 

WoWInterface » Site Forums » Archived Beta Forums » MoP Beta archived threads » PTR 5.1 nameplate changes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off