addInterfaceStatusBar

open fun addInterfaceStatusBar(ship: ShipAPI, boxLoc: Vector2f, fill: Float, innerColor: Color, borderColor: Color, secondfill: Float)

Draws a small UI bar above the flux bar. The HUD color change to blue when the ship is not alive. Bug: When you left the battle, the hud keep for qew second, no solution found. Bug: Also for other normal drawBox, when paused, they switch brutally of "color".

Parameters

ship

Ship concerned (the element will only be drawn if that ship is the player ship)

boxLoc

Where to draw the status bar.

fill

Filling level

innerColor

Color of the bar. If null, use the vanilla HUD color.

borderColor

Color of the border. If null, use the vanilla HUD color.

secondfill

Like the hardflux of the fluxbar. 0 per default.