Move HUD options to general options tab (#22884)

This commit is contained in:
Nemanja
2023-12-23 01:32:56 -05:00
committed by GitHub
parent 9b18357a88
commit 06a663d3ab
7 changed files with 101 additions and 78 deletions

View File

@@ -3,7 +3,7 @@
namespace Content.Shared.HUD
{
[Prototype("hudTheme")]
public sealed partial class HudThemePrototype : IPrototype
public sealed partial class HudThemePrototype : IPrototype, IComparable<HudThemePrototype>
{
[DataField("name", required: true)]
public string Name { get; private set; } = string.Empty;
@@ -13,5 +13,16 @@ namespace Content.Shared.HUD
[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);
}
}
}