Hi, when experimenting with oUF I came across a healthbar style I like, which is fatter at low health so it's easier to notice. However, when implementing it, I realized that statusbars don't actually shrink or clip... they just slide along their axis.
Please look at this image on full life:
And now, when I am damaged:
The dark health bar is just moving, which makes sense for some layouts, but not for something like this. I had thought, due to some previous discussion, that unconventionally shaped status bars weren't a problem these days.
I'm unsure how to proceed to get the desired effect of just clipping off the end of the bar with the more damage you take.
Here's the current code generating my health bar. Any advice on what to add or change to be able to use this awkwardly-shaped health effectively would be very appreciated.
local Health = CreateFrame("StatusBar", "hiuiPlayerHealthBar", self)
--[[ Player Health Border (Art)
Art frame keeping the health bar in check.
local HealthBorder = Health:CreateTexture("hiuiPlayerHealthArt", "ARTWORK", nil, 1)