diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 12:43:37 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 12:43:37 +0200 |
| commit | 6503e483766d3a4e1907ecd9b69e7db4e86e7cb6 (patch) | |
| tree | cde6ecde91175b99ba610dff0ae16cdb720b0280 /Scenes | |
| parent | 461fec003cdf3144b2e0d97392edd090f457a555 (diff) | |
| download | texty-6503e483766d3a4e1907ecd9b69e7db4e86e7cb6.tar.xz texty-6503e483766d3a4e1907ecd9b69e7db4e86e7cb6.zip | |
gui: set up new default theme
Diffstat (limited to 'Scenes')
| -rw-r--r-- | Scenes/Game.tscn | 83 | ||||
| -rw-r--r-- | Scenes/Texty.tscn | 79 |
2 files changed, 87 insertions, 75 deletions
diff --git a/Scenes/Game.tscn b/Scenes/Game.tscn new file mode 100644 index 0000000..c5c22e0 --- /dev/null +++ b/Scenes/Game.tscn @@ -0,0 +1,83 @@ +[gd_scene format=2] + +[node name="Game" type="VBoxContainer"] +anchor_right = 1.0 +anchor_bottom = 1.0 +custom_constants/separation = 0 + +[node name="StatusLine" type="PanelContainer" parent="."] +margin_right = 640.0 +margin_bottom = 29.0 +theme_type_variation = "InvertedPanelContainer" + +[node name="Container" type="HBoxContainer" parent="StatusLine"] +margin_left = 8.0 +margin_top = 2.0 +margin_right = 632.0 +margin_bottom = 27.0 +size_flags_horizontal = 3 + +[node name="Title" type="Label" parent="StatusLine/Container"] +margin_right = 624.0 +margin_bottom = 25.0 +size_flags_horizontal = 3 +size_flags_vertical = 6 +theme_type_variation = "InvertedLabel" +text = "Adventure Title" +max_lines_visible = 1 + +[node name="Output" type="PanelContainer" parent="."] +margin_top = 29.0 +margin_right = 640.0 +margin_bottom = 451.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="Container" type="ScrollContainer" parent="Output"] +margin_left = 8.0 +margin_top = 2.0 +margin_right = 632.0 +margin_bottom = 420.0 +mouse_filter = 1 +size_flags_horizontal = 3 +size_flags_vertical = 3 +scroll_horizontal_enabled = false + +[node name="Lines" type="VBoxContainer" parent="Output/Container"] +margin_right = 624.0 +margin_bottom = 27.0 +size_flags_horizontal = 3 + +[node name="RichTextLabel" type="RichTextLabel" parent="Output/Container/Lines"] +margin_right = 624.0 +margin_bottom = 27.0 +text = "This is where the output goes" +fit_content_height = true +scroll_active = false + +[node name="Input" type="PanelContainer" parent="."] +margin_top = 451.0 +margin_right = 640.0 +margin_bottom = 480.0 +theme_type_variation = "InvertedPanelContainer" + +[node name="Container" type="HBoxContainer" parent="Input"] +margin_left = 8.0 +margin_top = 2.0 +margin_right = 632.0 +margin_bottom = 27.0 + +[node name="Prompt" type="Label" parent="Input/Container"] +margin_right = 20.0 +margin_bottom = 25.0 +theme_type_variation = "InvertedLabel" +text = "?>" + +[node name="Text" type="LineEdit" parent="Input/Container"] +margin_left = 28.0 +margin_right = 624.0 +margin_bottom = 25.0 +size_flags_horizontal = 3 +context_menu_enabled = false +selecting_enabled = false +caret_blink = true diff --git a/Scenes/Texty.tscn b/Scenes/Texty.tscn index b40b2da..a7bdbf9 100644 --- a/Scenes/Texty.tscn +++ b/Scenes/Texty.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://Assets/Shaders/crt_shader.tres" type="Material" id=1] +[ext_resource path="res://Scenes/Game.tscn" type="PackedScene" id=2] [ext_resource path="res://Scripts/Texty.cs" type="Script" id=3] [node name="Texty" type="Node"] @@ -8,80 +9,7 @@ script = ExtResource( 3 ) [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="Game" parent="Terminal" instance=ExtResource( 2 )] [node name="Screen" type="CanvasLayer" parent="."] @@ -89,5 +17,6 @@ placeholder_text = "Command Input" material = ExtResource( 1 ) anchor_right = 1.0 anchor_bottom = 1.0 +mouse_filter = 2 size_flags_horizontal = 3 size_flags_vertical = 3 |
