* XAML PlayerTab entries * Move command execution to PlayerTab * Move command logic to the AdminSystem * Clean up * Add IClientConsoleHost dependency
24 lines
695 B
C#
24 lines
695 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.Administration.UI.Tabs.PlayerTab;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public partial class PlayerTabEntry : ContainerButton
|
|
{
|
|
public EntityUid? PlayerUid;
|
|
|
|
public PlayerTabEntry(string username, string character, string antagonist, StyleBox styleBox)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
UsernameLabel.Text = username;
|
|
CharacterLabel.Text = character;
|
|
AntagonistLabel.Text = antagonist;
|
|
BackgroundColorPanel.PanelOverride = styleBox;
|
|
}
|
|
}
|