Merge more UI refactor stuff (#11277)

* Changelog+options ui controller
* Sandbox UI controller
* Escape menu UI controller
This commit is contained in:
wrexbe
2022-09-14 14:34:48 -07:00
committed by GitHub
parent 8871c445b8
commit 018a96ee88
23 changed files with 591 additions and 573 deletions

View File

@@ -1,7 +1,7 @@
using Content.Client.Stylesheets;
using Content.Client.UserInterface.Systems.EscapeMenu;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
namespace Content.Client.Changelog
{
@@ -13,7 +13,7 @@ namespace Content.Client.Changelog
{
IoCManager.InjectDependencies(this);
OnPressed += OnOnPressed;
OnPressed += OnChangelogPressed;
// So that measuring before opening returns a correct height,
// and the window has the correct size when opened.
@@ -35,9 +35,9 @@ namespace Content.Client.Changelog
_changelogManager.NewChangelogEntriesChanged -= UpdateStuff;
}
private void OnOnPressed(ButtonEventArgs obj)
private void OnChangelogPressed(ButtonEventArgs obj)
{
new ChangelogWindow().OpenCentered();
IoCManager.Resolve<IUserInterfaceManager>().GetUIController<ChangelogUIController>().ToggleWindow();
}
private void UpdateStuff()