-
Notifications
You must be signed in to change notification settings - Fork 0
/
Generic_Menu.tscn
91 lines (79 loc) · 2.64 KB
/
Generic_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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[ext_resource path="res://theme.tres" type="Theme" id=2]
[ext_resource path="res://Title_Lable.tscn" type="PackedScene" id=3]
[ext_resource path="res://addons/simple-gui-transitions/transition.gd" type="Script" id=4]
[ext_resource path="res://button_normal_blue.tres" type="StyleBox" id=5]
[ext_resource path="res://button_hover_blue.tres" type="StyleBox" id=6]
[ext_resource path="res://button_pressed_blue.tres" type="StyleBox" id=7]
[ext_resource path="res://Options.gd" type="Script" id=8]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.564706, 0.890196, 0.435294, 0.0588235 )
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12
shadow_offset = Vector2( 2, 2 )
[node name="Menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = 200.0
margin_right = -20.0
margin_bottom = -237.0
theme = ExtResource( 2 )
script = ExtResource( 8 )
[node name="GuiTransition" type="Node" parent="."]
script = ExtResource( 4 )
animation_enter = 5
animation_leave = 5
layout = NodePath("..")
group = NodePath("..")
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_styles/panel = SubResource( 1 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = -130.0
[node name="Title" parent="VBoxContainer" instance=ExtResource( 3 )]
text = "Options"
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
margin_top = 65.0
margin_right = 680.0
margin_bottom = 713.0
size_flags_horizontal = 3
size_flags_vertical = 3
scroll_horizontal_enabled = false
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
margin_top = 324.0
margin_right = 680.0
margin_bottom = 324.0
size_flags_horizontal = 3
size_flags_vertical = 6
custom_constants/separation = 8
[node name="Panel2" type="Panel" parent="."]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -106.0
margin_right = -20.0
margin_bottom = -16.0
rect_min_size = Vector2( 640, 90 )
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="back" parent="Panel2" instance=ExtResource( 1 )]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 0.0
margin_right = 0.0
margin_bottom = 0.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 5 )
text = "Back"
[connection signal="pressed" from="Panel2/back" to="." method="_on_back_pressed"]