staggered "xp", "hp" labels in UI
This commit is contained in:
		| @@ -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 | ||||
| @@ -360,7 +362,7 @@ function drawhud() | ||||
|   print("!", 122, 93, 9) | ||||
|   print("!", 121, 92, 8) | ||||
|  end | ||||
|   fillp(0) | ||||
|  fillp(0) | ||||
| end | ||||
|  | ||||
| function draw_gun_info(lbl,fgc,x,y,gun) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user