diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:02:27 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:24 +0200 |
| commit | 0e93e05427b045088a8f5257cee3c1a3a54e7888 (patch) | |
| tree | 609b7aef21a5e3a0e6ba4c2e21c2f52d3fa73702 /Scenes/Terminal | |
| parent | 5aef5f2804e6c32d93174719bc66eec98ae62a46 (diff) | |
| download | texty-0e93e05427b045088a8f5257cee3c1a3a54e7888.tar.xz texty-0e93e05427b045088a8f5257cee3c1a3a54e7888.zip | |
scenes: finish Godot 4 upgrades
Diffstat (limited to 'Scenes/Terminal')
| -rw-r--r-- | Scenes/Terminal/ButtonBlock.tscn | 23 | ||||
| -rw-r--r-- | Scenes/Terminal/InputArea.tscn | 28 | ||||
| -rw-r--r-- | Scenes/Terminal/MenuScreen.tscn | 36 | ||||
| -rw-r--r-- | Scenes/Terminal/OutputArea.tscn | 17 | ||||
| -rw-r--r-- | Scenes/Terminal/OutputBlock.tscn | 13 | ||||
| -rw-r--r-- | Scenes/Terminal/Screen.tscn | 30 | ||||
| -rw-r--r-- | Scenes/Terminal/StatusArea.tscn | 20 |
7 files changed, 94 insertions, 73 deletions
diff --git a/Scenes/Terminal/ButtonBlock.tscn b/Scenes/Terminal/ButtonBlock.tscn index 6982d3d..d4fe66d 100644 --- a/Scenes/Terminal/ButtonBlock.tscn +++ b/Scenes/Terminal/ButtonBlock.tscn @@ -1,20 +1,25 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=2 format=3 uid="uid://bh5vxp7oki3cr"] -[ext_resource path="res://Scripts/Terminal/ButtonBlock.cs" type="Script" id=1] +[ext_resource type="Script" path="res://Scripts/Terminal/ButtonBlock.cs" id="1"] [node name="ButtonBlock" type="MarginContainer"] +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -custom_constants/offset_right = 200 -custom_constants/offset_left = 200 -script = ExtResource( 1 ) +theme_override_constants/margin_left = 256 +theme_override_constants/margin_right = 256 +script = ExtResource("1") [node name="Buttons" type="VBoxContainer" parent="."] unique_name_in_owner = true -offset_left = 200.0 -offset_right = 600.0 -offset_bottom = 600.0 -custom_constants/separation = 0 +layout_mode = 2 +offset_left = 256.0 +offset_top = 324.0 +offset_right = 896.0 +offset_bottom = 324.0 +size_flags_vertical = 4 alignment = 1 diff --git a/Scenes/Terminal/InputArea.tscn b/Scenes/Terminal/InputArea.tscn index 54c514e..5a21790 100644 --- a/Scenes/Terminal/InputArea.tscn +++ b/Scenes/Terminal/InputArea.tscn @@ -1,27 +1,37 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=2 format=3 uid="uid://b886lame7u8c8"] -[ext_resource path="res://Scripts/Terminal/InputArea.cs" type="Script" id=1] +[ext_resource type="Script" path="res://Scripts/Terminal/InputArea.cs" id="1"] [node name="InputArea" type="HBoxContainer"] -offset_right = 640.0 +anchors_preset = 10 +anchor_right = 1.0 offset_bottom = 25.0 -script = ExtResource( 1 ) +grow_horizontal = 2 +script = ExtResource("1") [node name="PromptLabel" type="Label" parent="."] unique_name_in_owner = true +layout_mode = 2 offset_right = 20.0 -offset_bottom = 25.0 -theme_type_variation = "InvertedLabel" +offset_bottom = 28.0 +size_flags_horizontal = 0 +theme_type_variation = &"InvertedLabel" text = "?>" [node name="TextInput" type="LineEdit" parent="."] unique_name_in_owner = true -offset_left = 28.0 -offset_right = 640.0 -offset_bottom = 25.0 +layout_mode = 2 +offset_left = 24.0 +offset_top = 1.0 +offset_right = 1152.0 +offset_bottom = 26.0 size_flags_horizontal = 3 +size_flags_vertical = 4 context_menu_enabled = false selecting_enabled = false +flat = true caret_blink = true +caret_blink_interval = 0.5 +caret_force_displayed = true [connection signal="text_submitted" from="TextInput" to="." method="OnTextEntered"] diff --git a/Scenes/Terminal/MenuScreen.tscn b/Scenes/Terminal/MenuScreen.tscn index 92387de..11fd4bf 100644 --- a/Scenes/Terminal/MenuScreen.tscn +++ b/Scenes/Terminal/MenuScreen.tscn @@ -1,28 +1,22 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=4 format=3 uid="uid://bhu0kaqbhdr74"] -[ext_resource path="res://Scenes/Terminal/Screen.tscn" type="PackedScene" id=1] -[ext_resource path="res://Scenes/Terminal/StatusArea.tscn" type="PackedScene" id=2] -[ext_resource path="res://Scripts/Terminal/MenuScreen.cs" type="Script" id=3] +[ext_resource type="PackedScene" uid="uid://bp8kjovrt7gxk" path="res://Scenes/Terminal/Screen.tscn" id="1"] +[ext_resource type="PackedScene" uid="uid://bdpejpul8aruh" path="res://Scenes/Terminal/StatusArea.tscn" id="2"] +[ext_resource type="Script" path="res://Scripts/Terminal/MenuScreen.cs" id="3"] -[node name="MenuScreen" instance=ExtResource( 1 )] -script = ExtResource( 3 ) +[node name="MenuScreen" instance=ExtResource("1")] +script = ExtResource("3") +Title = "" -[node name="TopBar" parent="ScreenContainer" index="0"] -offset_right = 800.0 -offset_bottom = 27.0 +[node name="ScreenContainer" parent="." index="0"] +grow_horizontal = 2 +grow_vertical = 2 -[node name="TitleArea" parent="ScreenContainer/TopBar" index="0" instance=ExtResource( 2 )] +[node name="TitleArea" parent="ScreenContainer/TopBar" index="0" instance=ExtResource("2")] unique_name_in_owner = true +layout_mode = 2 +anchors_preset = 0 +anchor_right = 0.0 offset_left = 8.0 -offset_right = 792.0 +offset_right = 1144.0 Title = "[center][/center]" - -[node name="Content" parent="ScreenContainer" index="1"] -offset_top = 27.0 -offset_right = 800.0 -offset_bottom = 600.0 - -[node name="BottomBar" parent="ScreenContainer" index="2"] -offset_top = 600.0 -offset_right = 800.0 -offset_bottom = 600.0 diff --git a/Scenes/Terminal/OutputArea.tscn b/Scenes/Terminal/OutputArea.tscn index 4f41b9a..36a0320 100644 --- a/Scenes/Terminal/OutputArea.tscn +++ b/Scenes/Terminal/OutputArea.tscn @@ -1,18 +1,19 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=3 format=3 uid="uid://b1pnf82wkug43"] -[ext_resource path="res://Scripts/Terminal/OutputArea.cs" type="Script" id=1] +[ext_resource type="Script" path="res://Scripts/Terminal/OutputArea.cs" id="1"] +[ext_resource type="PackedScene" uid="uid://dluo5vs75j467" path="res://Scenes/Terminal/OutputBlock.tscn" id="2_u5yup"] [node name="OutputArea" type="ScrollContainer"] +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -mouse_filter = 1 -scroll_horizontal_enabled = false -script = ExtResource( 1 ) +script = ExtResource("1") +OutputBlockScene = ExtResource("2_u5yup") [node name="LineContainer" type="VBoxContainer" parent="."] unique_name_in_owner = true -offset_right = 640.0 -offset_bottom = 480.0 +layout_mode = 2 +offset_right = 1152.0 +offset_bottom = 648.0 size_flags_horizontal = 3 size_flags_vertical = 3 -custom_constants/separation = 0 diff --git a/Scenes/Terminal/OutputBlock.tscn b/Scenes/Terminal/OutputBlock.tscn index 3613aed..a44d22d 100644 --- a/Scenes/Terminal/OutputBlock.tscn +++ b/Scenes/Terminal/OutputBlock.tscn @@ -1,17 +1,18 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=2 format=3 uid="uid://dluo5vs75j467"] -[ext_resource path="res://Scripts/Terminal/OutputBlock.cs" type="Script" id=1] +[ext_resource type="Script" path="res://Scripts/Terminal/OutputBlock.cs" id="1"] [node name="OutputBlock" type="MarginContainer"] +anchors_preset = 10 anchor_right = 1.0 size_flags_horizontal = 3 -script = ExtResource( 1 ) +script = ExtResource("1") +Content = "" [node name="ContentLabel" type="RichTextLabel" parent="."] unique_name_in_owner = true -offset_right = 640.0 -offset_bottom = 27.0 -size_flags_horizontal = 3 +layout_mode = 2 +offset_right = 1152.0 bbcode_enabled = true fit_content_height = true scroll_active = false diff --git a/Scenes/Terminal/Screen.tscn b/Scenes/Terminal/Screen.tscn index 7b853b4..920dfb0 100644 --- a/Scenes/Terminal/Screen.tscn +++ b/Scenes/Terminal/Screen.tscn @@ -1,25 +1,35 @@ -[gd_scene format=2] +[gd_scene format=3 uid="uid://bp8kjovrt7gxk"] [node name="Screen" type="Control"] +layout_mode = 3 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 [node name="ScreenContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -custom_constants/separation = 0 [node name="TopBar" type="PanelContainer" parent="ScreenContainer"] -offset_right = 640.0 -theme_type_variation = "InvertedPanelContainer" +layout_mode = 2 +offset_right = 1152.0 +size_flags_vertical = 0 +theme_type_variation = &"InvertedPanelContainer" [node name="Content" type="PanelContainer" parent="ScreenContainer"] -offset_right = 640.0 -offset_bottom = 480.0 +layout_mode = 2 +offset_right = 1152.0 +offset_bottom = 648.0 size_flags_vertical = 3 [node name="BottomBar" type="PanelContainer" parent="ScreenContainer"] -offset_top = 480.0 -offset_right = 640.0 -offset_bottom = 480.0 -theme_type_variation = "InvertedPanelContainer" +layout_mode = 2 +offset_top = 648.0 +offset_right = 1152.0 +offset_bottom = 648.0 +size_flags_vertical = 8 +theme_type_variation = &"InvertedPanelContainer" diff --git a/Scenes/Terminal/StatusArea.tscn b/Scenes/Terminal/StatusArea.tscn index 1a9e4af..9aa82a1 100644 --- a/Scenes/Terminal/StatusArea.tscn +++ b/Scenes/Terminal/StatusArea.tscn @@ -1,19 +1,19 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=2 format=3 uid="uid://bdpejpul8aruh"] -[ext_resource path="res://Scripts/Terminal/StatusArea.cs" type="Script" id=1] +[ext_resource type="Script" path="res://Scripts/Terminal/StatusArea.cs" id="1"] [node name="StatusArea" type="HBoxContainer"] -offset_right = 640.0 -offset_bottom = 27.0 -script = ExtResource( 1 ) +anchors_preset = 10 +anchor_right = 1.0 +grow_horizontal = 2 +script = ExtResource("1") +Title = "" [node name="TitleLabel" type="RichTextLabel" parent="."] unique_name_in_owner = true -offset_right = 640.0 -offset_bottom = 27.0 +layout_mode = 2 +offset_right = 1152.0 size_flags_horizontal = 3 -theme_type_variation = "InvertedRichTextLabel" +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 |
