A bunch more resolves removed wooo

This commit is contained in:
Vera Aguilera Puerto
2021-12-08 11:37:10 +01:00
parent 4919f1db69
commit 9b9babd429
4 changed files with 14 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ namespace Content.Client.Access.UI
public class IdCardConsoleBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
public IdCardConsoleBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey)
{
@@ -22,7 +23,7 @@ namespace Content.Client.Access.UI
{
base.Open();
_window = new IdCardConsoleWindow(this, _prototypeManager) {Title = IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(Owner.Owner).EntityName};
_window = new IdCardConsoleWindow(this, _prototypeManager) {Title = _entityManager.GetComponent<MetaDataComponent>(Owner.Owner).EntityName};
_window.OnClose += Close;
_window.OpenCentered();
}