From 9ba719e8d3d093f8f543a1e20031d0b184514df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= <24468819+Yagich@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:23:15 +0300 Subject: [PATCH] add initial UI --- Main.tscn | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++ project.godot | 5 ++ 2 files changed, 192 insertions(+) diff --git a/Main.tscn b/Main.tscn index ad497e0..2555f6c 100644 --- a/Main.tscn +++ b/Main.tscn @@ -6,3 +6,190 @@ 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 +__meta__ = { +"_edit_use_anchors_": true +} + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] +margin_right = 1182.0 +margin_bottom = 32.0 +alignment = 1 + +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 146.0 +margin_top = 9.0 +margin_right = 231.0 +margin_bottom = 23.0 +text = "Server folder:" + +[node name="ServerPathLabel" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 235.0 +margin_top = 9.0 +margin_right = 491.0 +margin_bottom = 23.0 +rect_min_size = Vector2( 256, 0 ) +text = "/home/username/long/path/to/server" +clip_text = true + +[node name="OpenServerFolderButton" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 495.0 +margin_right = 554.0 +margin_bottom = 32.0 +rect_min_size = Vector2( 0, 32 ) +text = "Open..." + +[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 558.0 +margin_top = 9.0 +margin_right = 632.0 +margin_bottom = 23.0 +text = "Server port:" + +[node name="SpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer"] +margin_left = 636.0 +margin_right = 710.0 +margin_bottom = 32.0 +min_value = 81.0 +max_value = 8000.0 +value = 3001.0 + +[node name="StartServerButton" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 714.0 +margin_right = 799.0 +margin_bottom = 32.0 +rect_min_size = Vector2( 0, 32 ) +text = "Start server" + +[node name="ServerStatusLabel" type="Label" parent="VBoxContainer/HBoxContainer"] +margin_left = 803.0 +margin_top = 9.0 +margin_right = 914.0 +margin_bottom = 23.0 +text = "Server is running!" + +[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer"] +margin_left = 918.0 +margin_right = 1036.0 +margin_bottom = 32.0 +rect_min_size = Vector2( 0, 32 ) +size_flags_horizontal = 12 +text = "Open in browser" + +[node name="Label" type="Label" parent="VBoxContainer"] +margin_top = 36.0 +margin_right = 34.0 +margin_bottom = 50.0 +size_flags_horizontal = 0 +text = "Files:" + +[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer"] +margin_top = 54.0 +margin_right = 1182.0 +margin_bottom = 611.0 +size_flags_vertical = 3 +split_offset = -263 + +[node name="Tree" type="Tree" parent="VBoxContainer/HSplitContainer"] +margin_right = 322.0 +margin_bottom = 557.0 +size_flags_horizontal = 3 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer"] +margin_left = 334.0 +margin_right = 1182.0 +margin_bottom = 557.0 +size_flags_horizontal = 3 + +[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer"] +margin_right = 848.0 +margin_bottom = 557.0 +size_flags_vertical = 3 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer"] +margin_right = 848.0 +margin_bottom = 557.0 + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer"] +margin_right = 848.0 +margin_bottom = 24.0 + +[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer"] +margin_top = 5.0 +margin_right = 32.0 +margin_bottom = 19.0 +text = "Title:" + +[node name="DocTitleLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer"] +margin_left = 36.0 +margin_right = 848.0 +margin_bottom = 24.0 +size_flags_horizontal = 3 +placeholder_text = "(Optional)" + +[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer"] +margin_top = 28.0 +margin_right = 848.0 +margin_bottom = 52.0 + +[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer2"] +margin_top = 5.0 +margin_right = 34.0 +margin_bottom = 19.0 +text = "Date:" + +[node name="DocDateLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer2"] +margin_left = 38.0 +margin_right = 848.0 +margin_bottom = 24.0 +size_flags_horizontal = 3 +placeholder_text = "(Optional)" + +[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer"] +margin_top = 56.0 +margin_right = 848.0 +margin_bottom = 557.0 +size_flags_vertical = 3 +split_offset = 328 + +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer"] +margin_right = 378.0 +margin_bottom = 501.0 +size_flags_vertical = 3 + +[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer"] +margin_right = 378.0 +margin_bottom = 14.0 +text = "Content" + +[node name="DocumentInputTextEdit" type="TextEdit" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer"] +margin_top = 18.0 +margin_right = 378.0 +margin_bottom = 501.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 +show_line_numbers = true +wrap_enabled = true + +[node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer"] +margin_left = 390.0 +margin_right = 848.0 +margin_bottom = 501.0 +size_flags_vertical = 3 + +[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer2"] +margin_right = 458.0 +margin_bottom = 14.0 +text = "Content Preview (Not accurate!)" + +[node name="ContentPreviewRichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer/HSplitContainer/VBoxContainer2"] +margin_top = 18.0 +margin_right = 458.0 +margin_bottom = 501.0 +size_flags_vertical = 3 diff --git a/project.godot b/project.godot index c413bbf..7eee65f 100644 --- a/project.godot +++ b/project.godot @@ -24,6 +24,11 @@ config/name="Ticle Frontend" run/main_scene="res://Main.tscn" config/icon="res://icon.png" +[display] + +window/size/width=1280 +window/size/height=720 + [editor_plugins] enabled=PoolStringArray( "res://addons/http_server/plugin.cfg" )