HUD Themes (#3774)

* HUD Themes

* Prototypes

* field

* oops

* ugh

* Fixes

* Update Content.Client/UserInterface/GameHud.cs

Co-authored-by: ike709 <sparebytes@protonmail.com>
This commit is contained in:
ike709
2021-04-11 17:43:53 -05:00
committed by GitHub
parent 98c158d2b7
commit 69dbb9f654
93 changed files with 210 additions and 28 deletions

View File

@@ -190,6 +190,13 @@ namespace Content.Shared
public static readonly CVarDef<bool> LobbyMusicEnabled =
CVarDef.Create("ambience.lobbymusicenabled", true, CVar.ARCHIVE | CVar.CLIENTONLY);
/*
* HUD
*/
public static readonly CVarDef<int> HudTheme =
CVarDef.Create("hud.theme", 0, CVar.ARCHIVE | CVar.CLIENTONLY);
/*
* AI
*/

View File

@@ -0,0 +1,18 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Prototypes.HUD
{
[Prototype("hudTheme")]
public class HudThemePrototype : IPrototype
{
[field: DataField("name", required: true)]
public string Name { get; } = string.Empty;
[field: DataField("id", required: true)]
public string ID { get; } = string.Empty;
[field: DataField("path", required: true)]
public string Path { get; } = string.Empty;
}
}