draw
  Draws a small UI bar next to the ship's system
    MagicUI.drawSystemBar(
        ship,
        new Color(255,0,0),
        shieldTime/MAX_SHIELD_TIME,
        0
);
Content copied to clipboard
Parameters
ship
Ship concerned (the element will only be drawn if that ship is the player ship)
intended
Color of the filling. If null, the filling will be UI-green
fill
Filling level
blend
Time to smoothly switch between colors. Can be set to 0 for instant changes
open fun drawSystemBar(ship: ShipAPI, boxLoc: Vector2f, intendedColor: Color, fill: Float, blendTime: Float)
Draws a small UI bar at a given location.
Parameters
ship
Ship concerned (the element will only be drawn if that ship is the player ship)
box
Where to draw the bar.
intended
Color of the filling. If null, the filling will be UI-green
fill
Filling level
blend
Time to smoothly switch between colors. Can be set to 0 for instant changes