2019-10-03 16:06:46 +02:00
|
|
|
[gd_scene load_steps=12 format=2]
|
2019-09-24 00:42:50 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://addons/file-editor/scripts/FileScene.gd" type="Script" id=1]
|
2019-10-03 16:06:46 +02:00
|
|
|
[ext_resource path="res://addons/file-editor/fonts/Roboto-Black.ttf" type="DynamicFontData" id=2]
|
2019-09-24 00:42:50 +02:00
|
|
|
|
2019-09-24 17:03:49 +02:00
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
2019-09-24 00:42:50 +02:00
|
|
|
content_margin_left = 10.0
|
|
|
|
content_margin_right = 10.0
|
|
|
|
bg_color = Color( 0.145098, 0.172549, 0.231373, 1 )
|
|
|
|
|
2019-10-03 16:06:46 +02:00
|
|
|
[sub_resource type="StyleBoxEmpty" id=9]
|
|
|
|
|
2019-09-24 00:42:50 +02:00
|
|
|
[sub_resource type="StyleBoxEmpty" id=2]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=3]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=4]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=5]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=6]
|
|
|
|
|
2019-09-24 17:03:49 +02:00
|
|
|
[sub_resource type="StyleBoxEmpty" id=7]
|
|
|
|
|
|
|
|
[sub_resource type="DynamicFont" id=8]
|
2019-10-03 16:06:46 +02:00
|
|
|
font_data = ExtResource( 2 )
|
2019-09-24 00:42:50 +02:00
|
|
|
|
|
|
|
[node name="filename" type="VBoxContainer"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_vertical = 3
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="."]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 1024.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 4.0
|
|
|
|
|
|
|
|
[node name="TopBar" type="HBoxContainer" parent="."]
|
|
|
|
margin_top = 8.0
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 1024.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 28.0
|
|
|
|
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="TopBar"]
|
|
|
|
margin_right = 4.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
|
|
|
|
[node name="FileButton" type="MenuButton" parent="TopBar"]
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_right = 51.0
|
|
|
|
margin_bottom = 20.0
|
2019-09-24 17:03:49 +02:00
|
|
|
custom_styles/hover = SubResource( 1 )
|
|
|
|
custom_styles/normal = SubResource( 1 )
|
2019-09-24 00:42:50 +02:00
|
|
|
text = "File"
|
|
|
|
flat = false
|
2019-10-03 16:06:46 +02:00
|
|
|
items = [ "Save File", null, 0, false, false, 0, 0, null, "", false, "Save file As...", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Normal Preview", null, 0, false, false, 2, 0, null, "", false, "BBCode Preview", null, 0, false, false, 3, 0, null, "", false, "Markdown Preview", null, 0, false, false, 4, 0, null, "", false, "HTML Preview", null, 0, false, false, 5, 0, null, "", false ]
|
2019-09-24 00:42:50 +02:00
|
|
|
|
|
|
|
[node name="filepath" type="Label" parent="TopBar"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 523.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_top = 3.0
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 523.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 17.0
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
|
|
|
|
[node name="close_btn" type="Button" parent="TopBar"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 996.0
|
|
|
|
margin_right = 1016.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
text = "X"
|
|
|
|
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="TopBar"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 1020.0
|
|
|
|
margin_right = 1024.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
|
|
|
|
[node name="TextEditor" type="TextEdit" parent="."]
|
|
|
|
margin_top = 32.0
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 577.0
|
2019-09-24 00:42:50 +02:00
|
|
|
size_flags_vertical = 3
|
|
|
|
syntax_highlighting = true
|
|
|
|
show_line_numbers = true
|
|
|
|
breakpoint_gutter = true
|
|
|
|
highlight_all_occurrences = true
|
|
|
|
smooth_scrolling = true
|
|
|
|
wrap_enabled = true
|
|
|
|
caret_blink = true
|
2019-09-24 17:03:49 +02:00
|
|
|
caret_blink_speed = 1.0
|
|
|
|
caret_moving_by_right_click = false
|
2019-09-24 00:42:50 +02:00
|
|
|
|
|
|
|
[node name="FileInfo" type="HBoxContainer" parent="."]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_top = 581.0
|
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 600.0
|
|
|
|
custom_constants/separation = 2
|
|
|
|
|
|
|
|
[node name="VSeparator4" type="VSeparator" parent="FileInfo"]
|
|
|
|
margin_right = 5.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
rect_min_size = Vector2( 5, 0 )
|
|
|
|
custom_styles/separator = SubResource( 9 )
|
|
|
|
|
|
|
|
[node name="lastmodified_icon" type="TextureRect" parent="FileInfo"]
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_right = 7.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
stretch_mode = 4
|
2019-09-24 00:42:50 +02:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="FileInfo"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 9.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_top = 2.0
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 134.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 16.0
|
|
|
|
text = "Last modified time:"
|
|
|
|
|
|
|
|
[node name="lastmodified" type="Label" parent="FileInfo"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 136.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_top = 2.0
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_right = 136.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 16.0
|
|
|
|
|
|
|
|
[node name="Readonly" type="CheckBox" parent="FileInfo"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 939.0
|
|
|
|
margin_right = 1018.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 19.0
|
|
|
|
size_flags_horizontal = 10
|
2019-09-24 17:03:49 +02:00
|
|
|
custom_styles/hover = SubResource( 2 )
|
|
|
|
custom_styles/pressed = SubResource( 3 )
|
|
|
|
custom_styles/focus = SubResource( 4 )
|
|
|
|
custom_styles/disabled = SubResource( 5 )
|
|
|
|
custom_styles/hover_pressed = SubResource( 6 )
|
|
|
|
custom_styles/normal = SubResource( 7 )
|
|
|
|
custom_fonts/font = SubResource( 8 )
|
2019-09-24 00:42:50 +02:00
|
|
|
custom_colors/font_color = Color( 0.145098, 0.172549, 0.231373, 1 )
|
|
|
|
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
|
|
|
|
text = "Can Edit"
|
|
|
|
flat = true
|
|
|
|
|
|
|
|
[node name="VSeparator3" type="VSeparator" parent="FileInfo"]
|
2019-10-03 16:06:46 +02:00
|
|
|
margin_left = 1020.0
|
|
|
|
margin_right = 1024.0
|
2019-09-24 00:42:50 +02:00
|
|
|
margin_bottom = 19.0
|
2019-10-03 16:06:46 +02:00
|
|
|
rect_min_size = Vector2( 4, 0 )
|
|
|
|
[connection signal="text_changed" from="TextEditor" to="." method="_on_TextEditor_text_changed"]
|