summaryrefslogtreecommitdiff
path: root/Scenes/Texty.tscn
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-09-04 11:42:20 +0200
committerSophia Pearson <codergal89@gmail.com>2022-09-04 11:42:20 +0200
commit461fec003cdf3144b2e0d97392edd090f457a555 (patch)
tree83e5e40b3c1a8f8e118079f08ee7218849a8a825 /Scenes/Texty.tscn
parent5002381a84d62178518c484f4d17b8b57ba955e3 (diff)
downloadtexty-461fec003cdf3144b2e0d97392edd090f457a555.tar.xz
texty-461fec003cdf3144b2e0d97392edd090f457a555.zip
gui: create basic layout
Diffstat (limited to 'Scenes/Texty.tscn')
-rw-r--r--Scenes/Texty.tscn87
1 files changed, 85 insertions, 2 deletions
diff --git a/Scenes/Texty.tscn b/Scenes/Texty.tscn
index 1fb7b91..b40b2da 100644
--- a/Scenes/Texty.tscn
+++ b/Scenes/Texty.tscn
@@ -1,10 +1,93 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=3 format=2]
+[ext_resource path="res://Assets/Shaders/crt_shader.tres" type="Material" id=1]
[ext_resource path="res://Scripts/Texty.cs" type="Script" id=3]
[node name="Texty" type="Node"]
script = ExtResource( 3 )
-[node name="VBoxContainer" type="VBoxContainer" parent="."]
+[node name="Terminal" type="CanvasLayer" parent="."]
+
+[node name="Game" type="VBoxContainer" parent="Terminal"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+
+[node name="StatusLine" type="PanelContainer" parent="Terminal/Game"]
+margin_right = 640.0
+margin_bottom = 53.0
+
+[node name="Container" type="HBoxContainer" parent="Terminal/Game/StatusLine"]
+margin_left = 14.0
+margin_top = 14.0
+margin_right = 626.0
+margin_bottom = 39.0
+size_flags_horizontal = 3
+
+[node name="Title" type="Label" parent="Terminal/Game/StatusLine/Container"]
+margin_right = 612.0
+margin_bottom = 25.0
+size_flags_horizontal = 3
+size_flags_vertical = 6
+text = "Adventure Title"
+max_lines_visible = 1
+
+[node name="Output" type="PanelContainer" parent="Terminal/Game"]
+margin_top = 61.0
+margin_right = 640.0
+margin_bottom = 399.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Container" type="ScrollContainer" parent="Terminal/Game/Output"]
+margin_left = 14.0
+margin_top = 14.0
+margin_right = 626.0
+margin_bottom = 324.0
+mouse_filter = 1
+size_flags_horizontal = 3
+size_flags_vertical = 3
+scroll_horizontal_enabled = false
+
+[node name="Lines" type="VBoxContainer" parent="Terminal/Game/Output/Container"]
+margin_right = 612.0
+margin_bottom = 27.0
+size_flags_horizontal = 3
+
+[node name="RichTextLabel" type="RichTextLabel" parent="Terminal/Game/Output/Container/Lines"]
+margin_right = 612.0
+margin_bottom = 27.0
+text = "This is where the output goes"
+fit_content_height = true
+
+[node name="Input" type="PanelContainer" parent="Terminal/Game"]
+margin_top = 407.0
+margin_right = 640.0
+margin_bottom = 480.0
+
+[node name="Container" type="HBoxContainer" parent="Terminal/Game/Input"]
+margin_left = 14.0
+margin_top = 14.0
+margin_right = 626.0
+margin_bottom = 59.0
+
+[node name="Prompt" type="Label" parent="Terminal/Game/Input/Container"]
+margin_top = 10.0
+margin_right = 20.0
+margin_bottom = 35.0
+text = "?>"
+
+[node name="Text" type="LineEdit" parent="Terminal/Game/Input/Container"]
+margin_left = 28.0
+margin_right = 612.0
+margin_bottom = 45.0
+size_flags_horizontal = 3
+placeholder_text = "Command Input"
+
+[node name="Screen" type="CanvasLayer" parent="."]
+
+[node name="Shader" type="ColorRect" parent="Screen"]
+material = ExtResource( 1 )
anchor_right = 1.0
anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3