diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-07 15:43:01 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-07 16:24:13 +0100 |
| commit | d5c8ed97c7f3510ab90c3f9bd4042d70175cacfb (patch) | |
| tree | 6f564b90e5df4b6a2dec78107f6fd75b670b8868 /client | |
| parent | 59e1e4bb8106bbb0ba281313eb6dd03f9d095bb3 (diff) | |
| download | hurrycurry-d5c8ed97c7f3510ab90c3f9bd4042d70175cacfb.tar hurrycurry-d5c8ed97c7f3510ab90c3f9bd4042d70175cacfb.tar.bz2 hurrycurry-d5c8ed97c7f3510ab90c3f9bd4042d70175cacfb.tar.zst | |
remove unused music code from lobby overlay
Diffstat (limited to 'client')
| -rw-r--r-- | client/gui/overlays/lobby/lobby.gd | 8 | ||||
| -rw-r--r-- | client/gui/overlays/lobby/lobby.tscn | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/client/gui/overlays/lobby/lobby.gd b/client/gui/overlays/lobby/lobby.gd index 23d6036f..954ae069 100644 --- a/client/gui/overlays/lobby/lobby.gd +++ b/client/gui/overlays/lobby/lobby.gd @@ -51,7 +51,6 @@ func _ready(): game.join_state_updated.connect(_update_visible) game.in_lobby_updated.connect(_update_visible) _update_visible(false) - check_for_music() func initialize(): map_count = game.maps.size() @@ -164,17 +163,10 @@ func _on_start_pressed(): start_msg += "\ncreate-bot %s" % k game.mp.send_chat(game.my_player_id, start_msg) - Sound.set_music(null) # TODO: Game music enter func _update_visible(_state: bool): visible = game.in_lobby and game.join_state == Game.JoinState.JOINED -func check_for_music(): - if visible: - Sound.set_music(null) # TODO: lobby music - else: - Sound.set_music(null) - func _on_enable_bots_toggled(toggled_on): bots_enabled = toggled_on bot_settings_conainer.visible = toggled_on diff --git a/client/gui/overlays/lobby/lobby.tscn b/client/gui/overlays/lobby/lobby.tscn index 28959838..673f7540 100644 --- a/client/gui/overlays/lobby/lobby.tscn +++ b/client/gui/overlays/lobby/lobby.tscn @@ -175,7 +175,6 @@ controller_texture = ExtResource("9_q14bw") press_action = "start_game" metadata/_custom_type_script = "uid://b1eomxildrq30" -[connection signal="visibility_changed" from="." to="." method="check_for_music"] [connection signal="pressed" from="Sidebar/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Left" to="." method="_on_left_pressed"] [connection signal="pressed" from="Sidebar/Bottom/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/Right" to="." method="_on_right_pressed"] [connection signal="toggled" from="Sidebar/Bottom/MarginContainer/VBoxContainer/Bots/EnableBots" to="." method="_on_enable_bots_toggled"] |