Files
tbd-station-14/Content.Shared/Fax/AdminFaxEui.cs
dffdff2423 e8b3042a38 Add an option to the admin fax menu to lock papers such that they can't be edited by cybersun pens (#28972)
* Add option to adminfax for locking papers.

* Replace dummy control with margin
2024-07-10 15:28:36 +10:00

73 lines
1.7 KiB
C#

using Content.Shared.Eui;
using Robust.Shared.Serialization;
namespace Content.Shared.Fax;
[Serializable, NetSerializable]
public sealed class AdminFaxEuiState : EuiStateBase
{
public List<AdminFaxEntry> Entries { get; }
public AdminFaxEuiState(List<AdminFaxEntry> entries)
{
Entries = entries;
}
}
[Serializable, NetSerializable]
public sealed class AdminFaxEntry
{
public NetEntity Uid { get; }
public string Name { get; }
public string Address { get; }
public AdminFaxEntry(NetEntity uid, string name, string address)
{
Uid = uid;
Name = name;
Address = address;
}
}
public static class AdminFaxEuiMsg
{
[Serializable, NetSerializable]
public sealed class Close : EuiMessageBase
{
}
[Serializable, NetSerializable]
public sealed class Follow : EuiMessageBase
{
public NetEntity TargetFax { get; }
public Follow(NetEntity targetFax)
{
TargetFax = targetFax;
}
}
[Serializable, NetSerializable]
public sealed class Send : EuiMessageBase
{
public NetEntity Target { get; }
public string Title { get; }
public string From { get; }
public string Content { get; }
public string StampState { get; }
public Color StampColor { get; }
public bool Locked { get; }
public Send(NetEntity target, string title, string from, string content, string stamp, Color stampColor, bool locked)
{
Target = target;
Title = title;
From = from;
Content = content;
StampState = stamp;
StampColor = stampColor;
Locked = locked;
}
}
}