drawInterfaceStatusBar

open fun drawInterfaceStatusBar(ship: ShipAPI, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, text: String, number: Int)

Draw a third status bar above the Flux and Hull ones on the User Interface. With a text of the left and the number on the right. This method automatically places the status bar above other ones if they are already being drawn. This must be called with the same text argument every couple of seconds to remain active. It's not recommended to change text when calling this method, as doing so will create another status bar.

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.

text

The text written to the left, automatically cut if too large. Set to null to ignore

number

The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore


open fun drawInterfaceStatusBar(ship: ShipAPI, statusBarLoc: Vector2f, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, text: String, number: Int)

Draw a status bar at the desired position. With a text of the left and the number on the right. This method automatically places the status bar above other ones if they are already being drawn. This must be called with the same text argument every couple of seconds to remain active. It's not recommended to change text when calling this method, as doing so will create another status bar.

Parameters

ship

Player ship.

statusBarLoc

Where to draw the status bar.

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.

text

The text written to the left, automatically cut if too large. Set to null to ignore

number

The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore


open fun drawInterfaceStatusBar(ship: ShipAPI, key: String, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, text: String, number: Int)

Draw a status bar above the Flux and Hull ones on the User Interface. With a text of the left and the number on the right. This method automatically places the status bar above other ones if they are already being drawn. This must be called every couple of seconds to remain active. This method's arguments explicitly define key, allowing for the text to change without generating another status bar.

Parameters

ship

Player ship.

key

Key for the status. Should be unique to your mod and whatever this status bar is displaying.

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.

text

The text written to the left, automatically cut if too large. Set to null to ignore

number

The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore


open fun drawInterfaceStatusBar(ship: ShipAPI, key: String, statusBarLoc: Vector2f, fill: Float, innerColor: Color, borderColor: Color, secondFill: Float, text: String, number: Int)

Draw a status bar at the desired position. With a text of the left and the number on the right. This method automatically places the status bar above other ones if they are already being drawn. This must be called every couple of seconds to remain active. This method's arguments explicitly define key, allowing for the text to change without generating another status bar.

Parameters

ship

Player ship.

key

Key for the status. Should be unique to your mod and whatever this status bar is displaying.

statusBarLoc

Where to draw the status bar.

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.

text

The text written to the left, automatically cut if too large. Set to null to ignore

number

The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore