Files
wwdpublic/Content.Shared/HUD/HudThemePrototype.cs
Nemanja c065f42b4f Move HUD options to general options tab (#22884)
(cherry picked from commit 06a663d3ab525d0317e4f4c7803014e4afad9d79)
2024-01-22 18:24:38 +01:00

29 lines
793 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.HUD
{
[Prototype("hudTheme")]
public sealed partial class HudThemePrototype : IPrototype, IComparable<HudThemePrototype>
{
[DataField("name", required: true)]
public string Name { get; private set; } = string.Empty;
[IdDataField]
public string ID { get; private set; } = string.Empty;
[DataField("path", required: true)]
public string Path { get; private set; } = string.Empty;
/// <summary>
/// An order for the themes to be displayed in the UI
/// </summary>
[DataField]
public int Order = 0;
public int CompareTo(HudThemePrototype? other)
{
return Order.CompareTo(other?.Order);
}
}
}