drawHUDStatusBar

open fun drawHUDStatusBar(ship: ShipAPI, fill: Float, innerColor: Color, borderColor: Color, secondfill: Float, bottext: String, toptext: String, offset: Boolean)

Draw a status bar next to the player ship on the top left corner of the hud Can write two bits of text on its left side

Parameters

ship

Player ship.

fill

Filling level of the bar. 0 to 1

innerColor

Color of the bar. If null, the vanilla green UI color will be used.

borderColor

Color of the border. If null, the vanilla green UI color will be used.

secondfill

Wider filling like the soft/hard-flux. 0 to 1.

bottext

Write a text just on the left of the bar. Example: 'flux'. Set to null to ignore

toptext

Write a text just above the bar. Example: 'player' or 'target'. Set to null to ignore

offset

Offsets the bar a few pixels upward. Can be used for example to display the targeted enemy special status bar.