Rainbow crayon + color-selectable crayons (#7786)

This commit is contained in:
Flipp Syder
2022-04-28 05:23:45 -07:00
committed by GitHub
parent 4c9e45a480
commit 2325a7df94
9 changed files with 105 additions and 3 deletions

View File

@@ -31,6 +31,16 @@ namespace Content.Shared.Crayon
}
}
[Serializable, NetSerializable]
public sealed class CrayonColorMessage : BoundUserInterfaceMessage
{
public readonly string Color;
public CrayonColorMessage(string color)
{
Color = color;
}
}
[Serializable, NetSerializable]
public enum CrayonVisuals
{
@@ -58,11 +68,13 @@ namespace Content.Shared.Crayon
public sealed class CrayonBoundUserInterfaceState : BoundUserInterfaceState
{
public string Selected;
public bool SelectableColor;
public Color Color;
public CrayonBoundUserInterfaceState(string selected, Color color)
public CrayonBoundUserInterfaceState(string selected, bool selectableColor, Color color)
{
Selected = selected;
SelectableColor = selectableColor;
Color = color;
}
}