summaryrefslogtreecommitdiff
path: root/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes')
-rw-r--r--Scenes/Game.tscn38
-rw-r--r--Scenes/InputContainer.tscn59
-rw-r--r--Scenes/OutputContainer.tscn26
-rw-r--r--Scenes/OutputRow.tscn32
-rw-r--r--Scenes/Texty.tscn7
5 files changed, 162 insertions, 0 deletions
diff --git a/Scenes/Game.tscn b/Scenes/Game.tscn
new file mode 100644
index 0000000..5c24cf2
--- /dev/null
+++ b/Scenes/Game.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=5 format=2]
+
+[ext_resource path="res://Scenes/InputContainer.tscn" type="PackedScene" id=1]
+[ext_resource path="res://Scripts/Game.cs" type="Script" id=2]
+[ext_resource path="res://Scenes/OutputContainer.tscn" type="PackedScene" id=3]
+[ext_resource path="res://Scenes/OutputRow.tscn" type="PackedScene" id=4]
+
+[node name="Game" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+margin_left = 8.0
+margin_top = 8.0
+margin_right = -8.0
+margin_bottom = -8.0
+script = ExtResource( 2 )
+__meta__ = {
+"_edit_group_": true
+}
+OutputRowScene = ExtResource( 4 )
+
+[node name="LayoutContainer" type="VBoxContainer" parent="."]
+margin_right = 1008.0
+margin_bottom = 584.0
+custom_constants/separation = 8
+
+[node name="OutputContainer" parent="LayoutContainer" instance=ExtResource( 3 )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+margin_right = 1008.0
+margin_bottom = 535.0
+
+[node name="InputContainer" parent="LayoutContainer" instance=ExtResource( 1 )]
+anchor_right = 0.0
+margin_top = 543.0
+margin_right = 1008.0
+margin_bottom = 584.0
+
+[connection signal="InputSubmitted" from="LayoutContainer/InputContainer" to="." method="OnInputSubmitted"]
diff --git a/Scenes/InputContainer.tscn b/Scenes/InputContainer.tscn
new file mode 100644
index 0000000..bd63da5
--- /dev/null
+++ b/Scenes/InputContainer.tscn
@@ -0,0 +1,59 @@
+[gd_scene load_steps=10 format=2]
+
+[ext_resource path="res://Assets/Styles/GuiBoxHover.tres" type="StyleBox" id=1]
+[ext_resource path="res://Assets/Fonts/VT323Font24.tres" type="DynamicFont" id=2]
+[ext_resource path="res://Assets/Styles/GUIBox.tres" type="StyleBox" id=3]
+[ext_resource path="res://Assets/Styles/GuiBoxPressed.tres" type="StyleBox" id=4]
+[ext_resource path="res://Scripts/InputContainer.cs" type="Script" id=5]
+[ext_resource path="res://Assets/Styles/GUIBoxDisabled.tres" type="StyleBox" id=6]
+
+[sub_resource type="StyleBoxEmpty" id=2]
+
+[sub_resource type="InputEventAction" id=3]
+action = "ui_accept"
+
+[sub_resource type="ShortCut" id=4]
+shortcut = SubResource( 3 )
+
+[node name="InputContainer" type="HBoxContainer"]
+anchor_right = 1.0
+custom_constants/separation = 8
+script = ExtResource( 5 )
+__meta__ = {
+"_edit_group_": true
+}
+
+[node name="InputField" type="LineEdit" parent="."]
+margin_right = 940.0
+margin_bottom = 41.0
+size_flags_horizontal = 3
+custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+custom_fonts/font = ExtResource( 2 )
+custom_styles/focus = SubResource( 2 )
+custom_styles/normal = ExtResource( 3 )
+context_menu_enabled = false
+clear_button_enabled = true
+placeholder_text = "Enter a command"
+caret_blink = true
+
+[node name="SubmitButton" type="Button" parent="."]
+margin_left = 948.0
+margin_right = 1024.0
+margin_bottom = 41.0
+custom_colors/font_color_disabled = Color( 0.580392, 0.580392, 0.580392, 1 )
+custom_colors/font_color_focus = Color( 0.839216, 0.00784314, 0.439216, 1 )
+custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+custom_colors/font_color_hover = Color( 0.929412, 0.00784314, 0.486275, 1 )
+custom_colors/font_color_pressed = Color( 0.929412, 0.00784314, 0.486275, 1 )
+custom_fonts/font = ExtResource( 2 )
+custom_styles/hover = ExtResource( 1 )
+custom_styles/pressed = ExtResource( 4 )
+custom_styles/focus = ExtResource( 3 )
+custom_styles/disabled = ExtResource( 6 )
+custom_styles/normal = ExtResource( 3 )
+shortcut = SubResource( 4 )
+text = "Submit"
+
+[connection signal="text_changed" from="InputField" to="." method="OnInputChanged"]
+[connection signal="text_entered" from="InputField" to="." method="OnInputSubmitted"]
+[connection signal="pressed" from="SubmitButton" to="." method="OnInputSubmitted"]
diff --git a/Scenes/OutputContainer.tscn b/Scenes/OutputContainer.tscn
new file mode 100644
index 0000000..c058837
--- /dev/null
+++ b/Scenes/OutputContainer.tscn
@@ -0,0 +1,26 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://Assets/Styles/GUIBox.tres" type="StyleBox" id=2]
+[ext_resource path="res://Scripts/OutputContainer.cs" type="Script" id=3]
+
+[node name="OutputContainer" type="PanelContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+custom_styles/panel = ExtResource( 2 )
+script = ExtResource( 3 )
+
+[node name="ScrollContainer" type="ScrollContainer" parent="."]
+margin_left = 8.0
+margin_top = 8.0
+margin_right = 1016.0
+margin_bottom = 592.0
+follow_focus = true
+scroll_horizontal_enabled = false
+
+[node name="OutputRows" type="VBoxContainer" parent="ScrollContainer"]
+margin_right = 1008.0
+margin_bottom = 584.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/Scenes/OutputRow.tscn b/Scenes/OutputRow.tscn
new file mode 100644
index 0000000..9259e77
--- /dev/null
+++ b/Scenes/OutputRow.tscn
@@ -0,0 +1,32 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://Assets/Fonts/VT323Font24.tres" type="DynamicFont" id=1]
+[ext_resource path="res://Scripts/OutputRow.cs" type="Script" id=2]
+
+[node name="OutputRow" type="VBoxContainer"]
+margin_right = 992.0
+margin_bottom = 32.0
+size_flags_horizontal = 3
+script = ExtResource( 2 )
+__meta__ = {
+"_edit_group_": true
+}
+
+[node name="Input" type="Label" parent="."]
+margin_right = 992.0
+margin_bottom = 25.0
+size_flags_horizontal = 3
+custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+custom_fonts/font = ExtResource( 1 )
+text = "This is where the input goes"
+autowrap = true
+
+[node name="Output" type="Label" parent="." groups=["output_rows"]]
+margin_top = 29.0
+margin_right = 992.0
+margin_bottom = 54.0
+size_flags_horizontal = 3
+custom_colors/font_color = Color( 0, 0.333333, 1, 1 )
+custom_fonts/font = ExtResource( 1 )
+text = "This is where the output goes"
+autowrap = true
diff --git a/Scenes/Texty.tscn b/Scenes/Texty.tscn
new file mode 100644
index 0000000..4198184
--- /dev/null
+++ b/Scenes/Texty.tscn
@@ -0,0 +1,7 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://Scenes/Game.tscn" type="PackedScene" id=1]
+
+[node name="Texty" type="Node"]
+
+[node name="Game" parent="." instance=ExtResource( 1 )]