My problem is that I've placed it ontop of the ability panel, which is not scaled for resolution. So if I scale mine by resolution, then it will start to overlap the ability panel, most noticably if you are playing a general. And just about every other location on the screen is already taken up by something if you are playing at a lower resolution. There's just not alot of screen real estate to work with.
Anyway, if you want to fiddle with the size of the font/bars, open up "partyPanel.lua"
Search for the function "CreateArmyLine". Skip down about 30-40 lines to the "### Health" comment. This is the section that draws the health bar and text. The easiest thing to try is increasing the font size:
line.healthvalues = UIUtil.CreateText(line.healthbg, '', 9, UIUtil.bodyFont) # 7
Just change that 9 to a 10 or 11 and see how it looks (for reference, it was a 7 in 1.2, and I changed it to 9 in 1.21).
If you want to play with the thickness of the bars, edit both of these lines (you can see how I increased them to make them thicker--just keep the one 4 smaller than the other):
line.healthbg.Height:Set(12) # 8
line.healthoverlay.Height:Set(16) # 12
If you edit the thickness of the bars, you might have to move the text up/down to keep it centered in the bar:
LayoutHelpers.AtCenterIn(line.healthvalues, line.healthbg, -1) # 0
Change the -1: More negative moves the text up. More positive moves it down.
Also, if you change the thickness of the bars, you will probably have to adjust their position in the panel:
LayoutHelpers.AtTopIn(line.healthbg, line.Image, 4) # 8
Change the 4. Smaller number to move it up. Larger number to move it down.
The energy works similarly. It is already programmed to be below the health bar, but if you are making the bars thicker, we might want to reduce the gap between it and the health bar:
LayoutHelpers.Below(line.energybg, line.healthbg, 3) # 5
Probably change that 3 to a 1 or 2.
And finally, if we need to make the panel slightly taller to accomodate thicker bars, we can do that. If you can fiddle with text/bar size to come up with something that is usable, then I'll fiddle with the size of the panel to make it all fit.
Oh...one more thing that could help readability is to increase the contrast. Look for these lines (there is one in each section):
line.energybg:SetSolidColor('88000011')
line.healthbg:SetSolidColor('88001100')
These represent the "empty" color of the energy and health bar. Change those "88" down to "66" or "55" or "44" would create more contrast between the fill color of the bar and the empty color of the bar, which might make it easier to see the bar without making it any bigger.
Thanks for tweaking:)