Revert "Remove some BUI boilerplate" (#30214)
Revert "Remove some BUI boilerplate (#28399)"
This reverts commit cbf329a82d.
This commit is contained in:
@@ -11,9 +11,7 @@ public sealed partial class BandMenu : DefaultWindow
|
||||
{
|
||||
private readonly InstrumentBoundUserInterface _owner;
|
||||
|
||||
public EntityUid? Master;
|
||||
|
||||
public BandMenu(InstrumentBoundUserInterface owner)
|
||||
public BandMenu(InstrumentBoundUserInterface owner) : base()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
@@ -42,7 +40,7 @@ public sealed partial class BandMenu : DefaultWindow
|
||||
{
|
||||
var uid = entManager.GetEntity(nent);
|
||||
var item = BandList.AddItem(name, null, true, uid);
|
||||
item.Selected = Master == uid;
|
||||
item.Selected = _owner.Instrument?.Master == uid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user