-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
102 lines (88 loc) · 3.34 KB
/
main.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
[gd_scene load_steps=8 format=3 uid="uid://qr52aafdvj5l"]
[ext_resource type="Script" uid="uid://ba0kyhwc8edji" path="res://menu_bar.gd" id="1_1bvp3"]
[ext_resource type="Script" uid="uid://c4xjo5mavlg5r" path="res://node_selection.gd" id="1_7mycd"]
[ext_resource type="Script" uid="uid://44j7r8skexf1" path="res://graph.gd" id="1_h2yge"]
[ext_resource type="Script" uid="uid://bgdixhn7vioeb" path="res://run.gd" id="4_1bvp3"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7dm0k"]
[sub_resource type="InputEventKey" id="InputEventKey_h2yge"]
device = -1
keycode = 4194336
[sub_resource type="Shortcut" id="Shortcut_1bvp3"]
events = [SubResource("InputEventKey_h2yge")]
[node name="Main" type="VBoxContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 0
[node name="Menu" type="HBoxContainer" parent="." node_paths=PackedStringArray("graph", "file_menu")]
layout_mode = 2
script = ExtResource("1_1bvp3")
graph = NodePath("../ScriptGraphEdit")
file_menu = NodePath("FileMenu")
[node name="FileMenu" type="MenuButton" parent="Menu"]
layout_mode = 2
text = "File"
switch_on_hover = true
item_count = 3
popup/item_0/text = "New"
popup/item_0/id = 0
popup/item_1/text = "Open"
popup/item_1/id = 1
popup/item_2/text = "Save"
popup/item_2/id = 2
[node name="ScriptGraphEdit" type="GraphEdit" parent="."]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = SubResource("StyleBoxEmpty_7dm0k")
grid_pattern = 1
right_disconnects = true
connection_lines_antialiased = false
zoom_min = 0.2
zoom_max = 2.0
minimap_enabled = false
show_grid_buttons = false
script = ExtResource("1_h2yge")
verbose = true
hide_scroll = true
[node name="Controls" type="MarginContainer" parent="ScriptGraphEdit"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -82.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="Bar" type="HBoxContainer" parent="ScriptGraphEdit/Controls"]
layout_mode = 2
size_flags_vertical = 8
[node name="NodeSelection" type="ScrollContainer" parent="ScriptGraphEdit/Controls/Bar" node_paths=PackedStringArray("graph", "buttons")]
layout_mode = 2
size_flags_horizontal = 3
follow_focus = true
script = ExtResource("1_7mycd")
graph = NodePath("../../..")
buttons = NodePath("ButtonContainer")
[node name="ButtonContainer" type="HBoxContainer" parent="ScriptGraphEdit/Controls/Bar/NodeSelection"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Run" type="Button" parent="ScriptGraphEdit/Controls/Bar" node_paths=PackedStringArray("graph")]
custom_minimum_size = Vector2(100, 50)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 8
shortcut = SubResource("Shortcut_1bvp3")
text = "Run"
script = ExtResource("4_1bvp3")
graph = NodePath("../../..")
[connection signal="connection_request" from="ScriptGraphEdit" to="ScriptGraphEdit" method="_on_connection_request"]
[connection signal="delete_nodes_request" from="ScriptGraphEdit" to="ScriptGraphEdit" method="_on_delete_nodes_request"]
[connection signal="disconnection_request" from="ScriptGraphEdit" to="ScriptGraphEdit" method="_on_disconnection_request"]