Files
pong/scenes/main_menu/MainMenu.tscn
T
2024-03-15 14:00:31 +01:00

55 lines
1.9 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://c71cjy50eonxj"]
[ext_resource type="Theme" uid="uid://bbasvjlc0fdo8" path="res://default_theme.tres" id="1_gow2p"]
[ext_resource type="Script" path="res://scenes/main_menu/NewGameButton.gd" id="2_xmp3k"]
[ext_resource type="Script" path="res://scenes/main_menu/ExitButton.gd" id="3_r42kx"]
[sub_resource type="InputEventKey" id="InputEventKey_3qeo8"]
keycode = 32
[sub_resource type="Shortcut" id="Shortcut_heomt"]
events = [SubResource("InputEventKey_3qeo8")]
[sub_resource type="InputEventKey" id="InputEventKey_p7j63"]
keycode = 4194305
[sub_resource type="Shortcut" id="Shortcut_lofla"]
events = [SubResource("InputEventKey_p7j63")]
[node name="MainMenu" type="Node2D"]
[node name="NewGameContainer" type="PanelContainer" parent="."]
offset_right = 1200.0
offset_bottom = 300.0
[node name="NewGameCenter" type="CenterContainer" parent="NewGameContainer"]
layout_mode = 2
[node name="NewGameButton" type="Button" parent="NewGameContainer/NewGameCenter"]
custom_minimum_size = Vector2(300, 100)
layout_mode = 2
theme = ExtResource("1_gow2p")
shortcut = SubResource("Shortcut_heomt")
text = "New Game"
script = ExtResource("2_xmp3k")
[node name="ExitContainer" type="PanelContainer" parent="."]
offset_left = 1.0
offset_top = 300.0
offset_right = 1201.0
offset_bottom = 600.0
[node name="ExitCenter" type="CenterContainer" parent="ExitContainer"]
layout_mode = 2
[node name="ExitButton" type="Button" parent="ExitContainer/ExitCenter"]
custom_minimum_size = Vector2(300, 100)
layout_mode = 2
theme = ExtResource("1_gow2p")
shortcut = SubResource("Shortcut_lofla")
text = "Exit"
script = ExtResource("3_r42kx")
[connection signal="pressed" from="NewGameContainer/NewGameCenter/NewGameButton" to="NewGameContainer/NewGameCenter/NewGameButton" method="_on_pressed"]
[connection signal="pressed" from="ExitContainer/ExitCenter/ExitButton" to="ExitContainer/ExitCenter/ExitButton" method="_on_pressed"]