Files
tbd-station-14/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs
2022-02-19 16:56:22 -07:00

22 lines
628 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 sealed partial class GhostRolesEntry : BoxContainer
{
public GhostRolesEntry(GhostRoleInfo info, Action<BaseButton.ButtonEventArgs> requestAction)
{
RobustXamlLoader.Load(this);
Title.Text = info.Name;
Description.SetMessage(info.Description);
RequestButton.OnPressed += requestAction;
}
}
}