adding sound to menu
This commit is contained in:
parent
5a278ca062
commit
d255435c93
8 changed files with 190 additions and 7 deletions
107
gmtk_2024/menu/main_menu/MaiC3FD.tmp
Normal file
107
gmtk_2024/menu/main_menu/MaiC3FD.tmp
Normal file
|
@ -0,0 +1,107 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://1h2urto6y63r"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://d3pbvdemdbxes" path="res://CommodoreSixtyFour.ttf" id="1_1tx2i"]
|
||||
[ext_resource type="Theme" uid="uid://cohbys634cf18" path="res://menu/main_menu/MainMenuTheme.tres" id="1_kkajn"]
|
||||
[ext_resource type="Script" path="res://scripts/menu_main_control.gd" id="2_g8c7b"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://objects/CRT.tscn" id="2_hal3l"]
|
||||
[ext_resource type="AudioStream" uid="uid://lr64lmpjnll0" path="res://sound/Blip_Select28.wav" id="5_sd7aq"]
|
||||
|
||||
[node name="MainMenu" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_kkajn")
|
||||
|
||||
[node name="CanvasLayer" parent="." instance=ExtResource("2_hal3l")]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_g8c7b")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Buttons" type="VBoxContainer" parent="Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="start" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "start"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="level_select" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "level selection"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="credits" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer3"]
|
||||
layout_mode = 2
|
||||
text = "credits"
|
||||
flat = true
|
||||
|
||||
[node name="HBoxContainer4" type="HBoxContainer" parent="Control/VBoxContainer/Buttons"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Buttons/HBoxContainer4"]
|
||||
custom_minimum_size = Vector2(8, 0)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_1tx2i")
|
||||
text = ">"
|
||||
|
||||
[node name="quit" type="Button" parent="Control/VBoxContainer/Buttons/HBoxContainer4"]
|
||||
layout_mode = 2
|
||||
text = "quit"
|
||||
flat = true
|
||||
|
||||
[node name="TypingSoundPlayer" type="AudioStreamPlayer2D" parent="Control"]
|
||||
stream = ExtResource("5_sd7aq")
|
||||
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer/start" to="Control" method="_on_start_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer2/level_select" to="Control" method="_on_level_select_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer3/credits" to="Control" method="_on_credits_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer4/quit" to="Control" method="_on_quit_button_pressed"]
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://1h2urto6y63r"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://1h2urto6y63r"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://d3pbvdemdbxes" path="res://CommodoreSixtyFour.ttf" id="1_1tx2i"]
|
||||
[ext_resource type="Theme" uid="uid://cohbys634cf18" path="res://menu/main_menu/MainMenuTheme.tres" id="1_kkajn"]
|
||||
[ext_resource type="Script" path="res://scripts/menu_main_control.gd" id="2_g8c7b"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://objects/CRT.tscn" id="2_hal3l"]
|
||||
[ext_resource type="AudioStream" uid="uid://bgx6cs627hq7q" path="res://sound/digital_text_typing.wav" id="5_tkj4j"]
|
||||
|
||||
[node name="MainMenu" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
|
@ -97,6 +98,9 @@ layout_mode = 2
|
|||
text = "quit"
|
||||
flat = true
|
||||
|
||||
[node name="TypingSoundPlayer" type="AudioStreamPlayer2D" parent="Control"]
|
||||
stream = ExtResource("5_tkj4j")
|
||||
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer/start" to="Control" method="_on_start_button_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer2/level_select" to="Control" method="_on_level_select_pressed"]
|
||||
[connection signal="pressed" from="Control/VBoxContainer/Buttons/HBoxContainer3/credits" to="Control" method="_on_credits_button_pressed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue