Thread Tools Display Modes
03-10-21, 06:04 AM   #1
wowprime
A Defias Bandit
Join Date: Apr 2009
Posts: 3
help with increasing player nameplate height

Hi all,

I'm trying to change the default blizzard nameplates to increase only the players nameplate height (to make it easier for my old eyes to see ). I tried many approaches and the one that works >90% of the time is:
Code:
hooksecurefunc("DefaultCompactNamePlateFrameAnchorInternal", function(frame, setupOptions)
    if setupOptions and frame.healthBar and not customOptions or not customOptions.ignoreBarSize then
        if setupOptions.healthBarAlpha == 1 then
            PixelUtil.SetHeight(frame.healthBar, setupOptions.healthBarHeight + 10);
        else
            PixelUtil.SetHeight(frame.healthBar, setupOptions.healthBarHeight);
        end

        frame.healthBar.border:UpdateSizes();
    end
end);
however every so often this code taints the ui causing the player nameplate to fall apart.

Any ideas/suggestions on how to achieve this?


Thanks!
  Reply With Quote
03-26-21, 04:07 PM   #2
L3n1n
A Fallenroot Satyr
 
L3n1n's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 20
I tested this solution and it works:

Code:
hooksecurefunc("DefaultCompactNamePlateFrameAnchorInternal", function(frame, setupOptions)
	setupOptions.healthBarHeight = 8 -- 4 Default
end)
  Reply With Quote
03-31-21, 12:36 PM   #3
wowprime
A Defias Bandit
Join Date: Apr 2009
Posts: 3
Thanks a lot L3n1n!! It worked!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » help with increasing player nameplate height

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