summaryrefslogtreecommitdiff
path: root/Scenes/InputContainer.tscn
blob: ad9a88e0679252c5ccea7efcbcd20e5b8c0e94cd (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
[gd_scene load_steps=4 format=2]

[ext_resource path="res://Scripts/InputContainer.cs" type="Script" id=5]

[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
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
shortcut = SubResource( 4 )
text = "Submit"

[connection signal="visibility_changed" from="." to="." method="OnVisibilityChanged"]
[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"]