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!