summaryrefslogtreecommitdiff
path: root/Scenes/InputContainer.tscn
blob: bd63da5a8f451878b71157ffc3a1ec1aa6abcec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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"]