Cleaner BoundUserInterfaces (#17736)
This commit is contained in:
@@ -7,9 +7,10 @@ namespace Content.Client.HealthAnalyzer.UI
|
||||
[UsedImplicitly]
|
||||
public sealed class HealthAnalyzerBoundUserInterface : BoundUserInterface
|
||||
{
|
||||
[ViewVariables]
|
||||
private HealthAnalyzerWindow? _window;
|
||||
|
||||
public HealthAnalyzerBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey)
|
||||
public HealthAnalyzerBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -18,7 +19,7 @@ namespace Content.Client.HealthAnalyzer.UI
|
||||
base.Open();
|
||||
_window = new HealthAnalyzerWindow
|
||||
{
|
||||
Title = IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(Owner.Owner).EntityName,
|
||||
Title = EntMan.GetComponent<MetaDataComponent>(Owner).EntityName,
|
||||
};
|
||||
_window.OnClose += Close;
|
||||
_window.OpenCentered();
|
||||
|
||||
Reference in New Issue
Block a user