Files
tbd-station-14/Content.Client/GameObjects/Components/Observer/GhostRoles/GhostRolesEntry.xaml.cs
2021-02-16 09:51:27 +01:00

23 lines
740 B
C#

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