draw Interface Status Bar
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
Player ship.
Filling level of the bar. 0 to 1
Color of the bar. If null, the vanilla green UI color will be used.
Color of the border. If null, the vanilla green UI color will be used.
Wider filling like the soft/hard-flux. 0 to 1.
The text written to the left, automatically cut if too large. Set to null to ignore
The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore
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
Player ship.
Where to draw the status bar.
Filling level of the bar. 0 to 1
Color of the bar. If null, the vanilla green UI color will be used.
Color of the border. If null, the vanilla green UI color will be used.
Wider filling like the soft/hard-flux. 0 to 1.
The text written to the left, automatically cut if too large. Set to null to ignore
The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore
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
Player ship.
Key for the status. Should be unique to your mod and whatever this status bar is displaying.
Filling level of the bar. 0 to 1
Color of the bar. If null, the vanilla green UI color will be used.
Color of the border. If null, the vanilla green UI color will be used.
Wider filling like the soft/hard-flux. 0 to 1.
The text written to the left, automatically cut if too large. Set to null to ignore
The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore
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
Player ship.
Key for the status. Should be unique to your mod and whatever this status bar is displaying.
Where to draw the status bar.
Filling level of the bar. 0 to 1
Color of the bar. If null, the vanilla green UI color will be used.
Color of the border. If null, the vanilla green UI color will be used.
Wider filling like the soft/hard-flux. 0 to 1.
The text written to the left, automatically cut if too large. Set to null to ignore
The number displayed on the right. Can go from 0 to 999 999. Set to <0 value to ignore