split trick on powcols, save more tokens

This commit is contained in:
Kistaro Windrider 2023-09-12 23:44:33 -07:00
parent 43e6160dbc
commit 5591068f1d
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -245,6 +245,7 @@ function drawgame()
drawhud()
end
powcols=split"170,154,153,148,68"
function drawhud()
-- 112-and-right is hud zone
rectfill(112, 0, 127, 127,0x56)
@ -258,7 +259,7 @@ function drawhud()
dropshadow("pwr",114,59,1)
inset(114,66,125,92)
fillp(0x5a5a)
vertmeter(115,67,124,91,primary_ship.power, primary_ship.max_power, {170,154,153,148,68})
vertmeter(115,67,124,91,primary_ship.power, primary_ship.max_power, powcols)
dropshadow("h s",114,97,1)