-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tscn925536287.tmp
More file actions
84 lines (71 loc) · 3.51 KB
/
Copy pathmain.tscn925536287.tmp
File metadata and controls
84 lines (71 loc) · 3.51 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
[gd_scene load_steps=7 format=3 uid="uid://6yuk1qnvfge0"]
[ext_resource type="Theme" uid="uid://bgr3x6jwhynme" path="res://themes/dark_theme.tres" id="1_7tyyd"]
[ext_resource type="Script" uid="uid://hatdcu6h5jfl" path="res://main.gd" id="1_ip5id"]
[ext_resource type="PackedScene" uid="uid://cuf8vatop611e" path="res://file manager/file_manager.tscn" id="2_abvjp"]
[ext_resource type="PackedScene" uid="uid://coo8e5vjcprxg" path="res://learning/learning.tscn" id="3_ktrdd"]
[ext_resource type="Texture2D" uid="uid://syym5i27ajxj" path="res://assets/images/save_icon.png" id="5_0n1y7"]
[ext_resource type="Texture2D" uid="uid://daxxcyqsadxn0" path="res://assets/images/switch.png" id="5_c45ke"]
[node name="Main" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_7tyyd")
script = ExtResource("1_ip5id")
[node name="SaveTimer" type="Timer" parent="."]
wait_time = 5.0
autostart = true
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 5.0
offset_top = 5.0
offset_right = -5.0
offset_bottom = -5.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="FileManager" parent="MarginContainer/VBoxContainer" instance=ExtResource("2_abvjp")]
layout_mode = 2
[node name="Learning" parent="MarginContainer/VBoxContainer" node_paths=PackedStringArray("file_manager") instance=ExtResource("3_ktrdd")]
visible = false
layout_mode = 2
file_manager = NodePath("../FileManager")
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 25)
layout_mode = 2
size_flags_vertical = 10
size_flags_stretch_ratio = 0.0
[node name="SaveButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
text = "Save"
icon = ExtResource("5_0n1y7")
[node name="NewFileButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
size_flags_horizontal = 0
text = "New"
[node name="OpenFileButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
size_flags_horizontal = 0
text = "Open"
[node name="SwitchModeButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
size_flags_horizontal = 10
text = "Switch"
icon = ExtResource("5_c45ke")
[connection signal="timeout" from="SaveTimer" to="." method="_on_save_timer_timeout"]
[connection signal="files_changed" from="MarginContainer/VBoxContainer/FileManager" to="." method="_on_file_manager_files_changed"]
[connection signal="files_changed" from="MarginContainer/VBoxContainer/FileManager" to="MarginContainer/VBoxContainer/Learning" method="_on_file_manager_files_changed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/SaveButton" to="." method="_on_save_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/NewFileButton" to="." method="_on_new_file_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/OpenFileButton" to="." method="_on_open_file_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/SwitchModeButton" to="." method="_on_switch_mode_button_pressed"]