Refine context actions and preserve fleet landings
This commit is contained in:
parent
18a7d44db4
commit
663648d949
20 changed files with 197 additions and 103 deletions
|
|
@ -7,8 +7,8 @@ extends SceneTree
|
|||
# research screen.
|
||||
#
|
||||
# Verifies:
|
||||
# 1. the transfer button appears alongside the action button whenever the
|
||||
# fleet is standing on a building, and opens the transfer panel bound to
|
||||
# 1. the transfer shortcut appears beside Build whenever the fleet is
|
||||
# standing on a transferable building, and opens the panel bound to
|
||||
# THAT building - the `== 0` guard failure that made every crafter
|
||||
# button look dead is the same trap here
|
||||
# 2. ore moves both ways at an ordinary building, capped by what is
|
||||
|
|
@ -73,8 +73,6 @@ func _tap(button: Control) -> void:
|
|||
|
||||
|
||||
func _open_transfer() -> void:
|
||||
# Contextual choices collapse into one button until it is opened.
|
||||
_tap(controller.action_button)
|
||||
_tap(controller.transfer_button)
|
||||
|
||||
|
||||
|
|
@ -108,6 +106,8 @@ func _process(delta: float) -> bool:
|
|||
return false
|
||||
_expect(controller.current_building != null,
|
||||
"parking on the crafter never registered")
|
||||
_expect(controller.transfer_button.visible,
|
||||
"transfer shortcut did not appear beside Build")
|
||||
_open_transfer()
|
||||
_expect(controller.transfer_menu.visible,
|
||||
"tapping the transfer button did not open the panel")
|
||||
|
|
|
|||
Loading…
Reference in a new issue