Oldchat fixes (#12009)

* various fixes

* whoops

* oops

* oop

* removes that call from escape button on unload instead of adding another one

also just moves escape window stuff into the state entered call, as only one is instantiated whenever the state is loaded (and is not dependent on the current screen)
This commit is contained in:
Flipp Syder
2022-10-17 18:01:28 -07:00
committed by GitHub
parent 2cd8bc8489
commit c828c53b91
4 changed files with 39 additions and 47 deletions

View File

@@ -106,6 +106,8 @@ namespace Content.Client.Gameplay
{
_chatController.SetMainChat(false);
_menuController.UnloadButtons();
_ghostController.UnloadGui();
_actionController.UnloadGui();
_uiManager.UnloadScreen();
}
@@ -132,8 +134,8 @@ namespace Content.Client.Gameplay
_menuController.LoadButtons();
// TODO: This could just be like, the equivalent of an event or something
_ghostController.UpdateGui();
_actionController.RegisterActionContainer();
_ghostController.LoadGui();
_actionController.LoadGui();
_alertsController.SyncAlerts();
_hotbarController.ReloadHotbar();