diff options
| author | nokoe <nokoe@mailbox.org> | 2025-10-09 17:06:23 +0200 |
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2025-10-09 17:07:01 +0200 |
| commit | 27919ac3e6c274f82a7b93e0941738188773020c (patch) | |
| tree | e4082ee8d46b5cd1c664ffe82a8c4449b78ce410 /client/gui | |
| parent | 51531848f824ce5b3841ed1d96909903c090a3b0 (diff) | |
| download | hurrycurry-27919ac3e6c274f82a7b93e0941738188773020c.tar hurrycurry-27919ac3e6c274f82a7b93e0941738188773020c.tar.bz2 hurrycurry-27919ac3e6c274f82a7b93e0941738188773020c.tar.zst | |
add main menu music
Diffstat (limited to 'client/gui')
| -rw-r--r-- | client/gui/menus/character.gd | 6 | ||||
| -rw-r--r-- | client/gui/menus/main/about.gd | 4 | ||||
| -rw-r--r-- | client/gui/menus/main/main.gd | 3 | ||||
| -rw-r--r-- | client/gui/overlays/lobby/lobby.gd | 2 |
4 files changed, 13 insertions, 2 deletions
diff --git a/client/gui/menus/character.gd b/client/gui/menus/character.gd index fa3d213e..6216d67d 100644 --- a/client/gui/menus/character.gd +++ b/client/gui/menus/character.gd @@ -23,6 +23,9 @@ func _ready(): super() $VBoxContainer/top_panel/a/username.text = Profile.read("username") character.set_style(Profile.read("character_style"), "chef") + AudioServer.set_bus_effect_enabled(1, 0, true) + AudioServer.set_bus_effect_enabled(1, 1, true) + AudioServer.set_bus_volume_db(1, -12.) func exit(): if username_edit.text == "": @@ -34,6 +37,9 @@ func exit(): await submenu("res://gui/menus/popup.tscn", popup_data) return Profile.write("username", username_edit.text) + AudioServer.set_bus_effect_enabled(1, 0, false) + AudioServer.set_bus_effect_enabled(1, 1, false) + AudioServer.set_bus_volume_db(1, 0.) super() func _on_character_back_pressed(): diff --git a/client/gui/menus/main/about.gd b/client/gui/menus/main/about.gd index 95f98d30..6b0677ad 100644 --- a/client/gui/menus/main/about.gd +++ b/client/gui/menus/main/about.gd @@ -20,6 +20,7 @@ var authors := ["metamuffin", "nokoe", "tpart"] var contributors := ["sofviic", "BigBrotherNii", "Miner34"] const cc_by_4 := "CC-BY 4.0" const cc_by_3 := "CC-BY 3.0" +const cc_by_sa_4 := "CC-BY-SA 4.0" const cc0 := "CC0" const AGPL_NOTICE := """This program is free software: you can redistribute it and/or modify @@ -61,6 +62,9 @@ var credits := [ ["Dillon Becker", "Super Dialogue Audio Pack V1", cc_by_4], ["Ekrcoaster", "Water steaming on hot surface #2", cc0] ]], + [tr("c.credits.music"), [ + ["Giorgi Latso, Asuas", "Debussy: Images I. Reflets dans l'eau (adapted: bars 1-35)", cc_by_sa_4], + ]], [tr("c.credits.other"), [ ["Ray Trace", "Nintendo_Switch_Pro_Controller.svg", cc_by_4], ["Amousey", "Curved solid arrow.svg", cc0] diff --git a/client/gui/menus/main/main.gd b/client/gui/menus/main/main.gd index 7a389304..754eddd7 100644 --- a/client/gui/menus/main/main.gd +++ b/client/gui/menus/main/main.gd @@ -22,8 +22,9 @@ func _ready(): super() if OS.has_feature("web"): quit_button.hide() - Sound.play_music("MainMenu") ServerList.one_shot() + await get_tree().create_timer(0.7).timeout + Sound.play_music("MainMenu") func _menu_cover(state): $side.visible = not state diff --git a/client/gui/overlays/lobby/lobby.gd b/client/gui/overlays/lobby/lobby.gd index 2b40cada..8f7adc49 100644 --- a/client/gui/overlays/lobby/lobby.gd +++ b/client/gui/overlays/lobby/lobby.gd @@ -173,7 +173,7 @@ func check_for_music(): if visible: Sound.play_music("Lobby") else: - Sound.play_music("stop") # TODO: Game music enter + Sound.play_music(null) func _on_enable_bots_toggled(toggled_on): bots_enabled = toggled_on |