Files
crystall-punk-14/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs

26 lines
806 B
C#
Raw Normal View History

using Robust.Client.AutoGenerated;
using Robust.Client.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.Administration.UI.Tabs.PlayerTab;
[GenerateTypedNameReferences]
public sealed partial class PlayerTabEntry : ContainerButton
{
public EntityUid? PlayerUid;
2022-01-15 05:17:33 -08:00
public PlayerTabEntry(string username, string character, string job, string antagonist, StyleBox styleBox, bool connected)
{
RobustXamlLoader.Load(this);
UsernameLabel.Text = username;
if (!connected)
UsernameLabel.StyleClasses.Add("Disabled");
2022-01-15 05:17:33 -08:00
JobLabel.Text = job;
CharacterLabel.Text = character;
AntagonistLabel.Text = antagonist;
BackgroundColorPanel.PanelOverride = styleBox;
}
}