drawHUDBar

open fun drawHUDBar(viewport: ViewportAPI, rootLoc: Vector2f, barLoc: Vector2f, displayAdditionalInfo: Boolean, longestNameWidth: Float)

Draws the subsystem info on the HUD.

Parameters

viewport

viewport to draw to

rootLoc

root location of subsystem info

barLoc

location to draw (top left)

displayAdditionalInfo

display additional subsystem info (hotkey, brief)

longestNameWidth

longest name width of all subsystems on the ship, for making the UI look uniform