summaryrefslogtreecommitdiff
path: root/Scenes/InputContainer.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/InputContainer.tscn')
-rw-r--r--Scenes/InputContainer.tscn59
1 files changed, 59 insertions, 0 deletions
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"]