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; } }