WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   help with increasing player nameplate height (https://www.wowinterface.com/forums/showthread.php?t=58626)

wowprime 03-10-21 06:04 AM

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!

L3n1n 03-26-21 04:07 PM

I tested this solution and it works:

Code:

hooksecurefunc("DefaultCompactNamePlateFrameAnchorInternal", function(frame, setupOptions)
        setupOptions.healthBarHeight = 8 -- 4 Default
end)


wowprime 03-31-21 12:36 PM

Thanks a lot L3n1n!! It worked! :banana:


All times are GMT -6. The time now is 05:03 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI