aboutsummaryrefslogtreecommitdiff
path: root/client/menu/lobby.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/lobby.gd')
-rw-r--r--client/menu/lobby.gd9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd
index 5b4616cf..9991fbbf 100644
--- a/client/menu/lobby.gd
+++ b/client/menu/lobby.gd
@@ -43,7 +43,7 @@ func _ready():
game.data_updated.connect(initialize)
game.joined.connect(_on_game_joined)
game.left.connect(_on_game_left)
- Sound.play_music("stop") # TODO: Input Lobby music
+ check_for_music()
func initialize():
map_count = game.maps.size()
@@ -97,6 +97,7 @@ func _on_right_pressed():
func _on_controller_button_pressed():
if selected_map_name != null:
game.mp.send_chat("/start %s" % selected_map_name)
+ Sound.play_music("stop") # TODO: Game music enter
func _on_join_spectate_pressed():
if game.is_joined:
@@ -105,3 +106,9 @@ func _on_join_spectate_pressed():
elif not game.join_sent:
game.join()
join_spectate.text = tr("Spectate")
+
+func check_for_music():
+ if visible:
+ Sound.play_music("Lobby")
+ else:
+ Sound.play_music("stop") # TODO: Game music enter