@@ -1,16 +0,0 @@
|
||||
using Content.Shared.Administration.Logs;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class AdminLogImpactButton : Button
|
||||
{
|
||||
public AdminLogImpactButton(LogImpact impact)
|
||||
{
|
||||
Impact = impact;
|
||||
ToggleMode = true;
|
||||
Pressed = true;
|
||||
}
|
||||
|
||||
public LogImpact Impact { get; }
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
using Content.Shared.Administration.Logs;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class AdminLogLabel : RichTextLabel
|
||||
{
|
||||
public AdminLogLabel(ref SharedAdminLog log, HSeparator separator)
|
||||
{
|
||||
Log = log;
|
||||
Separator = separator;
|
||||
|
||||
SetMessage(log.Message);
|
||||
OnVisibilityChanged += VisibilityChanged;
|
||||
}
|
||||
|
||||
public SharedAdminLog Log { get; }
|
||||
|
||||
public HSeparator Separator { get; }
|
||||
|
||||
private void VisibilityChanged(Control control)
|
||||
{
|
||||
Separator.Visible = Visible;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
|
||||
OnVisibilityChanged -= VisibilityChanged;
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
using System;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class AdminLogPlayerButton : Button
|
||||
{
|
||||
public AdminLogPlayerButton(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
ClipText = true;
|
||||
ToggleMode = true;
|
||||
Pressed = true;
|
||||
}
|
||||
|
||||
public Guid Id { get; }
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using Content.Shared.Administration.Logs;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class AdminLogTypeButton : Button
|
||||
{
|
||||
public AdminLogTypeButton(LogType type)
|
||||
{
|
||||
Type = type;
|
||||
ToggleMode = true;
|
||||
Pressed = true;
|
||||
}
|
||||
|
||||
public LogType Type { get; }
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class HSeparator : Control
|
||||
{
|
||||
private static readonly Color SeparatorColor = Color.FromHex("#3D4059");
|
||||
|
||||
public HSeparator(Color color)
|
||||
{
|
||||
AddChild(new PanelContainer
|
||||
{
|
||||
PanelOverride = new StyleBoxFlat
|
||||
{
|
||||
BackgroundColor = color,
|
||||
ContentMarginBottomOverride = 2, ContentMarginLeftOverride = 2
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public HSeparator() : this(SeparatorColor) { }
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.Administration.UI.CustomControls;
|
||||
|
||||
public class VSeparator : PanelContainer
|
||||
{
|
||||
private static readonly Color SeparatorColor = Color.FromHex("#3D4059");
|
||||
|
||||
public VSeparator(Color color)
|
||||
{
|
||||
MinSize = (2, 5);
|
||||
|
||||
AddChild(new PanelContainer
|
||||
{
|
||||
PanelOverride = new StyleBoxFlat
|
||||
{
|
||||
BackgroundColor = color
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public VSeparator() : this(SeparatorColor) { }
|
||||
}
|
||||
Reference in New Issue
Block a user