Hellswipers/main_menu/main_menu.tscn

60 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-03-14 17:39:20 +00:00
[gd_scene load_steps=3 format=3 uid="uid://bat14jn36bm8h"]
[sub_resource type="GDScript" id="GDScript_iu3pc"]
script/source = "extends Button
func _pressed() -> void:
get_tree().change_scene_to_packed(load('res://game/game.tscn'))
"
[sub_resource type="GDScript" id="GDScript_7qewh"]
script/source = "extends Button
func _pressed() -> void:
get_tree().root.propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
get_tree().quit()
"
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 50.0
offset_top = 50.0
offset_right = -50.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
[node name="StartButton" type="Button" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_right = 0.5
anchor_bottom = 0.4
offset_left = 50.0
offset_top = 50.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
theme_override_font_sizes/font_size = 128
text = " Play Game "
flat = true
script = SubResource("GDScript_iu3pc")
[node name="ExitButton" type="Button" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.85
anchor_top = 0.9
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
theme_override_colors/font_color = Color(0.8, 0.16, 0.16, 1)
theme_override_font_sizes/font_size = 48
text = "Exit"
flat = true
script = SubResource("GDScript_7qewh")