mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-06-09 13:26:34 +02:00
3172ada563
* Move character preview handling into a specialized control Co-authored-by: Quantum-cross <7065792+Quantum-cross@users.noreply.github.com> * Restore job name that I accidentally removed from character picker buttons * Just resolve dependencies the standard way --------- Co-authored-by: Quantum-cross <7065792+Quantum-cross@users.noreply.github.com> Co-authored-by: Janet Blackquill <uhhadd@gmail.com>
34 lines
817 B
C#
34 lines
817 B
C#
using System.Numerics;
|
|
using Content.Client.UserInterface.Controls;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Player;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Client.Lobby.UI;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class LobbyCharacterPreviewPanel : Control
|
|
{
|
|
public Button CharacterSetupButton => CharacterSetup;
|
|
|
|
public LobbyCharacterPreviewPanel()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
IoCManager.InjectDependencies(this);
|
|
}
|
|
|
|
public void SetLoaded(bool value)
|
|
{
|
|
Loaded.Visible = value;
|
|
Unloaded.Visible = !value;
|
|
}
|
|
|
|
public void SetSummaryText(string value)
|
|
{
|
|
Summary.Text = value;
|
|
}
|
|
}
|