* starter API * network ID cards * Port more stuff from old identity * Re-implement identity representation + name updating * move * proper name returning for `IdentityName` * move everything important to server, give in to temptation * shared / server / client split sadly. move ensure to shared and spawn to server * identity update queueing + identityblocker * fixes * and just like that it's usable for admins * huge identity pass * pass dos * jesus christ * figs :D * fuck u * fix bad merge. Co-authored-by: Moony <moonheart08@users.noreply.github.com>
28 lines
911 B
C#
28 lines
911 B
C#
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;
|
|
|
|
public PlayerTabEntry(string username, string character, string identity, string job, string antagonist, StyleBox styleBox, bool connected)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
UsernameLabel.Text = username;
|
|
if (!connected)
|
|
UsernameLabel.StyleClasses.Add("Disabled");
|
|
JobLabel.Text = job;
|
|
CharacterLabel.Text = character;
|
|
if (identity != character)
|
|
CharacterLabel.Text += $" [{identity}]";
|
|
AntagonistLabel.Text = antagonist;
|
|
BackgroundColorPanel.PanelOverride = styleBox;
|
|
}
|
|
}
|