Hide unit commands until selection
This commit is contained in:
@@ -3587,9 +3587,13 @@ func _check_hud_focus_text(failures: Array[String]) -> void:
|
||||
failures.append("empty battle inventory prompt should still be framed as an icon status chip")
|
||||
elif scene.inventory_status_panel.tooltip_text != scene.inventory_label.tooltip_text or scene.inventory_status_icon.tooltip_text != scene.inventory_label.tooltip_text:
|
||||
failures.append("empty battle inventory chip should carry the readable inventory tooltip")
|
||||
if scene.hud_command_grid == null or scene.hud_command_grid.visible:
|
||||
failures.append("empty battle HUD should hide disabled unit command buttons until a unit is selected")
|
||||
scene.state.selected_unit_id = "cao_cao"
|
||||
scene.hover_cell = Vector2i(1, 6)
|
||||
scene._update_hud()
|
||||
if scene.hud_command_grid == null or not scene.hud_command_grid.visible:
|
||||
failures.append("selected unit HUD should show the unit command grid")
|
||||
if scene.hud_unit_badge_row == null or not scene.hud_unit_badge_row.visible:
|
||||
failures.append("selected unit HUD should expose compact hover badges")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user