28 lines
709 B
C#
28 lines
709 B
C#
using Content.Client.Message;
|
|
using Content.Shared.Research.Prototypes;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Client.MassMedia.Ui;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class MiniArticleCardControl : Control
|
|
{
|
|
public Action? OnDeletePressed;
|
|
public int ArtcileNum;
|
|
|
|
public MiniArticleCardControl(string name, string author)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
Name.Text = name;
|
|
Author.SetMarkup(author);
|
|
|
|
Delete.OnPressed += _ => OnDeletePressed?.Invoke();
|
|
}
|
|
}
|