* Implement changes on not-cooked branch * Made it work * Fix update appearance calls * Fix extra indents, clean-up code, fix tests hopefully * Fix hammy cagecrate * Fix messing up the yml, add artifact crate specific labels back in * Visual Studio hates yml, sad * Seperate the colors for cargonia * sorry json * make label move with artifact door * Apply suggestion changes Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> * Fix remaining crate offsets, add a few for livestock and graves (why are you labeling graves) and coffin label sprites (why are you labeling coffins??) --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Labels
|
|
{
|
|
/// <summary>
|
|
/// Key representing which <see cref="PlayerBoundUserInterface"/> is currently open.
|
|
/// Useful when there are multiple UI for an object. Here it's future-proofing only.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public enum HandLabelerUiKey
|
|
{
|
|
Key,
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum PaperLabelVisuals : byte
|
|
{
|
|
Layer,
|
|
HasLabel,
|
|
LabelType
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a <see cref="HandLabelerComponent"/> state that can be sent to the client
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class HandLabelerBoundUserInterfaceState : BoundUserInterfaceState
|
|
{
|
|
public string CurrentLabel { get; }
|
|
|
|
public HandLabelerBoundUserInterfaceState(string currentLabel)
|
|
{
|
|
CurrentLabel = currentLabel;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class HandLabelerLabelChangedMessage : BoundUserInterfaceMessage
|
|
{
|
|
public string Label { get; }
|
|
|
|
public HandLabelerLabelChangedMessage(string label)
|
|
{
|
|
Label = label;
|
|
}
|
|
}
|
|
}
|