* 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,4 +1,3 @@
|
||||
using Content.Client.Inventory;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Shared.Timing;
|
||||
@@ -11,14 +10,12 @@ namespace Content.Client.Strip
|
||||
public LayoutContainer InventoryContainer = new();
|
||||
public BoxContainer HandsContainer = new() { Orientation = LayoutOrientation.Horizontal };
|
||||
public BoxContainer SnareContainer = new();
|
||||
private StrippableBoundUserInterface _bui;
|
||||
public bool Dirty = true;
|
||||
|
||||
public StrippingMenu(string title, StrippableBoundUserInterface bui)
|
||||
{
|
||||
Title = title;
|
||||
_bui = bui;
|
||||
public event Action? OnDirty;
|
||||
|
||||
public StrippingMenu()
|
||||
{
|
||||
var box = new BoxContainer() { Orientation = LayoutOrientation.Vertical, Margin = new Thickness(0, 8) };
|
||||
Contents.AddChild(box);
|
||||
box.AddChild(SnareContainer);
|
||||
@@ -39,7 +36,7 @@ namespace Content.Client.Strip
|
||||
return;
|
||||
|
||||
Dirty = false;
|
||||
_bui.UpdateMenu();
|
||||
OnDirty?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user