Thread Tools Display Modes
01-15-17, 08:49 PM   #1
Sekzey
A Defias Bandit
Join Date: Jan 2017
Posts: 3
Changing the Scale for ClassNameplateBar

Hello all!

I am in the process of scaling down the personal resource bars (located below the character).

I have been able to reduce the scaling for the following:

ClassNameplateManaBarFrame:SetScale(0.7)
ClassNameplateBarRogueDruidFrame:SetScale(0.5)

but, I have yet to have any luck changing the healthbar that shows up below my character! I can only change my rogue's energy and combo points sizes.

I've tried ClassNameplateBarFrame:SetScale(0.7) to no avail.

Anyone have any advice?

I was looking here for what I have so far. https://github.com/tomrus88/Blizzard...ard_NamePlates

Thanks!

~Sekzey
 
01-15-17, 09:11 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Lua Code:
  1. hooksecurefunc(NamePlateDriverFrame,"OnNamePlateCreated",function(self,base)
  2.     base.UnitFrame:SetScale(0.7);
  3. end);
This hooks the creation of the UnitFrames attached to NamePlates and adjusts their scale. The NamePlates themselves are scaled dynamically in C code, so they can't be adjusted.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
 
01-15-17, 09:58 PM   #3
Sekzey
A Defias Bandit
Join Date: Jan 2017
Posts: 3
Thanks for the reply!

I ran your lua and it seems to work great!

Another issue has occurred. The first time the personal resource bar is loaded it scales it down, but when it fades and returns it goes back to it's previous settings.

Anyway to make it a permanent change?

Thanks!
 
01-16-17, 06:53 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
What happens if you change OnNamePlateCreated to ApplyFrameOptions? The function args should still work.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
 
01-17-17, 11:48 PM   #5
Sekzey
A Defias Bandit
Join Date: Jan 2017
Posts: 3
Looks like that worked! Thank you very very much!
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Changing the Scale for ClassNameplateBar

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