Files
tbd-station-14/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs
2021-09-19 17:56:04 +00:00

22 lines
626 B
C#

using System;
using Content.Shared.Ghost.Roles;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.Ghost.Roles.UI
{
[GenerateTypedNameReferences]
public partial class GhostRolesEntry : BoxContainer
{
public GhostRolesEntry(GhostRoleInfo info, Action<BaseButton.ButtonEventArgs> requestAction)
{
RobustXamlLoader.Load(this);
Title.SetMessage(info.Name);
Description.SetMessage(info.Description);
RequestButton.OnPressed += requestAction;
}
}
}