getSubsystemsRootLocation

open fun getSubsystemsRootLocation(ship: ShipAPI, numBars: Int, barHeight: Float): Vector2f

Determines the root location (top left corner) of Subsystem UI elements by calculating total height of all subsystems on player ship.

Return

Root location. Not scaled by UI scaling.

Parameters

ship

Player ship

numBars

Sum of number of gui slots from all subsystems

barHeight

Height of an individual bar (DO NOT SCALE WITH UI)