Revert "Remove some BUI boilerplate" (#30214)

Revert "Remove some BUI boilerplate (#28399)"

This reverts commit cbf329a82d.
This commit is contained in:
Nemanja
2024-07-20 20:42:27 -04:00
committed by GitHub
parent 6d664c9157
commit cb0ba66be3
137 changed files with 1755 additions and 1096 deletions

View File

@@ -1,7 +1,5 @@
using Content.Shared.Research;
using Content.Shared.Research.Components;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface;
namespace Content.Client.Research.UI
{
@@ -18,7 +16,10 @@ namespace Content.Client.Research.UI
{
base.Open();
_menu = this.CreateWindow<DiskConsoleMenu>();
_menu = new();
_menu.OnClose += Close;
_menu.OpenCentered();
_menu.OnServerButtonPressed += () =>
{
@@ -30,6 +31,14 @@ namespace Content.Client.Research.UI
};
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (!disposing)
return;
_menu?.Close();
}
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);