diff options
author | tpart <tpart120@proton.me> | 2024-09-19 17:39:03 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-19 17:39:03 +0200 |
commit | 3aff746f7960a8372ba4624d214dc1ae39632b36 (patch) | |
tree | b38b8a4dc640e0d4b29bd7f034cfe3387e2ecf5d | |
parent | dae5a23514ed859d44720e03c8fc48d386b1ec2a (diff) | |
download | hurrycurry-3aff746f7960a8372ba4624d214dc1ae39632b36.tar hurrycurry-3aff746f7960a8372ba4624d214dc1ae39632b36.tar.bz2 hurrycurry-3aff746f7960a8372ba4624d214dc1ae39632b36.tar.zst |
Fix incorrect focus if lobby menu is covered (#115)
-rw-r--r-- | client/menu/lobby.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd index 770b2888..39199d59 100644 --- a/client/menu/lobby.gd +++ b/client/menu/lobby.gd @@ -108,7 +108,8 @@ func select_map(i: int): map_player_label.text = tr("c.map.players_recommended") % map_data["players"] map_difficulty_label.text = tr("c.map.difficulty.%d" % (map_data["difficulty"] - 1)) selected_map_name = game.maps[i][0] - map_list_container.get_child(i).grab_focus() + if not game.menu.covered: + map_list_container.get_child(i).grab_focus() func increase_bot_count(algo_id: String): bot_counts[algo_id] = clampi(bot_counts[algo_id] + 1, 0, MAX_BOT_COUNT_PER_TYPE) |