Move HUD options to general options tab (#22884)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user