103 lines
2.7 KiB
Text
103 lines
2.7 KiB
Text
[gd_scene load_steps=2 format=3 uid="uid://g5doacuh24vb"]
|
|
|
|
[ext_resource type="Script" path="res://text_editor.gd" id="1_4xo8w"]
|
|
|
|
[node name="Text Editor" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_4xo8w")
|
|
|
|
[node name="TextEdit" type="TextEdit" parent="."]
|
|
layout_mode = 0
|
|
offset_top = 31.0
|
|
offset_right = 1152.0
|
|
offset_bottom = 648.0
|
|
placeholder_text = "Enter Text Here"
|
|
|
|
[node name="Extensions" type="OptionButton" parent="."]
|
|
layout_mode = 0
|
|
offset_right = 108.0
|
|
offset_bottom = 31.0
|
|
item_count = 22
|
|
selected = 0
|
|
popup/item_0/text = ".txt"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = ".doc"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = ".org"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = ".docx"
|
|
popup/item_3/id = 3
|
|
popup/item_4/text = ".me"
|
|
popup/item_4/id = 4
|
|
popup/item_5/text = ".readme"
|
|
popup/item_5/id = 0
|
|
popup/item_6/text = ".log"
|
|
popup/item_6/id = 6
|
|
popup/item_7/text = ".text"
|
|
popup/item_7/id = 7
|
|
popup/item_8/text = ".1st"
|
|
popup/item_8/id = 8
|
|
popup/item_9/text = ".rtf"
|
|
popup/item_9/id = 9
|
|
popup/item_10/text = "._docx"
|
|
popup/item_10/id = 10
|
|
popup/item_11/text = ".klg"
|
|
popup/item_11/id = 11
|
|
popup/item_12/text = ".strings"
|
|
popup/item_12/id = 12
|
|
popup/item_13/text = ".err"
|
|
popup/item_13/id = 13
|
|
popup/item_14/text = ".rtx"
|
|
popup/item_14/id = 14
|
|
popup/item_15/text = ".plain"
|
|
popup/item_15/id = 15
|
|
popup/item_16/text = ".ascii"
|
|
popup/item_16/id = 16
|
|
popup/item_17/text = ".del"
|
|
popup/item_17/id = 17
|
|
popup/item_18/text = ".dat"
|
|
popup/item_18/id = 18
|
|
popup/item_19/text = ".unx"
|
|
popup/item_19/id = 19
|
|
popup/item_20/text = ".wtx"
|
|
popup/item_20/id = 20
|
|
popup/item_21/text = ".md"
|
|
popup/item_21/id = 21
|
|
|
|
[node name="Pathway" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 109.0
|
|
offset_right = 984.0
|
|
offset_bottom = 31.0
|
|
text = "Pathway: "
|
|
alignment = 0
|
|
text_overrun_behavior = 3
|
|
|
|
[node name="Name" type="LineEdit" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 985.0
|
|
offset_right = 1152.0
|
|
offset_bottom = 31.0
|
|
text = "Text"
|
|
placeholder_text = "File Name"
|
|
|
|
[node name="Pathway_File" type="FileDialog" parent="."]
|
|
title = "Open a Directory"
|
|
position = Vector2i(50, 50)
|
|
size = Vector2i(774, 550)
|
|
ok_button_text = "Select Current Directory"
|
|
dialog_text = "Enter A Pathway"
|
|
dialog_hide_on_ok = true
|
|
dialog_autowrap = true
|
|
file_mode = 2
|
|
access = 2
|
|
|
|
[connection signal="text_changed" from="TextEdit" to="." method="_on_text_edit_text_changed"]
|
|
[connection signal="pressed" from="Pathway" to="." method="_on_pathway_pressed"]
|
|
[connection signal="text_changed" from="Name" to="." method="_on_name_text_changed"]
|
|
[connection signal="dir_selected" from="Pathway_File" to="." method="_on_pathway_file_dir_selected"]
|