PDA UI refactor and cartridges (#11335)
* Work on cartridges * Work on PDA UI * Work on PDA UIs program list * Work on PDA UI borders * Add DeviceNetworkingComponent to the pda base prototype * Fix submodule version * Fix cartridge loader ui key * Fix pda menu xaml * Implement relaying ui messages * Finish implementing the notekeeper cartridge * Fix submodule version * Fix errors from merging master * Fix test failing * Implement setting preinstalled programs * Add some documentation to CartridgeLoaderSystem * Add more doc comments * Add localization to program names * Implement review suggestions * Fix background programs receiving events twice when active
This commit is contained in:
35
Content.Shared/CartridgeLoader/CartridgeComponent.cs
Normal file
35
Content.Shared/CartridgeLoader/CartridgeComponent.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.CartridgeLoader;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for defining values used for displaying in the program ui in yaml
|
||||
/// </summary>
|
||||
[NetworkedComponent]
|
||||
[RegisterComponent]
|
||||
public sealed class CartridgeComponent : Component
|
||||
{
|
||||
[DataField("programName", required: true)]
|
||||
public string ProgramName = "default-program-name";
|
||||
|
||||
[DataField("icon")]
|
||||
public SpriteSpecifier? Icon;
|
||||
|
||||
public InstallationStatus InstallationStatus = InstallationStatus.Cartridge;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class CartridgeComponentState : ComponentState
|
||||
{
|
||||
public InstallationStatus InstallationStatus;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum InstallationStatus
|
||||
{
|
||||
Cartridge,
|
||||
Installed,
|
||||
Readonly
|
||||
}
|
||||
Reference in New Issue
Block a user