Re-organize all projects (#4166)
This commit is contained in:
25
Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs
Normal file
25
Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Content.Shared.Ghost.Roles;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
|
||||
namespace Content.Client.Ghost.Roles.UI
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class GhostRolesWindow : SS14Window
|
||||
{
|
||||
public event Action<uint>? RoleRequested;
|
||||
|
||||
public void ClearEntries()
|
||||
{
|
||||
EntryContainer.DisposeAllChildren();
|
||||
NoRolesMessage.Visible = true;
|
||||
}
|
||||
|
||||
public void AddEntry(GhostRoleInfo info)
|
||||
{
|
||||
NoRolesMessage.Visible = false;
|
||||
EntryContainer.AddChild(new GhostRolesEntry(info, _ => RoleRequested?.Invoke(info.Identifier)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user