-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
editor.tscn
171 lines (142 loc) · 5.39 KB
/
editor.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[gd_scene load_steps=12 format=3 uid="uid://8w67718v7rk"]
[ext_resource type="Script" path="res://editor.gd" id="1_ix08l"]
[ext_resource type="Theme" uid="uid://dl7dg81sapu26" path="res://UI/theme/dark.tres" id="1_qcjp6"]
[ext_resource type="PackedScene" uid="uid://cliund3ivs7rq" path="res://UI/widgets/render_counter/render_counter.tscn" id="3_dljtu"]
[ext_resource type="Script" path="res://tabs.gd" id="4_ejxk4"]
[ext_resource type="Script" path="res://addons/dockable_container/dockable_container.gd" id="6_jlrni"]
[ext_resource type="Resource" uid="uid://0wfawbv87br4" path="res://graph_only_layout.tres" id="6_upj0v"]
[ext_resource type="PackedScene" uid="uid://di4qw4bosuns4" path="res://UI/windows/windows_manager/WindowsManager.tscn" id="7_8bflp"]
[ext_resource type="Script" path="res://UI/panels/graph/Canvas.gd" id="7_kirsr"]
[sub_resource type="GDScript" id="6"]
script/source = "extends Label
func show_step(step : int):
text = \"Undo/Redo \" + ToolsManager.current_project.undo_redo.get_current_action_name() + \" added (%d)\" % step
$AnimationPlayer.stop()
$AnimationPlayer.play(\"show\")
func show_message(message_text):
text = message_text
$AnimationPlayer.stop()
$AnimationPlayer.play(\"show\")
"
[sub_resource type="Animation" id="7"]
resource_name = "show"
length = 2.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_21bw6"]
_data = {
&"show": SubResource("7")
}
[node name="Editor" type="MarginContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("1_qcjp6")
script = ExtResource("1_ix08l")
[node name="BackPanel" type="Panel" parent="."]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
[node name="AutoSaveTimer" type="Timer" parent="VBoxContainer"]
wait_time = 15.0
autostart = true
[node name="TopBar" type="HBoxContainer" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 25)
layout_mode = 2
[node name="Menu" type="HBoxContainer" parent="VBoxContainer/TopBar"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VSeparator" type="VSeparator" parent="VBoxContainer/TopBar"]
layout_mode = 2
[node name="RenderCounter" parent="VBoxContainer/TopBar" instance=ExtResource("3_dljtu")]
layout_mode = 2
[node name="ProjectTabs" type="Panel" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
script = ExtResource("4_ejxk4")
metadata/_edit_layout_mode = 1
[node name="Tabs" type="TabBar" parent="VBoxContainer/ProjectTabs"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
tab_close_display_policy = 1
drag_to_rearrange_enabled = true
[node name="Layout" type="Container" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("6_jlrni")
layout = ExtResource("6_upj0v")
[node name="Tool Settings" parent="VBoxContainer/Layout" instance=ExtResource("7_8bflp")]
visible = false
layout_mode = 2
init_window = 3
[node name="Project Settings" parent="VBoxContainer/Layout" instance=ExtResource("7_8bflp")]
visible = false
layout_mode = 2
init_window = 4
[node name="Graph" parent="VBoxContainer/Layout" instance=ExtResource("7_8bflp")]
layout_mode = 2
init_window = 2
[node name="Layers Panel" parent="VBoxContainer/Layout" instance=ExtResource("7_8bflp")]
visible = false
layout_mode = 2
[node name="Layer Inspector" parent="VBoxContainer/Layout" instance=ExtResource("7_8bflp")]
visible = false
layout_mode = 2
init_window = 1
[node name="MessageLabel" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
text = "Undo/Redo action added"
script = SubResource("6")
[node name="AnimationPlayer" type="AnimationPlayer" parent="MessageLabel"]
libraries = {
&"": SubResource("AnimationLibrary_21bw6")
}
[node name="LeftCursor" type="Sprite2D" parent="."]
visible = false
[node name="AppRender" type="SubViewport" parent="."]
disable_3d = true
transparent_bg = true
snap_2d_transforms_to_pixel = true
snap_2d_vertices_to_pixel = true
physics_object_picking = true
render_target_update_mode = 4
[node name="Canvas" type="Node2D" parent="AppRender"]
script = ExtResource("7_kirsr")
[node name="AnimationPlayer" type="AnimationPlayer" parent="AppRender/Canvas"]
[connection signal="timeout" from="VBoxContainer/AutoSaveTimer" to="VBoxContainer/ProjectTabs" method="_on_auto_save_timer_timeout"]
[connection signal="active_tab_rearranged" from="VBoxContainer/ProjectTabs/Tabs" to="VBoxContainer/ProjectTabs" method="move_active_tab_to"]
[connection signal="tab_changed" from="VBoxContainer/ProjectTabs/Tabs" to="VBoxContainer/ProjectTabs" method="set_current_tab"]
[connection signal="tab_close_pressed" from="VBoxContainer/ProjectTabs/Tabs" to="VBoxContainer/ProjectTabs" method="close_tab"]