mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
change logger renderer to be a regular control because tabcontainer adds a panelcontainer
This commit is contained in:
parent
cfb5759227
commit
d9d83bfbab
2 changed files with 20 additions and 22 deletions
|
@ -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 PanelContainer
|
extends Control
|
||||||
class_name LoggerRenderer
|
class_name LoggerRenderer
|
||||||
|
|
||||||
@onready var output_label: RichTextLabel = %OutputLabel
|
@onready var output_label: RichTextLabel = %OutputLabel
|
||||||
|
|
|
@ -9,45 +9,43 @@ font_names = PackedStringArray("Monospace")
|
||||||
font_names = PackedStringArray("Monospace")
|
font_names = PackedStringArray("Monospace")
|
||||||
font_weight = 700
|
font_weight = 700
|
||||||
|
|
||||||
[node name="LoggerRenderer" type="PanelContainer"]
|
[node name="LoggerRenderer" type="Control"]
|
||||||
anchors_preset = -1
|
layout_mode = 3
|
||||||
anchor_right = 0.42016
|
anchor_right = 0.441861
|
||||||
anchor_bottom = 0.181704
|
anchor_bottom = 0.298988
|
||||||
offset_right = -0.0240021
|
offset_right = -0.0240021
|
||||||
offset_bottom = 0.255997
|
offset_bottom = 0.255997
|
||||||
script = ExtResource("1_82rlk")
|
script = ExtResource("1_82rlk")
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||||
layout_mode = 2
|
layout_mode = 1
|
||||||
theme_override_constants/margin_left = 3
|
anchors_preset = 15
|
||||||
theme_override_constants/margin_top = 3
|
anchor_right = 1.0
|
||||||
theme_override_constants/margin_right = 3
|
anchor_bottom = 1.0
|
||||||
theme_override_constants/margin_bottom = 3
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||||
layout_mode = 2
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Debug Console"
|
text = "Debug Console"
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
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
|
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="MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/MarginContainer"]
|
[node name="OutputLabel" type="RichTextLabel" parent="VBoxContainer/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
|
||||||
|
@ -63,17 +61,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="MarginContainer/VBoxContainer/HBoxContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
alignment = 1
|
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
|
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="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
[node name="ClearButton" type="Button" parent="VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Clear"
|
text = "Clear"
|
||||||
|
|
Loading…
Reference in a new issue