change logger renderer to be a vboxcontainer to prevent overflow

This commit is contained in:
Lera Elvoé 2024-01-17 09:04:52 +03:00
parent d9d83bfbab
commit 2bd4042cfe
No known key found for this signature in database
2 changed files with 15 additions and 23 deletions

View file

@ -1,7 +1,7 @@
# (c) 2023-present Eroax # (c) 2023-present Eroax
# (c) 2023-present Yagich # (c) 2023-present Yagich
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
extends Control extends VBoxContainer
class_name LoggerRenderer class_name LoggerRenderer
@onready var output_label: RichTextLabel = %OutputLabel @onready var output_label: RichTextLabel = %OutputLabel

View file

@ -9,43 +9,35 @@ font_names = PackedStringArray("Monospace")
font_names = PackedStringArray("Monospace") font_names = PackedStringArray("Monospace")
font_weight = 700 font_weight = 700
[node name="LoggerRenderer" type="Control"] [node name="LoggerRenderer" type="VBoxContainer"]
layout_mode = 3 anchors_preset = -1
anchor_right = 0.441861 anchor_right = 0.186632
anchor_bottom = 0.298988 anchor_bottom = 0.169753
offset_right = -0.0240021 grow_horizontal = 2
offset_bottom = 0.255997 grow_vertical = 2
script = ExtResource("1_82rlk") script = ExtResource("1_82rlk")
metadata/_edit_use_anchors_ = true metadata/_edit_use_anchors_ = true
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "Debug Console" text = "Debug Console"
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] [node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HBoxContainer"] [node name="PanelContainer" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer/PanelContainer"] [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/PanelContainer"]
layout_mode = 2 layout_mode = 2
theme_override_constants/margin_left = 3 theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 3 theme_override_constants/margin_top = 3
theme_override_constants/margin_right = 3 theme_override_constants/margin_right = 3
theme_override_constants/margin_bottom = 3 theme_override_constants/margin_bottom = 3
[node name="OutputLabel" type="RichTextLabel" parent="VBoxContainer/HBoxContainer/PanelContainer/MarginContainer"] [node name="OutputLabel" type="RichTextLabel" parent="HBoxContainer/PanelContainer/MarginContainer"]
unique_name_in_owner = true unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
@ -61,17 +53,17 @@ selection_enabled = true
deselect_on_focus_loss_enabled = false deselect_on_focus_loss_enabled = false
drag_and_drop_selection_enabled = false drag_and_drop_selection_enabled = false
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2 layout_mode = 2
alignment = 1 alignment = 1
[node name="CopyButton" type="Button" parent="VBoxContainer/HBoxContainer/VBoxContainer"] [node name="CopyButton" type="Button" parent="HBoxContainer/VBoxContainer"]
unique_name_in_owner = true unique_name_in_owner = true
visible = false visible = false
layout_mode = 2 layout_mode = 2
text = "Copy" text = "Copy"
[node name="ClearButton" type="Button" parent="VBoxContainer/HBoxContainer/VBoxContainer"] [node name="ClearButton" type="Button" parent="HBoxContainer/VBoxContainer"]
unique_name_in_owner = true unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
text = "Clear" text = "Clear"