-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain Menu.tscn
More file actions
85 lines (68 loc) · 2.48 KB
/
Main Menu.tscn
File metadata and controls
85 lines (68 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[gd_scene load_steps=11 format=2]
[ext_resource path="res://main menu.png" type="Texture" id=1]
[ext_resource path="res://start button_pressed.png" type="Texture" id=3]
[ext_resource path="res://start button.png" type="Texture" id=4]
[ext_resource path="res://credits button.png" type="Texture" id=5]
[ext_resource path="res://credits button_pressed.png" type="Texture" id=6]
[ext_resource path="res://quit button.png" type="Texture" id=7]
[ext_resource path="res://quit button_pressed.png" type="Texture" id=8]
[ext_resource path="res://main menu 2.png" type="Texture" id=9]
[ext_resource path="res://main menu 3.png" type="Texture" id=10]
[sub_resource type="GDScript" id=1]
script/source = "extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
$HBoxContainer/Start.grab_focus()
func _on_Start_pressed():
get_tree().change_scene(\"res://Town.tscn\")
func _on_Credits_pressed():
pass
func _on_Quit_pressed():
get_tree().quit()
"
[node name="Menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource( 1 )
[node name="TextureRect" type="TextureRect" parent="."]
visible = false
margin_right = 320.0
margin_bottom = 185.0
texture = ExtResource( 1 )
[node name="TextureRect2" type="TextureRect" parent="."]
margin_right = 320.0
margin_bottom = 185.0
texture = ExtResource( 9 )
[node name="TextureRect3" type="TextureRect" parent="."]
visible = false
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 10 )
[node name="HBoxContainer" type="HBoxContainer" parent="."]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -79.0
margin_top = -43.0
margin_right = 79.0
[node name="Start" type="TextureButton" parent="HBoxContainer"]
margin_right = 50.0
margin_bottom = 43.0
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 3 )
[node name="Credits" type="TextureButton" parent="HBoxContainer"]
margin_left = 54.0
margin_right = 104.0
margin_bottom = 43.0
texture_normal = ExtResource( 5 )
texture_pressed = ExtResource( 6 )
[node name="Quit" type="TextureButton" parent="HBoxContainer"]
margin_left = 108.0
margin_right = 158.0
margin_bottom = 43.0
texture_normal = ExtResource( 7 )
texture_pressed = ExtResource( 8 )
[connection signal="pressed" from="HBoxContainer/Start" to="." method="_on_Start_pressed"]
[connection signal="pressed" from="HBoxContainer/Credits" to="." method="_on_Credits_pressed"]
[connection signal="pressed" from="HBoxContainer/Quit" to="." method="_on_Quit_pressed"]