addTextNonScaling

open fun addTextNonScaling(ship: ShipAPI, text: String, textColor: Color, screenPos: Vector2f, openGLStack: Boolean)

Draw text with the font Victor14 where you want on the screen. This method will not apply UI_SCALING and so assumes that the screenPos is already scaled.

Parameters

ship

The player ship. Only used to change UI text color if it is dead. Can be null.

text

Text to display.

textColor

The color of the text. Alpha will be used for both the black background and foreground color.

screenPos

The position on the Screen. Should not be scaled to UI Scaling.

openGLStack

whether to open an OpenGL11 stack for the text