diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 21:52:27 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 21:52:27 +0200 |
| commit | f711d55d465bd8838dc55bde1f4a25d582a6bb6b (patch) | |
| tree | e2b5b2ac79adf23e5f2c475ce11ee1c3c6561f0b /Scenes/Game | |
| parent | 2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 (diff) | |
| download | texty-f711d55d465bd8838dc55bde1f4a25d582a6bb6b.tar.xz texty-f711d55d465bd8838dc55bde1f4a25d582a6bb6b.zip | |
tests: adjust tests to new design
Diffstat (limited to 'Scenes/Game')
| -rw-r--r-- | Scenes/Game/Game.tscn | 8 | ||||
| -rw-r--r-- | Scenes/Game/Input.tscn | 6 | ||||
| -rw-r--r-- | Scenes/Game/Output.tscn | 16 | ||||
| -rw-r--r-- | Scenes/Game/OutputBlock.tscn | 5 | ||||
| -rw-r--r-- | Scenes/Game/StatusLine.tscn | 3 |
5 files changed, 20 insertions, 18 deletions
diff --git a/Scenes/Game/Game.tscn b/Scenes/Game/Game.tscn index e51a434..7ea6324 100644 --- a/Scenes/Game/Game.tscn +++ b/Scenes/Game/Game.tscn @@ -14,9 +14,17 @@ script = ExtResource( 4 ) [node name="StatusLine" parent="." instance=ExtResource( 1 )] unique_name_in_owner = true +Title = "Adventure Title" [node name="Output" parent="." instance=ExtResource( 2 )] unique_name_in_owner = true +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 31.0 +margin_right = 640.0 +margin_bottom = 451.0 +size_flags_horizontal = 3 +size_flags_vertical = 3 OutputBlockScene = ExtResource( 5 ) [node name="Input" parent="." instance=ExtResource( 3 )] diff --git a/Scenes/Game/Input.tscn b/Scenes/Game/Input.tscn index 627a0ac..baf5315 100644 --- a/Scenes/Game/Input.tscn +++ b/Scenes/Game/Input.tscn @@ -14,14 +14,14 @@ margin_top = 2.0 margin_right = 632.0 margin_bottom = 27.0 -[node name="Prompt" type="Label" parent="Container"] +[node name="PromptLabel" type="Label" parent="Container"] unique_name_in_owner = true margin_right = 20.0 margin_bottom = 25.0 theme_type_variation = "InvertedLabel" text = "?>" -[node name="Text" type="LineEdit" parent="Container"] +[node name="TextInput" type="LineEdit" parent="Container"] unique_name_in_owner = true margin_left = 28.0 margin_right = 624.0 @@ -35,4 +35,4 @@ caret_blink = true unique_name_in_owner = true script = ExtResource( 2 ) -[connection signal="text_entered" from="Container/Text" to="." method="OnTextEntered"] +[connection signal="text_entered" from="Container/TextInput" to="." method="OnTextEntered"] diff --git a/Scenes/Game/Output.tscn b/Scenes/Game/Output.tscn index 68f36f4..70ca6c3 100644 --- a/Scenes/Game/Output.tscn +++ b/Scenes/Game/Output.tscn @@ -4,30 +4,26 @@ [ext_resource path="res://Scripts/Game/Output.cs" type="Script" id=2] [node name="Output" type="PanelContainer"] -margin_top = 31.0 -margin_right = 640.0 -margin_bottom = 451.0 -size_flags_horizontal = 3 -size_flags_vertical = 3 +anchor_right = 1.0 +anchor_bottom = 1.0 script = ExtResource( 2 ) [node name="ScrollContainer" type="ScrollContainer" parent="."] margin_left = 8.0 margin_top = 2.0 margin_right = 632.0 -margin_bottom = 418.0 +margin_bottom = 478.0 mouse_filter = 1 -size_flags_horizontal = 3 -size_flags_vertical = 3 scroll_horizontal_enabled = false [node name="LineContainer" type="VBoxContainer" parent="ScrollContainer"] unique_name_in_owner = true margin_right = 624.0 -margin_bottom = 54.0 +margin_bottom = 476.0 size_flags_horizontal = 3 +size_flags_vertical = 3 [node name="OutputBlock" parent="ScrollContainer/LineContainer" instance=ExtResource( 1 )] anchor_right = 0.0 margin_right = 624.0 -margin_bottom = 54.0 +margin_bottom = 27.0 diff --git a/Scenes/Game/OutputBlock.tscn b/Scenes/Game/OutputBlock.tscn index aa1d60f..f4fc1dd 100644 --- a/Scenes/Game/OutputBlock.tscn +++ b/Scenes/Game/OutputBlock.tscn @@ -5,12 +5,11 @@ [node name="OutputBlock" type="MarginContainer"] anchor_right = 1.0 script = ExtResource( 1 ) -Content = "This is where the output goes." [node name="ContentLabel" type="RichTextLabel" parent="."] unique_name_in_owner = true margin_right = 640.0 -margin_bottom = 54.0 -text = "This is where the output goes and it should wrap correctly if it goes beyond the screen width." +margin_bottom = 27.0 +bbcode_enabled = true fit_content_height = true scroll_active = false diff --git a/Scenes/Game/StatusLine.tscn b/Scenes/Game/StatusLine.tscn index 1392507..fc167ec 100644 --- a/Scenes/Game/StatusLine.tscn +++ b/Scenes/Game/StatusLine.tscn @@ -7,7 +7,6 @@ margin_right = 640.0 margin_bottom = 31.0 theme_type_variation = "InvertedPanelContainer" script = ExtResource( 1 ) -Title = "Adventure Title" [node name="Container" type="HBoxContainer" parent="."] margin_left = 8.0 @@ -24,6 +23,6 @@ size_flags_horizontal = 3 size_flags_vertical = 6 theme_type_variation = "InvertedRichTextLabel" bbcode_enabled = true -text = "This is where the title goes." +text = "This is where the title goes" fit_content_height = true scroll_active = false |
