* Add Console, PDA news tab, and ringstone popup * Add English localization * Add mass-media console board to Advanced Entertainment resrarch * Fix misprint * Deleting unused libraries * Fix round restart problem * Fixing restart problem * Just another fix * Сode optimization * Code optimization * Convert News read tab to cartridge Convert the News read tab into a cartridge, and fix a couple of bugs * Just another fix * Some updates * More fixing!! Fix cooldown, add author label to read menu * Again, fix cooldown bug * Some minor changes * Revert "Some minor changes" This reverts commit 470c8d727629ac79994f70e56162adae8659e944. * Some minor updates
33 lines
889 B
C#
33 lines
889 B
C#
using Robust.Shared.Serialization;
|
|
using Content.Shared.MassMedia.Systems;
|
|
|
|
namespace Content.Shared.CartridgeLoader.Cartridges;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class NewsReadBoundUserInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public NewsArticle Article;
|
|
public int TargetNum;
|
|
public int TotalNum;
|
|
public bool NotificationOn;
|
|
|
|
public NewsReadBoundUserInterfaceState(NewsArticle article, int targetNum, int totalNum, bool notificationOn)
|
|
{
|
|
Article = article;
|
|
TargetNum = targetNum;
|
|
TotalNum = totalNum;
|
|
NotificationOn = notificationOn;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class NewsReadEmptyBoundUserInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public bool NotificationOn;
|
|
|
|
public NewsReadEmptyBoundUserInterfaceState(bool notificationOn)
|
|
{
|
|
NotificationOn = notificationOn;
|
|
}
|
|
}
|