From 2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Sun, 4 Sep 2022 15:43:12 +0200 Subject: game: adapt scripts to new design --- Scenes/Game/Input.tscn | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Scenes/Game/Input.tscn') 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"] -- cgit v1.2.3