Files
RobustToolbox/Robust.Client/UserInterface/CustomControls/DebugMonitorControls/DebugSystemPanel.cs
Pieter-Jan Briers be2e31ff9d Print additional runtime diagnostics on server startup.
Brought to you by "I went insane debugging something stupid my own fault for 30 minutes"
2023-12-28 02:31:34 +01:00

34 lines
951 B
C#

using Robust.Client.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Maths;
using Robust.Shared.Utility;
namespace Robust.Client.UserInterface.CustomControls.DebugMonitorControls;
internal sealed class DebugSystemPanel : PanelContainer
{
public DebugSystemPanel()
{
var contents = new Label
{
FontColorShadowOverride = Color.Black,
};
AddChild(contents);
PanelOverride = new StyleBoxFlat
{
BackgroundColor = new Color(35, 134, 37, 138),
ContentMarginLeftOverride = 5,
ContentMarginRightOverride = 5,
ContentMarginTopOverride = 5,
ContentMarginBottomOverride = 5,
};
MouseFilter = contents.MouseFilter = MouseFilterMode.Ignore;
HorizontalAlignment = HAlignment.Left;
contents.Text = string.Join('\n', RuntimeInformationPrinter.GetInformationDump());
}
}