-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.tscn
134 lines (106 loc) · 3.28 KB
/
Menu.tscn
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/NotoSansUI_Regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://addons/Trail/trail3d_icon.svg" type="Texture" id=2]
[ext_resource path="res://addons/Trail/trail2d_icon.svg" type="Texture" id=3]
[sub_resource type="GDScript" id=1]
script/source = "extends Control
func _on_btn1_button_down():
get_tree().change_scene(\"res://level.tscn\")
func _on_btn2_button_down():
get_tree().change_scene(\"res://navmesh.tscn\")
func _on_btn3_button_down():
get_tree().change_scene(\"res://demo_3d_1.tscn\")
func _on_btn4_button_down():
get_tree().change_scene(\"res://demo_3d_2.tscn\")
func _on_btn_quit_button_down():
get_tree().quit()
"
[sub_resource type="DynamicFont" id=2]
size = 64
use_mipmaps = true
use_filter = true
font_data = ExtResource( 1 )
[sub_resource type="DynamicFont" id=3]
size = 18
use_mipmaps = true
use_filter = true
font_data = ExtResource( 1 )
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="panel" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="title" type="Label" parent="panel"]
anchor_right = 1.0
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = 14.0
custom_fonts/font = SubResource( 2 )
text = "Trail System Demo"
align = 1
valign = 1
[node name="vbc" type="VBoxContainer" parent="panel"]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 220.0
margin_top = -347.0
margin_right = -220.0
margin_bottom = -50.0
custom_constants/separation = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="btn1" type="Button" parent="panel/vbc"]
margin_right = 584.0
margin_bottom = 32.0
custom_fonts/font = SubResource( 3 )
text = "[2D] Navigation Mesh"
icon = ExtResource( 3 )
[node name="btn2" type="Button" parent="panel/vbc"]
margin_top = 42.0
margin_right = 584.0
margin_bottom = 74.0
custom_fonts/font = SubResource( 3 )
text = "[3D] Navigation Mesh"
icon = ExtResource( 2 )
[node name="btn3" type="Button" parent="panel/vbc"]
margin_top = 84.0
margin_right = 584.0
margin_bottom = 116.0
custom_fonts/font = SubResource( 3 )
text = "[3D] Projectile trail"
icon = ExtResource( 2 )
[node name="btn4" type="Button" parent="panel/vbc"]
margin_top = 126.0
margin_right = 584.0
margin_bottom = 158.0
custom_fonts/font = SubResource( 3 )
text = "[3D] Character Sword/Capoeira"
icon = ExtResource( 2 )
[node name="spacer" type="Control" parent="panel/vbc"]
margin_top = 168.0
margin_right = 584.0
margin_bottom = 255.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="btn_quit" type="Button" parent="panel/vbc"]
margin_top = 265.0
margin_right = 584.0
margin_bottom = 297.0
custom_fonts/font = SubResource( 3 )
text = "Quit"
[connection signal="button_down" from="panel/vbc/btn1" to="." method="_on_btn1_button_down"]
[connection signal="button_down" from="panel/vbc/btn2" to="." method="_on_btn2_button_down"]
[connection signal="button_down" from="panel/vbc/btn3" to="." method="_on_btn3_button_down"]
[connection signal="button_down" from="panel/vbc/btn4" to="." method="_on_btn4_button_down"]
[connection signal="button_down" from="panel/vbc/btn_quit" to="." method="_on_btn_quit_button_down"]