Redesign resource transfer interface

This commit is contained in:
Loïc Wisniewski 2026-08-13 23:02:09 +02:00
commit 7d05042f51
3 changed files with 44 additions and 20 deletions

View file

@ -128,10 +128,12 @@ var lab_building_id: int = 0
@onready var to_building_label: Label = get_node("../UI/TransferMenu/ToBuildingLabel")
@onready var to_building_batch_button: IconButton = get_node("../UI/TransferMenu/ToBuildingBatchButton")
@onready var to_building_batch_label: Label = get_node("../UI/TransferMenu/ToBuildingBatchLabel")
@onready var to_building_all_label: Label = get_node("../UI/TransferMenu/ToBuildingAllLabel")
@onready var to_building_all_button: IconButton = get_node("../UI/TransferMenu/ToBuildingAllButton")
@onready var to_fleet_label: Label = get_node("../UI/TransferMenu/ToFleetLabel")
@onready var to_fleet_batch_button: IconButton = get_node("../UI/TransferMenu/ToFleetBatchButton")
@onready var to_fleet_batch_label: Label = get_node("../UI/TransferMenu/ToFleetBatchLabel")
@onready var to_fleet_all_label: Label = get_node("../UI/TransferMenu/ToFleetAllLabel")
@onready var to_fleet_all_button: IconButton = get_node("../UI/TransferMenu/ToFleetAllButton")
@onready var gas_to_building_button: IconButton = get_node("../UI/TransferMenu/GasToBuildingButton")
@onready var gas_to_fleet_button: IconButton = get_node("../UI/TransferMenu/GasToFleetButton")
@ -1033,6 +1035,14 @@ func _refresh_transfer() -> void:
to_building_label.text = "Unload into %s" % _transfer_place_name()
to_fleet_label.text = "Load from %s" % _transfer_place_name()
to_building_label.text = "ORE — unload / load all"
to_fleet_label.text = "GAS — unload / load all"
to_building_batch_button.visible = false
to_building_batch_label.visible = false
to_fleet_batch_button.visible = false
to_fleet_batch_label.visible = false
to_building_all_label.text = "Unload all"
to_fleet_all_label.text = "Load all"
# The batch buttons say what they would actually move, not the nominal
# batch size: offering "25" when the hold has 4 in it is a promise the
# press cannot keep.