From 5758b6440698975578766e9c70000962fe6481ac Mon Sep 17 00:00:00 2001 From: Tojo Date: Sun, 5 Jul 2026 17:45:26 -0500 Subject: [PATCH] Line Spacing --- Robust.Client/UserInterface/Controls/OutputPanel.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Robust.Client/UserInterface/Controls/OutputPanel.cs b/Robust.Client/UserInterface/Controls/OutputPanel.cs index 3032434c58e..961b7c7850d 100644 --- a/Robust.Client/UserInterface/Controls/OutputPanel.cs +++ b/Robust.Client/UserInterface/Controls/OutputPanel.cs @@ -23,6 +23,8 @@ public partial class OutputPanel : Control public const string StylePropertyStyleBox = "stylebox"; + public float LineSpacing { get; set; } + public bool ShowScrollDownButton { get => _showScrollDownButton; @@ -43,6 +45,8 @@ public bool ShowScrollDownButton private VScrollBar _scrollBar; private Button _scrollDownButton; + + public bool ScrollFollowing { get; set; } = true; private bool _invalidOnVisible; @@ -229,7 +233,7 @@ protected internal override void Draw(DrawingHandleScreen handle) // run, and then setting RectClipContent = true to use scissor box testing to handle the controls // visibility entry.HideControls(); - entryOffset += entry.Height + lineSeparation; + entryOffset += entry.Height + lineSeparation + LineSpacing; continue; } @@ -244,7 +248,7 @@ protected internal override void Draw(DrawingHandleScreen handle) entry.Draw(_tagManager, handle, font, contentBox, entryOffset, context, UIScale); - entryOffset += entry.Height + lineSeparation; + entryOffset += entry.Height + lineSeparation + LineSpacing; } }