drawSystemBox

open fun drawSystemBox(ship: ShipAPI, intendedColor: Color, blendTime: Float)

Draws a small UI box next to the ship's system

Parameters

ship

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

intendedColor

Color of the filling. If null, the filling will be UI-green

blendTime

Time to smoothly switch between colors. Can be set to 0 for instant changes


open fun drawSystemBox(ship: ShipAPI, boxLoc: Vector2f, intendedColor: Color, blendTime: Float)

Draws a small UI box at a given location.

Parameters

ship

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

boxLoc

Where to draw the box.

intendedColor

Color of the filling. If null, the filling will be UI-green

blendTime

Time to smoothly switch between colors. Can be set to 0 for instant changes