mirror of
https://github.com/Relintai/godot-engine.file-editor.git
synced 2024-11-12 22:27:22 +01:00
145 lines
4.2 KiB
Plaintext
145 lines
4.2 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://addons/file-editor/scripts/FileScene.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/file-editor/fonts/Roboto-Black.ttf" type="DynamicFontData" id=2]
|
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
content_margin_left = 10.0
|
|
content_margin_right = 10.0
|
|
bg_color = Color( 0.145098, 0.172549, 0.231373, 1 )
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=9]
|
|
|
|
[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]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id=7]
|
|
|
|
[sub_resource type="DynamicFont" id=8]
|
|
font_data = ExtResource( 2 )
|
|
|
|
[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="."]
|
|
margin_right = 1024.0
|
|
margin_bottom = 4.0
|
|
|
|
[node name="TopBar" type="HBoxContainer" parent="."]
|
|
margin_top = 8.0
|
|
margin_right = 1024.0
|
|
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
|
|
custom_styles/hover = SubResource( 1 )
|
|
custom_styles/normal = SubResource( 1 )
|
|
text = "File"
|
|
flat = false
|
|
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 ]
|
|
|
|
[node name="filepath" type="Label" parent="TopBar"]
|
|
margin_left = 523.0
|
|
margin_top = 3.0
|
|
margin_right = 523.0
|
|
margin_bottom = 17.0
|
|
size_flags_horizontal = 6
|
|
|
|
[node name="close_btn" type="Button" parent="TopBar"]
|
|
margin_left = 996.0
|
|
margin_right = 1016.0
|
|
margin_bottom = 20.0
|
|
size_flags_horizontal = 8
|
|
text = "X"
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="TopBar"]
|
|
margin_left = 1020.0
|
|
margin_right = 1024.0
|
|
margin_bottom = 20.0
|
|
|
|
[node name="TextEditor" type="TextEdit" parent="."]
|
|
margin_top = 32.0
|
|
margin_right = 1024.0
|
|
margin_bottom = 577.0
|
|
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
|
|
caret_blink_speed = 1.0
|
|
caret_moving_by_right_click = false
|
|
|
|
[node name="FileInfo" type="HBoxContainer" parent="."]
|
|
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
|
|
|
|
[node name="Label" type="Label" parent="FileInfo"]
|
|
margin_left = 9.0
|
|
margin_top = 2.0
|
|
margin_right = 134.0
|
|
margin_bottom = 16.0
|
|
text = "Last modified time:"
|
|
|
|
[node name="lastmodified" type="Label" parent="FileInfo"]
|
|
margin_left = 136.0
|
|
margin_top = 2.0
|
|
margin_right = 136.0
|
|
margin_bottom = 16.0
|
|
|
|
[node name="Readonly" type="CheckBox" parent="FileInfo"]
|
|
margin_left = 939.0
|
|
margin_right = 1018.0
|
|
margin_bottom = 19.0
|
|
size_flags_horizontal = 10
|
|
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 )
|
|
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"]
|
|
margin_left = 1020.0
|
|
margin_right = 1024.0
|
|
margin_bottom = 19.0
|
|
rect_min_size = Vector2( 4, 0 )
|
|
[connection signal="text_changed" from="TextEditor" to="." method="_on_TextEditor_text_changed"]
|