Refactor multi-resource UI and transfers
This commit is contained in:
parent
af5e08e5a1
commit
8231e165ff
20 changed files with 648 additions and 435 deletions
10
GasCargoCounter.gd
Normal file
10
GasCargoCounter.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends "res://GasCounter.gd"
|
||||
|
||||
# Fleet-side companion to GasCounter. It keeps the gas bubble glyph instead
|
||||
# of recolouring ore, and occupies the same row as banked gas in the HUD.
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
visible = GameState.fleet_gas_cargo > 0
|
||||
if visible:
|
||||
set_amount(GameState.fleet_gas_cargo)
|
||||
Loading…
Reference in a new issue