2022-06-23 15:25:10 +00:00
|
|
|
[gd_scene load_steps=2 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://ServerUI.gd" type="Script" id=1]
|
|
|
|
|
|
|
|
[node name="ServerUI" type="Control"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
anchor_left = 0.0380859
|
|
|
|
anchor_top = 0.087
|
|
|
|
anchor_right = 0.961914
|
|
|
|
anchor_bottom = 0.936667
|
|
|
|
margin_top = -0.200005
|
|
|
|
custom_constants/separation = 9
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_right = 1182.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 97.0
|
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 191.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Server folder:"
|
|
|
|
|
|
|
|
[node name="ServerPathLabel" type="Label" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 195.0
|
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 448.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "/home/username/long/path/to/server"
|
|
|
|
|
|
|
|
[node name="OpenServerFolderButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 452.0
|
|
|
|
margin_right = 520.0
|
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
rect_min_size = Vector2( 0, 32 )
|
|
|
|
text = "Open..."
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 524.0
|
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 606.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Server port:"
|
|
|
|
|
|
|
|
[node name="PortSpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 610.0
|
|
|
|
margin_right = 690.0
|
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
min_value = 81.0
|
|
|
|
max_value = 8000.0
|
|
|
|
value = 3001.0
|
|
|
|
|
|
|
|
[node name="StartServerButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
2022-06-25 16:37:09 +00:00
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 694.0
|
|
|
|
margin_right = 791.0
|
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
rect_min_size = Vector2( 0, 32 )
|
|
|
|
text = "Start server"
|
|
|
|
|
|
|
|
[node name="ServerStatusLabel" type="Label" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 795.0
|
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 946.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Server is not running."
|
|
|
|
|
|
|
|
[node name="OpenBrowserButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
2022-06-29 13:53:46 +00:00
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 950.0
|
|
|
|
margin_right = 1084.0
|
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
rect_min_size = Vector2( 0, 32 )
|
|
|
|
size_flags_horizontal = 12
|
2022-06-29 13:53:46 +00:00
|
|
|
disabled = true
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Open in browser"
|
|
|
|
|
|
|
|
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 48.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 1182.0
|
|
|
|
margin_bottom = 611.0
|
|
|
|
size_flags_vertical = 3
|
|
|
|
split_offset = -263
|
|
|
|
|
|
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/HSplitContainer"]
|
|
|
|
margin_right = 322.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer2"]
|
|
|
|
margin_right = 322.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 37.0
|
2022-06-23 15:25:10 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer2/HBoxContainer2"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 10.0
|
|
|
|
margin_right = 34.0
|
|
|
|
margin_bottom = 27.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
text = "Files"
|
|
|
|
|
|
|
|
[node name="RefreshFilesButton" type="Button" parent="VBoxContainer/HSplitContainer/VBoxContainer2/HBoxContainer2"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 251.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 322.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 37.0
|
2022-06-23 15:25:10 +00:00
|
|
|
rect_min_size = Vector2( 0, 32 )
|
|
|
|
size_flags_horizontal = 10
|
|
|
|
text = "Refresh"
|
|
|
|
|
|
|
|
[node name="FileTree" type="Tree" parent="VBoxContainer/HSplitContainer/VBoxContainer2"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 41.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 322.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
allow_rmb_select = true
|
|
|
|
hide_root = true
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer"]
|
|
|
|
margin_left = 334.0
|
|
|
|
margin_right = 1182.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer"]
|
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer"]
|
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 34.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Title:"
|
|
|
|
|
|
|
|
[node name="DocTitleLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 38.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
placeholder_text = "(Optional)"
|
|
|
|
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 43.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 82.0
|
2022-06-23 15:25:10 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer2"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 11.0
|
|
|
|
margin_right = 37.0
|
|
|
|
margin_bottom = 28.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Date:"
|
|
|
|
|
|
|
|
[node name="DocDateLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer2"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_left = 41.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 39.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
placeholder_text = "(Optional)"
|
|
|
|
|
|
|
|
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 86.0
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 563.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
split_offset = 328
|
|
|
|
|
|
|
|
[node name="ContentEditContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer"]
|
2022-06-29 14:42:25 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 477.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer/ContentEditContainer"]
|
2022-06-29 14:42:25 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 17.0
|
2022-06-23 15:25:10 +00:00
|
|
|
text = "Content"
|
|
|
|
|
|
|
|
[node name="DocInputTextEdit" type="TextEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer/ContentEditContainer"]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_top = 21.0
|
2022-06-29 14:42:25 +00:00
|
|
|
margin_right = 848.0
|
2022-07-04 01:10:20 +00:00
|
|
|
margin_bottom = 477.0
|
2022-06-23 15:25:10 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
show_line_numbers = true
|
|
|
|
wrap_enabled = true
|
|
|
|
|
|
|
|
[node name="ContentPreviewContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer"]
|
2022-06-29 14:42:25 +00:00
|
|
|
visible = false
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_left = 390.0
|
|
|
|
margin_right = 848.0
|
|
|
|
margin_bottom = 514.0
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer/ContentPreviewContainer"]
|
|
|
|
margin_right = 458.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Content Preview (Not accurate!)"
|
|
|
|
|
|
|
|
[node name="ContentPreviewRichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer/ContentPreviewContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 458.0
|
|
|
|
margin_bottom = 514.0
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="ServerFolderDialog" type="FileDialog" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -482.0
|
|
|
|
margin_top = -281.0
|
|
|
|
margin_right = 482.0
|
|
|
|
margin_bottom = 281.0
|
|
|
|
window_title = "Open a Directory"
|
|
|
|
mode = 2
|
|
|
|
access = 2
|
|
|
|
|
|
|
|
[node name="FileTreeContextMenu" type="PopupMenu" parent="."]
|
|
|
|
unique_name_in_owner = true
|
2022-07-04 01:10:20 +00:00
|
|
|
visible = true
|
2022-06-23 15:25:10 +00:00
|
|
|
margin_right = 95.0
|
|
|
|
margin_bottom = 56.0
|
|
|
|
rect_min_size = Vector2( 95, 56 )
|
|
|
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false ]
|
|
|
|
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/OpenServerFolderButton" to="." method="_on_OpenServerFolderButton_pressed"]
|
2022-06-25 16:37:09 +00:00
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/StartServerButton" to="." method="_on_StartServerButton_pressed"]
|
2022-06-29 13:53:46 +00:00
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/OpenBrowserButton" to="." method="_on_OpenBrowserButton_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HSplitContainer/VBoxContainer2/HBoxContainer2/RefreshFilesButton" to="." method="_on_RefreshFilesButton_pressed"]
|
2022-06-23 15:25:10 +00:00
|
|
|
[connection signal="item_edited" from="VBoxContainer/HSplitContainer/VBoxContainer2/FileTree" to="." method="_on_FileTree_item_edited"]
|
|
|
|
[connection signal="item_rmb_selected" from="VBoxContainer/HSplitContainer/VBoxContainer2/FileTree" to="." method="_on_FileTree_item_rmb_selected"]
|
|
|
|
[connection signal="item_selected" from="VBoxContainer/HSplitContainer/VBoxContainer2/FileTree" to="." method="_on_FileTree_item_selected"]
|
|
|
|
[connection signal="text_changed" from="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer/DocTitleLineEdit" to="." method="_on_DocTitleLineEdit_text_changed"]
|
|
|
|
[connection signal="text_changed" from="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HBoxContainer2/DocDateLineEdit" to="." method="_on_DocDateLineEdit_text_changed"]
|
|
|
|
[connection signal="text_changed" from="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/VBoxContainer/HSplitContainer/ContentEditContainer/DocInputTextEdit" to="." method="_on_DocInputTextEdit_text_changed"]
|
|
|
|
[connection signal="dir_selected" from="ServerFolderDialog" to="." method="set_server_dir"]
|
2022-06-23 15:55:59 +00:00
|
|
|
[connection signal="id_pressed" from="FileTreeContextMenu" to="." method="_on_FileTreeContextMenu_id_pressed"]
|