draw Drone System State Widget
open fun drawDroneSystemStateWidget(mothership: ShipAPI, tiles: Array<Boolean>, extra: Int, text1: String, text2: String, cooldown: Float, reserve: Int, reserveMax: Int, activeState: Int, numStates: Int, state: String, icon: SpriteAPI, drones: Map<ShipAPI, CombatUI.SpriteDimWrapper>, background: SpriteAPI, shipSprite: CombatUI.SpriteDimWrapper)
Used to draw the Pearson Exotronics drone system HUD elements. The same Root location is provided to each method used to render each individual element, only the Offset is different for each one. The following methods can be arbitrarily rendered for useful UI indicators of various things.
Parameters
mothership
mothership
tiles
array of booleans indicating which drones are alive
extra
Number of extra drones available for deployment (may be different to reserve)
text1
Text 1
text2
Text 2
cooldown
Forge cooldown
reserve
Number of drones in reserve
reserve Max
Maximum number of drones in reserve (max number forge can produce)
active State
Drone orders state
num States
Number of drones orders states
state
State name
icon
State sprite icon
drones
Map of drone sprites (supports multiple drone sprites)
background
Background image (default was a Pearson logo)
ship Sprite
Mothership sprite