staggered "xp", "hp" labels in UI

This commit is contained in:
Kistaro Windrider 2024-09-07 16:33:58 -07:00
parent 68863280f3
commit 5870c129eb
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -339,12 +339,14 @@ function drawhud()
draw_gun_info("❎",1,116,3,primary_ship.main_gun)
draw_gun_info("🅾️",1,116,29,primary_ship.special_gun)
--dropshadow("x h",114,57,1)
inset(114,57,119,118)
rectfill(119,57,125,58,13)
inset(120,64,125,125)
rectfill(114,124,120,125,13)
print("XP",120,56,1)
print("HP",113,121,1)
fillp(0x5a5a)
vertmeter(115,58,118,117,primary_ship.xp, primary_ship.xptarget, powcols)
inset(120,64,125,125)
-- 59 px vertically
local mxs, cs, mxh, ch = primary_ship.maxshield, primary_ship.shield, primary_ship.maxhp, primary_ship.hp
if (mxs > 0) and (mxh > 0) then