Hide roster when no sortie choices
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user