From 0a0b3e2f42fdfddb8b6ae6cec524ceb0411abaad Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Sat, 30 Sep 2023 23:13:36 -0400 Subject: [PATCH] added menu sounds --- menus/file_create.tscn | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/menus/file_create.tscn b/menus/file_create.tscn index 4ac346a..ed263fc 100644 --- a/menus/file_create.tscn +++ b/menus/file_create.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=22 format=2] +[gd_scene load_steps=23 format=2] [ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=1] [ext_resource path="res://ui/theme.tres" type="Theme" id=2] @@ -15,6 +15,7 @@ [ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=13] [ext_resource path="res://graphics/exit/exit.png" type="Texture" id=14] [ext_resource path="res://objects/environment/ladder/ladder.tscn" type="PackedScene" id=15] +[ext_resource path="res://objects/hud/menu_sounds.tscn" type="PackedScene" id=16] [sub_resource type="ShaderMaterial" id=1] shader = ExtResource( 1 ) @@ -215,6 +216,8 @@ texture = ExtResource( 5 ) hframes = 4 frame = 2 +[node name="MenuSounds" parent="DifficultySelect" instance=ExtResource( 16 )] + [node name="NameEntry" type="Node2D" parent="."] pause_mode = 1 unique_name_in_owner = true @@ -397,12 +400,20 @@ shape = SubResource( 6 ) [node name="Ladder" parent="NameEntry" instance=ExtResource( 15 )] scale = Vector2( 1, 20 ) +[connection signal="button_down" from="DifficultySelect/ButtonsPanel/Sweet" to="DifficultySelect/MenuSounds" method="play_confirm_sound"] [connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Sweet" to="." method="_set_difficulty" binds= [ 0 ]] +[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Sweet" to="DifficultySelect/MenuSounds" method="play_select_sound"] [connection signal="pressed" from="DifficultySelect/ButtonsPanel/Sweet" to="." method="_difficulty_selected"] +[connection signal="button_down" from="DifficultySelect/ButtonsPanel/Salty" to="DifficultySelect/MenuSounds" method="play_confirm_sound"] [connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Salty" to="." method="_set_difficulty" binds= [ 1 ]] +[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Salty" to="DifficultySelect/MenuSounds" method="play_select_sound"] [connection signal="pressed" from="DifficultySelect/ButtonsPanel/Salty" to="." method="_difficulty_selected"] +[connection signal="button_down" from="DifficultySelect/ButtonsPanel/Spicy" to="DifficultySelect/MenuSounds" method="play_confirm_sound"] [connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Spicy" to="." method="_set_difficulty" binds= [ 2 ]] +[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Spicy" to="DifficultySelect/MenuSounds" method="play_select_sound"] [connection signal="pressed" from="DifficultySelect/ButtonsPanel/Spicy" to="." method="_difficulty_selected"] +[connection signal="button_down" from="DifficultySelect/ButtonsPanel/Pungent" to="DifficultySelect/MenuSounds" method="play_confirm_sound"] [connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Pungent" to="." method="_set_difficulty" binds= [ 3 ]] +[connection signal="focus_entered" from="DifficultySelect/ButtonsPanel/Pungent" to="DifficultySelect/MenuSounds" method="play_select_sound"] [connection signal="pressed" from="DifficultySelect/ButtonsPanel/Pungent" to="." method="_difficulty_selected"] [connection signal="area_entered" from="NameEntry/Exit" to="." method="_on_Exit_area_entered"]