Make content work with UI engine changes (#10990)

This commit is contained in:
wrexbe
2022-09-04 16:17:05 -07:00
committed by GitHub
parent 292f3de02d
commit 88465961e0
6 changed files with 17 additions and 43 deletions

View File

@@ -44,7 +44,7 @@ namespace Content.Client.Viewport
public MainViewport Viewport { get; private set; } = default!;
public override void Startup()
protected override void Startup()
{
base.Startup();
@@ -88,7 +88,7 @@ namespace Content.Client.Viewport
_configurationManager.OnValueChanged(CCVars.HudFpsCounterVisible, (show) => { _fpsCounter.Visible = show; });
}
public override void Shutdown()
protected override void Shutdown()
{
_overlayManager.RemoveOverlay<ShowHandItemOverlay>();
DisposePresenters();

View File

@@ -34,13 +34,13 @@ namespace Content.Client.Viewport
private ClickableEntityComparer _comparer = default!;
public override void Startup()
protected override void Startup()
{
_inputManager.KeyBindStateChanged += OnKeyBindStateChanged;
_comparer = new ClickableEntityComparer(_entityManager);
}
public override void Shutdown()
protected override void Shutdown()
{
_inputManager.KeyBindStateChanged -= OnKeyBindStateChanged;
}