Added more sound

This commit is contained in:
2025-12-26 00:39:31 +03:00
parent 48a2b8ab74
commit a7aeacd547
16 changed files with 63 additions and 32 deletions
+1
View File
@@ -13,6 +13,7 @@ func _on_timer_timeout() -> void:
func _on_main_menu_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
show_main_menu.emit()
+3
View File
@@ -33,12 +33,15 @@ func _setup_neighbors() -> void:
func _on_continue_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
continue_game.emit()
func _on_options_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
show_options.emit()
func _on_main_menu_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
show_main_menu.emit()
+9 -9
View File
@@ -5,19 +5,19 @@
[sub_resource type="Shortcut" id="Shortcut_lgp46"]
[node name="PauseMenu" type="Control"]
[node name="PauseMenu" type="CenterContainer"]
process_mode = 2
layout_mode = 3
anchors_preset = 0
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 6
size_flags_vertical = 6
script = ExtResource("1_inj1j")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
top_level = true
layout_mode = 0
offset_left = 100.0
offset_top = 100.0
offset_right = 196.0
offset_bottom = 166.0
layout_mode = 2
[node name="ContinueButton" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
+1
View File
@@ -15,6 +15,7 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("pause") or event.is_action_pressed("ui_cancel"):
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
_on_pause_menu_continue_game.call_deferred()
+8 -14
View File
@@ -1,27 +1,21 @@
[gd_scene load_steps=4 format=3 uid="uid://d34nh3lc1gpb"]
[gd_scene load_steps=5 format=3 uid="uid://d34nh3lc1gpb"]
[ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://styles/menu_theme.tres" id="1_cked2"]
[ext_resource type="Script" uid="uid://c5d2t2o53wkmt" path="res://game/menu/ingame/pause_screen.gd" id="1_fe1q8"]
[ext_resource type="PackedScene" uid="uid://bclo2wl8ibrcg" path="res://game/menu/ingame/pause_menu.tscn" id="2_4r6ly"]
[ext_resource type="PackedScene" uid="uid://btr60idiit4y7" path="res://game/menu/common/options.tscn" id="3_3gwb3"]
[node name="PauseScreen" type="Control"]
layout_mode = 3
anchors_preset = 0
[node name="PauseScreen" type="MarginContainer"]
offset_right = 640.0
offset_bottom = 360.0
theme = ExtResource("1_cked2")
script = ExtResource("1_fe1q8")
[node name="PauseMenu" parent="." instance=ExtResource("2_4r6ly")]
layout_mode = 0
layout_mode = 2
[node name="Options" parent="." instance=ExtResource("3_3gwb3")]
custom_minimum_size = Vector2(640, 360)
layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_right = 0.0
offset_bottom = 0.0
grow_horizontal = 1
grow_vertical = 1
layout_mode = 2
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
[connection signal="continue_game" from="PauseMenu" to="." method="_on_pause_menu_continue_game"]
+1
View File
@@ -13,6 +13,7 @@ func _on_timer_timeout() -> void:
func _on_main_menu_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
show_main_menu.emit()
+1
View File
@@ -24,4 +24,5 @@ func _set_weapon_data(data: WeaponData) -> void:
func _on_button_pressed() -> void:
SoundManager.play_ui_stream(SoundManager.ui_stream_accept)
weapon_selected.emit(weapon_data)