Hide roster when no sortie choices

This commit is contained in:
2026-06-18 14:54:11 +09:00
parent c0972824e4
commit 96a1e8225e
4 changed files with 80 additions and 3 deletions

View File

@@ -2597,7 +2597,7 @@ func _show_briefing() -> void:
if armory_button != null:
armory_button.disabled = prep_locked or state.get_controllable_player_units().is_empty()
if roster_button != null:
roster_button.disabled = prep_locked or not state.has_deployment_roster() or state.get_player_units(true).is_empty()
roster_button.disabled = prep_locked or not state.has_deployment_roster_choices()
if formation_button != null:
formation_button.disabled = prep_locked or state.get_formation_cells().is_empty()
if save_button != null:
@@ -2779,7 +2779,7 @@ func _hide_armory_menu() -> void:
func _on_roster_pressed() -> void:
if battle_started or _is_prebattle_prep_locked() or not state.has_deployment_roster() or briefing_panel == null or not briefing_panel.visible:
if battle_started or _is_prebattle_prep_locked() or not state.has_deployment_roster_choices() or briefing_panel == null or not briefing_panel.visible:
return
_play_ui_click()
if roster_menu != null and roster_menu.visible: