getUIElementOffset

open fun getUIElementOffset(ship: ShipAPI, variant: ShipVariantAPI, vec1: Vector2f, vec2: Vector2f): Vector2f

Get the UI Element Offset. (Depends on the weapon groups and wings present)

Return

the offset.

Parameters

ship

The player ship.

variant

The variant of the ship.

vec1

Vector2f used if there are no wing and less than 2 weapon groups.

vec2

Vector2f used if there are wings but less than 2 weapon groups.