Files
tbd-station-14/Content.Shared/PDA/PdaUpdateState.cs
MishaUnity e4dcdc0c6e convert News read tab to PDA Cartridge (#18368)
* 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
2023-07-28 13:59:03 -06:00

41 lines
1.2 KiB
C#

using Content.Shared.CartridgeLoader;
using Robust.Shared.Serialization;
namespace Content.Shared.PDA
{
[Serializable, NetSerializable]
public sealed class PdaUpdateState : CartridgeLoaderUiState
{
public bool FlashlightEnabled;
public bool HasPen;
public PdaIdInfoText PdaOwnerInfo;
public string? StationName;
public bool HasUplink;
public bool CanPlayMusic;
public string? Address;
public PdaUpdateState(bool flashlightEnabled, bool hasPen, PdaIdInfoText pdaOwnerInfo,
string? stationName, bool hasUplink = false,
bool canPlayMusic = false, string? address = null)
{
FlashlightEnabled = flashlightEnabled;
HasPen = hasPen;
PdaOwnerInfo = pdaOwnerInfo;
HasUplink = hasUplink;
CanPlayMusic = canPlayMusic;
StationName = stationName;
Address = address;
}
}
[Serializable, NetSerializable]
public struct PdaIdInfoText
{
public string? ActualOwnerName;
public string? IdOwner;
public string? JobTitle;
public string? StationAlertLevel;
public Color StationAlertColor;
}
}