2021-04-11 17:43:53 -05:00
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.HUD
|
2021-04-11 17:43:53 -05:00
|
|
|
|
{
|
|
|
|
|
|
[Prototype("hudTheme")]
|
2023-12-23 01:32:56 -05:00
|
|
|
|
public sealed partial class HudThemePrototype : IPrototype, IComparable<HudThemePrototype>
|
2021-04-11 17:43:53 -05:00
|
|
|
|
{
|
2021-05-04 15:37:16 +02:00
|
|
|
|
[DataField("name", required: true)]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string Name { get; private set; } = string.Empty;
|
2021-04-11 17:43:53 -05:00
|
|
|
|
|
2023-01-19 03:56:45 +01:00
|
|
|
|
[IdDataField]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string ID { get; private set; } = string.Empty;
|
2021-04-11 17:43:53 -05:00
|
|
|
|
|
2021-05-04 15:37:16 +02:00
|
|
|
|
[DataField("path", required: true)]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string Path { get; private set; } = string.Empty;
|
2023-12-23 01:32:56 -05:00
|
|
|
|
|
|
|
|
|
|
/// <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);
|
|
|
|
|
|
}
|
2021-04-11 17:43:53 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|