-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathExample.tscn
More file actions
136 lines (102 loc) · 4.51 KB
/
Example.tscn
File metadata and controls
136 lines (102 loc) · 4.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
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
[gd_scene load_steps=6 format=3 uid="uid://b2suvq6rwbsk1"]
[ext_resource type="Script" path="res://addons/EasyFiles/EasyFiles.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://bou0o2ae5bwf1" path="res://addons/EasyFiles/icons/Reload.svg" id="2"]
[ext_resource type="Script" path="res://Example.gd" id="3"]
[ext_resource type="PackedScene" path="res://FileMonitorDisplay.tscn" id="4"]
[sub_resource type="GDScript" id="2"]
script/source = "extends LineEdit
func _on_clearBtn_pressed():
text = \"*\"
"
[node name="Example" type="MarginContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("3")
[node name="EasyFilesNode" type="Node" parent="."]
script = ExtResource("1")
[node name="HBox" type="HSplitContainer" parent="."]
layout_mode = 2
[node name="ControlPanel" type="VBoxContainer" parent="HBox"]
layout_mode = 2
[node name="chooseFileBtn" type="Button" parent="HBox/ControlPanel"]
layout_mode = 2
[node name="reloadbtn" type="Button" parent="HBox/ControlPanel"]
layout_mode = 2
size_flags_horizontal = 8
text = "reload"
[node name="FileSpecific" type="VBoxContainer" parent="HBox/ControlPanel"]
layout_mode = 2
[node name="Label" type="Label" parent="HBox/ControlPanel/FileSpecific"]
layout_mode = 2
text = "File Options"
[node name="fileFormatSelector" type="HBoxContainer" parent="HBox/ControlPanel/FileSpecific"]
layout_mode = 2
[node name="Label" type="Label" parent="HBox/ControlPanel/FileSpecific/fileFormatSelector"]
layout_mode = 2
text = "File Format: "
[node name="OptionButton" type="OptionButton" parent="HBox/ControlPanel/FileSpecific/fileFormatSelector"]
layout_mode = 2
[node name="savebtn" type="Button" parent="HBox/ControlPanel/FileSpecific"]
layout_mode = 2
text = "Save"
[node name="monitorbtn" type="Button" parent="HBox/ControlPanel/FileSpecific"]
layout_mode = 2
text = "Add to file monitor"
[node name="Folderspecific" type="VBoxContainer" parent="HBox/ControlPanel"]
layout_mode = 2
[node name="Label" type="Label" parent="HBox/ControlPanel/Folderspecific"]
layout_mode = 2
text = "Folder Options"
[node name="CheckBox" type="CheckBox" parent="HBox/ControlPanel/Folderspecific"]
layout_mode = 2
text = "Find files recursive"
[node name="FileFilter" type="HBoxContainer" parent="HBox/ControlPanel/Folderspecific"]
layout_mode = 2
[node name="Label" type="Label" parent="HBox/ControlPanel/Folderspecific/FileFilter"]
layout_mode = 2
text = "File filter:"
[node name="clearBtn" type="TextureButton" parent="HBox/ControlPanel/Folderspecific/FileFilter"]
layout_mode = 2
size_flags_vertical = 4
texture_normal = ExtResource("2")
stretch_mode = 5
[node name="LineEdit" type="LineEdit" parent="HBox/ControlPanel/Folderspecific/FileFilter"]
layout_mode = 2
text = "*"
script = SubResource("2")
[node name="FileMonitorDisplay" parent="HBox/ControlPanel" instance=ExtResource("4")]
layout_mode = 2
file_dialog_path = NodePath("../../../FileDialog2")
[node name="TabContainer" type="TabContainer" parent="HBox"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Edit" type="TextEdit" parent="HBox/TabContainer"]
layout_mode = 2
size_flags_horizontal = 3
draw_tabs = true
[node name="String" type="RichTextLabel" parent="HBox/TabContainer"]
visible = false
layout_mode = 2
[node name="Bytes" type="RichTextLabel" parent="HBox/TabContainer"]
visible = false
layout_mode = 2
[node name="FileDialog" type="FileDialog" parent="."]
title = "Open a File or Directory"
mode = 3
ok_button_text = "Open"
dialog_hide_on_ok = true
file_mode = 3
access = 2
root_subfolder = "addons/EasyFiles/exampleFiles"
show_hidden_files = true
[node name="FileDialog2" type="FileDialog" parent="."]
show_hidden_files = true
[connection signal="pressed" from="HBox/ControlPanel/chooseFileBtn" to="." method="_on_chooseFileBtn_pressed"]
[connection signal="pressed" from="HBox/ControlPanel/reloadbtn" to="." method="update_control_panel"]
[connection signal="pressed" from="HBox/ControlPanel/FileSpecific/savebtn" to="." method="_on_savebtn_pressed"]
[connection signal="pressed" from="HBox/ControlPanel/FileSpecific/monitorbtn" to="." method="_on_monitorbtn_pressed"]
[connection signal="pressed" from="HBox/ControlPanel/Folderspecific/FileFilter/clearBtn" to="HBox/ControlPanel/Folderspecific/FileFilter/LineEdit" method="_on_clearBtn_pressed"]
[connection signal="dir_selected" from="FileDialog" to="." method="_on_FileDialog_dir_selected"]
[connection signal="file_selected" from="FileDialog" to="." method="_on_FileDialog_file_selected"]
[connection signal="files_selected" from="FileDialog" to="." method="_on_FileDialog_files_selected"]