addBar

open fun addBar(ship: ShipAPI, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, screenPos: Vector2f)

Draws a UI bar. The HUD color changes to blue when the ship is dead.

Parameters

ship

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

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 hard flux of the flux bar. 0 per default.

screenPos

The position on the Screen.


open fun addBar(ship: ShipAPI, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, screenPos: Vector2f, boxHeight: Float, boxWidth: Float, drawBorders: Boolean)

Draws a UI bar. The HUD color changes to blue when the ship is dead.

Parameters

ship

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

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.

screenPos

The position on the Screen.

boxHeight

Height of the drawn box.

boxWidth

Width of the drawn box.

drawBorders

whether to draw the borders of the bar. default is false.