* Reapply "Remove some BUI boilerplate" (#30214)
This reverts commit cb0ba66be3.
* Fix gas tank
* Fix PA
* Fix microwave
* Comms console underwrap
* Fix rcd
* log wehs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Shared.Silicons.Borgs;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.UserInterface;
|
||||
|
||||
namespace Content.Client.Silicons.Borgs;
|
||||
|
||||
@@ -18,9 +19,8 @@ public sealed class BorgBoundUserInterface : BoundUserInterface
|
||||
{
|
||||
base.Open();
|
||||
|
||||
var owner = Owner;
|
||||
|
||||
_menu = new BorgMenu(owner);
|
||||
_menu = this.CreateWindow<BorgMenu>();
|
||||
_menu.SetEntity(Owner);
|
||||
|
||||
_menu.BrainButtonPressed += () =>
|
||||
{
|
||||
@@ -41,10 +41,6 @@ public sealed class BorgBoundUserInterface : BoundUserInterface
|
||||
{
|
||||
SendMessage(new BorgRemoveModuleBuiMessage(EntMan.GetNetEntity(module)));
|
||||
};
|
||||
|
||||
_menu.OnClose += Close;
|
||||
|
||||
_menu.OpenCentered();
|
||||
}
|
||||
|
||||
protected override void UpdateState(BoundUserInterfaceState state)
|
||||
@@ -55,12 +51,4 @@ public sealed class BorgBoundUserInterface : BoundUserInterface
|
||||
return;
|
||||
_menu?.UpdateState(msg);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
if (!disposing)
|
||||
return;
|
||||
_menu?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user