From d9d83bfbabadb58a5d060520e117c4d30ba0ff5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Wed, 17 Jan 2024 05:59:48 +0300 Subject: [PATCH] change logger renderer to be a regular control because tabcontainer adds a panelcontainer --- graph_node_renderer/logger_renderer.gd | 2 +- graph_node_renderer/logger_renderer.tscn | 40 +++++++++++------------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/graph_node_renderer/logger_renderer.gd b/graph_node_renderer/logger_renderer.gd index d17c8ab..297c06f 100644 --- a/graph_node_renderer/logger_renderer.gd +++ b/graph_node_renderer/logger_renderer.gd @@ -1,7 +1,7 @@ # (c) 2023-present Eroax # (c) 2023-present Yagich # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -extends PanelContainer +extends Control class_name LoggerRenderer @onready var output_label: RichTextLabel = %OutputLabel diff --git a/graph_node_renderer/logger_renderer.tscn b/graph_node_renderer/logger_renderer.tscn index e2c2c6e..b50dc9f 100644 --- a/graph_node_renderer/logger_renderer.tscn +++ b/graph_node_renderer/logger_renderer.tscn @@ -9,45 +9,43 @@ font_names = PackedStringArray("Monospace") font_names = PackedStringArray("Monospace") font_weight = 700 -[node name="LoggerRenderer" type="PanelContainer"] -anchors_preset = -1 -anchor_right = 0.42016 -anchor_bottom = 0.181704 +[node name="LoggerRenderer" type="Control"] +layout_mode = 3 +anchor_right = 0.441861 +anchor_bottom = 0.298988 offset_right = -0.0240021 offset_bottom = 0.255997 script = ExtResource("1_82rlk") metadata/_edit_use_anchors_ = true -[node name="MarginContainer" type="MarginContainer" parent="."] -layout_mode = 2 -theme_override_constants/margin_left = 3 -theme_override_constants/margin_top = 3 -theme_override_constants/margin_right = 3 -theme_override_constants/margin_bottom = 3 +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"] +[node name="Label" type="Label" parent="VBoxContainer"] layout_mode = 2 text = "Debug Console" -[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 -[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"] +[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 -[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/PanelContainer"] +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer/PanelContainer"] layout_mode = 2 theme_override_constants/margin_left = 3 theme_override_constants/margin_top = 3 theme_override_constants/margin_right = 3 theme_override_constants/margin_bottom = 3 -[node name="OutputLabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/MarginContainer"] +[node name="OutputLabel" type="RichTextLabel" parent="VBoxContainer/HBoxContainer/PanelContainer/MarginContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 @@ -63,17 +61,17 @@ selection_enabled = true deselect_on_focus_loss_enabled = false drag_and_drop_selection_enabled = false -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"] layout_mode = 2 alignment = 1 -[node name="CopyButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"] +[node name="CopyButton" type="Button" parent="VBoxContainer/HBoxContainer/VBoxContainer"] unique_name_in_owner = true visible = false layout_mode = 2 text = "Copy" -[node name="ClearButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"] +[node name="ClearButton" type="Button" parent="VBoxContainer/HBoxContainer/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "Clear"