Add BUI ctor tests (#31463)

5 lines of eaten iocmanager.injectdependencies led to this.
This commit is contained in:
metalgearsloth
2024-08-26 17:39:48 +10:00
committed by GitHub
parent dd7c395fb7
commit 2e1b486e8b
2 changed files with 64 additions and 1 deletions

View File

@@ -9,7 +9,12 @@ namespace Content.Client.UserInterface.Controls
{
public float Progress;
private readonly ProgressColorSystem _progressColor = IoCManager.Resolve<IEntityManager>().System<ProgressColorSystem>();
private readonly ProgressColorSystem _progressColor;
public ProgressTextureRect()
{
_progressColor = IoCManager.Resolve<IEntityManager>().System<ProgressColorSystem>();
}
protected override void Draw(DrawingHandleScreen handle)
{