added menu sounds

This commit is contained in:
pennyrigate 2023-09-30 23:13:36 -04:00
parent 76f68b59b6
commit 0a0b3e2f42

View file

@ -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://shaders/ska_plane.gdshader" type="Shader" id=1]
[ext_resource path="res://ui/theme.tres" type="Theme" id=2] [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://shaders/1px_border.gdshader" type="Shader" id=13]
[ext_resource path="res://graphics/exit/exit.png" type="Texture" id=14] [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/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] [sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 1 ) shader = ExtResource( 1 )
@ -215,6 +216,8 @@ texture = ExtResource( 5 )
hframes = 4 hframes = 4
frame = 2 frame = 2
[node name="MenuSounds" parent="DifficultySelect" instance=ExtResource( 16 )]
[node name="NameEntry" type="Node2D" parent="."] [node name="NameEntry" type="Node2D" parent="."]
pause_mode = 1 pause_mode = 1
unique_name_in_owner = true unique_name_in_owner = true
@ -397,12 +400,20 @@ shape = SubResource( 6 )
[node name="Ladder" parent="NameEntry" instance=ExtResource( 15 )] [node name="Ladder" parent="NameEntry" instance=ExtResource( 15 )]
scale = Vector2( 1, 20 ) 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="." 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="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="." 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="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="." 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="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="." 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="pressed" from="DifficultySelect/ButtonsPanel/Pungent" to="." method="_difficulty_selected"]
[connection signal="area_entered" from="NameEntry/Exit" to="." method="_on_Exit_area_entered"] [connection signal="area_entered" from="NameEntry/Exit" to="." method="_on_Exit_area_entered"]