[gd_scene load_steps=7 format=2] [ext_resource path="res://addons/file-editor/scripts/FileEditor.gd" type="Script" id=1] [ext_resource path="res://addons/file-editor/fonts/Roboto-Black.ttf" type="DynamicFontData" id=2] [sub_resource type="DynamicFont" id=6] size = 13 font_data = ExtResource( 2 ) [sub_resource type="StyleBoxFlat" id=7] content_margin_left = 10.0 content_margin_right = 10.0 bg_color = Color( 0.196078, 0.231373, 0.309804, 1 ) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_color = Color( 0.121569, 0.145098, 0.192157, 1 ) expand_margin_bottom = 1.0 [sub_resource type="StyleBoxFlat" id=8] content_margin_left = 10.0 content_margin_right = 10.0 bg_color = Color( 0.145098, 0.172549, 0.231373, 1 ) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_color = Color( 0.121569, 0.145098, 0.192157, 1 ) expand_margin_bottom = 1.0 [sub_resource type="StyleBoxFlat" id=9] bg_color = Color( 0.121569, 0.145098, 0.192157, 1 ) draw_center = false border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 border_color = Color( 0.121569, 0.145098, 0.192157, 1 ) [node name="FileEditor" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 size_flags_horizontal = 3 size_flags_vertical = 3 script = ExtResource( 1 ) [node name="Container" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 6.0 margin_right = -5.0 margin_bottom = -7.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Buttons" type="HBoxContainer" parent="Container"] margin_right = 1013.0 margin_bottom = 20.0 [node name="newfile_btn" type="Button" parent="Container/Buttons"] margin_right = 110.0 margin_bottom = 20.0 text = "Create new File" flat = true [node name="openfile_btn" type="Button" parent="Container/Buttons"] margin_left = 114.0 margin_right = 188.0 margin_bottom = 20.0 text = "Open File" flat = true [node name="deletefile_btn" type="Button" parent="Container/Buttons"] margin_left = 192.0 margin_right = 274.0 margin_bottom = 20.0 text = "Delete File" flat = true [node name="version" type="Label" parent="Container/Buttons"] margin_left = 974.0 margin_top = 1.0 margin_right = 1013.0 margin_bottom = 18.0 size_flags_horizontal = 10 custom_fonts/font = SubResource( 6 ) custom_colors/font_color = Color( 0.121569, 0.145098, 0.192157, 1 ) text = "v1.2.1" align = 1 [node name="Editor" type="TabContainer" parent="Container"] visible = false margin_top = 26.0 margin_right = 1000.0 margin_bottom = 600.0 size_flags_horizontal = 3 size_flags_vertical = 11 custom_styles/tab_fg = SubResource( 7 ) custom_styles/tab_bg = SubResource( 8 ) custom_styles/panel = SubResource( 9 ) custom_colors/font_color_fg = Color( 1, 1, 1, 1 ) tab_align = 0 drag_to_rearrange_enabled = true [node name="FileList" type="FileDialog" parent="."] margin_top = 24.0 margin_right = 1024.0 margin_bottom = 600.0 size_flags_vertical = 3 popup_exclusive = true dialog_hide_on_ok = true filters = PoolStringArray( "*.txt ; Plain Text File", "*.rtf ; Rich Text Format File", "*.log ; Log File", "*.md ; MD File", "*.doc ; WordPad Document", "*.doc ; Microsoft Word Document", "*.docm ; Word Open XML Macro-Enabled Document", "*.docx ; Microsoft Word Open XML Document", "*.bbs ; Bulletin Board System Text", "*.dat ; Data File", "*.xml ; XML File", "*.sql ; SQL database file", "*.json ; JavaScript Object Notation File", "*.html ; HyperText Markup Language" ) [node name="NewFileDialogue" type="AcceptDialog" parent="."] editor/display_folded = true margin_left = 348.254 margin_top = 232.623 margin_right = 644.254 margin_bottom = 321.623 window_title = "Create new File" [node name="VBoxContainer" type="VBoxContainer" parent="NewFileDialogue"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 margin_top = 8.0 margin_right = -8.0 margin_bottom = -36.0 [node name="Label" type="Label" parent="NewFileDialogue/VBoxContainer"] margin_right = 280.0 margin_bottom = 16.0 size_flags_vertical = 3 text = "Insert file name (no extension needed)" align = 1 valign = 1 [node name="new_filename" type="LineEdit" parent="NewFileDialogue/VBoxContainer"] margin_left = 40.0 margin_top = 20.0 margin_right = 240.0 margin_bottom = 44.0 rect_min_size = Vector2( 200, 0 ) size_flags_horizontal = 6 size_flags_vertical = 3 clear_button_enabled = true placeholder_text = "example" [node name="ConfirmationDialog" type="ConfirmationDialog" parent="."] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -323.5 margin_top = -37.5 margin_right = 323.5 margin_bottom = 37.5 window_title = "Unsaved changes" dialog_text = "There are some unsaved changes. Press \"OK\" if you want to close this tab anyway, or \"cancel\" if you want to keep on editing your file." [node name="VSeparator" type="VSeparator" parent="."] visible = false anchor_bottom = 1.0 margin_right = 24.0