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 Yagich
# 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
@onready var output_label: RichTextLabel = %OutputLabel

View file

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