mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 20:55:44 +00:00
Hide command panel during battle progress (#8716)
This commit is contained in:
@@ -795,11 +795,12 @@ namespace eagle {
|
||||
}
|
||||
|
||||
private void UpdateBattleProgressDisplay(IGameModel model) {
|
||||
if (model.ShardokBattles.Any()) {
|
||||
battleProgressPanel.gameObject.SetActive(true);
|
||||
var hasBattles = model.ShardokBattles.Any();
|
||||
commandPanel.SetActive(!hasBattles);
|
||||
battleProgressPanel.gameObject.SetActive(hasBattles);
|
||||
|
||||
if (hasBattles) {
|
||||
battleProgressPanel.UpdateBattles(model.ShardokBattles, model, model.BattleDay);
|
||||
} else {
|
||||
battleProgressPanel.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user