diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 15:43:12 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 15:44:04 +0200 |
| commit | 2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 (patch) | |
| tree | 17f7ee50161e1de1c11c6dd14a54a11614e7de03 /Scenes/Game/Input.tscn | |
| parent | 0967a4654c9fa67b5cfc19edf3cfc075bf6bde92 (diff) | |
| download | texty-2f3abbb6f1141f15ef77ac27e431bc66bb0c7899.tar.xz texty-2f3abbb6f1141f15ef77ac27e431bc66bb0c7899.zip | |
game: adapt scripts to new design
Diffstat (limited to 'Scenes/Game/Input.tscn')
| -rw-r--r-- | Scenes/Game/Input.tscn | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Scenes/Game/Input.tscn b/Scenes/Game/Input.tscn index 7106217..627a0ac 100644 --- a/Scenes/Game/Input.tscn +++ b/Scenes/Game/Input.tscn @@ -1,10 +1,12 @@ -[gd_scene format=2] +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://Scripts/Game/Input.cs" type="Script" id=1] +[ext_resource path="res://Scripts/Game/CommandParser.cs" type="Script" id=2] [node name="Input" type="PanelContainer"] -margin_top = 451.0 -margin_right = 640.0 -margin_bottom = 480.0 +anchor_right = 1.0 theme_type_variation = "InvertedPanelContainer" +script = ExtResource( 1 ) [node name="Container" type="HBoxContainer" parent="."] margin_left = 8.0 @@ -28,3 +30,9 @@ size_flags_horizontal = 3 context_menu_enabled = false selecting_enabled = false caret_blink = true + +[node name="CommandParser" type="Node" parent="."] +unique_name_in_owner = true +script = ExtResource( 2 ) + +[connection signal="text_entered" from="Container/Text" to="." method="OnTextEntered"] |
