From b54b2ca50a7a2ee44f83518fe07bffdcf3dc84ae Mon Sep 17 00:00:00 2001
From: Pacifist-Penguin <75931217+Pacifist-Penguin@users.noreply.github.com>
Date: Mon, 20 Mar 2023 19:59:53 +0300
Subject: [PATCH] made UI somewhat responsive

---
 main_scene.tscn | 153 +++++++++++++++++++++++++++++++-----------------
 1 file changed, 98 insertions(+), 55 deletions(-)

diff --git a/main_scene.tscn b/main_scene.tscn
index e32333d..a2942b9 100644
--- a/main_scene.tscn
+++ b/main_scene.tscn
@@ -13,11 +13,10 @@ sky_material = SubResource("ProceduralSkyMaterial_8im05")
 background_mode = 2
 sky = SubResource("Sky_q8l0m")
 
-[sub_resource type="ViewportTexture" id="ViewportTexture_nwbi4"]
+[sub_resource type="ViewportTexture" id="ViewportTexture_0u5op"]
 viewport_path = NodePath("SubViewport")
 
-[sub_resource type="LabelSettings" id="LabelSettings_4j670"]
-font_size = 42
+[sub_resource type="Theme" id="Theme_m7tsa"]
 
 [node name="Root" type="Node" node_paths=PackedStringArray("PartyCamera")]
 script = ExtResource("1_1it4g")
@@ -39,63 +38,107 @@ environment = SubResource("Environment_01c1r")
 [node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewport"]
 transform = Transform3D(0.810471, -0.450933, 0.373893, 0, 0.638284, 0.769801, -0.585778, -0.623901, 0.517311, 0, 0, 0)
 
-[node name="TextureRect" type="TextureRect" parent="."]
-anchors_preset = 9
-anchor_bottom = 1.0
-offset_right = 651.0
-grow_vertical = 2
-texture = SubResource("ViewportTexture_nwbi4")
-stretch_mode = 4
-
-[node name="Label" type="Label" parent="."]
-anchors_preset = -1
-anchor_left = 0.598
-anchor_top = 0.039
-anchor_right = 0.987
-anchor_bottom = 0.236
-offset_left = 0.103943
-offset_top = -0.272001
-offset_right = -0.0240479
-offset_bottom = 0.071991
-text = "ЗАЛУПА БЕХОЛДЕРА
-ОФФЛАЙН"
-label_settings = SubResource("LabelSettings_4j670")
-horizontal_alignment = 1
-vertical_alignment = 1
-uppercase = true
-
-[node name="Grayons" type="Sprite2D" parent="."]
-position = Vector2(735, 248)
-scale = Vector2(0.215054, 0.184039)
-texture = ExtResource("3_7asrf")
-
-[node name="Grayons2" type="Sprite2D" parent="."]
-position = Vector2(957, 270)
-scale = Vector2(0.12724, 0.210912)
-texture = ExtResource("3_7asrf")
-
-[node name="Grayons3" type="Sprite2D" parent="."]
-position = Vector2(735, 451)
-scale = Vector2(0.260753, 0.188518)
-texture = ExtResource("3_7asrf")
-
-[node name="Grayons4" type="Sprite2D" parent="."]
-position = Vector2(999, 466)
-scale = Vector2(0.291667, 0.252239)
-texture = ExtResource("3_7asrf")
-
-[node name="Log" type="TextEdit" parent="."]
-anchors_preset = -1
-anchor_top = 0.881
+[node name="Control" type="HBoxContainer" parent="."]
+anchors_preset = 15
 anchor_right = 1.0
 anchor_bottom = 1.0
-offset_left = 650.0
-offset_top = -19.888
 grow_horizontal = 2
-grow_vertical = 0
+grow_vertical = 2
 size_flags_horizontal = 3
-size_flags_vertical = 10
+size_flags_vertical = 3
+
+[node name="TextureRect" type="TextureRect" parent="Control"]
+layout_mode = 2
+size_flags_horizontal = 3
+texture = SubResource("ViewportTexture_0u5op")
+expand_mode = 5
+
+[node name="VBoxContainer" type="VBoxContainer" parent="Control"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="Label" type="Label" parent="Control/VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
+text = "Well there's some kind of label i guess
+Multine too!"
+horizontal_alignment = 1
+vertical_alignment = 1
+autowrap_mode = 3
+uppercase = true
+
+[node name="GridContainer" type="GridContainer" parent="Control/VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 4
+columns = 3
+
+[node name="TextureRect" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextureRect2" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextureRect3" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextureRect4" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextureRect5" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextureRect6" type="TextureRect" parent="Control/VBoxContainer/GridContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+theme = SubResource("Theme_m7tsa")
+texture = ExtResource("3_7asrf")
+expand_mode = 5
+stretch_mode = 5
+
+[node name="TextEdit" type="TextEdit" parent="Control/VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
+focus_mode = 0
 text = "Партия поспала, посрала и пожрала. Не обязательно в данном порядке.
+Вы услышали шорох.
+
+Партия поспала, посрала и пожрала. Не обязательно в данном порядке.
 Вы услышали шорох."
 editable = false
+selecting_enabled = false
+drag_and_drop_selection_enabled = false
+virtual_keyboard_enabled = false
+middle_mouse_paste_enabled = false
 wrap_mode = 1
+scroll_smooth = true