Remove some BUI boilerplate (#28399)
* Remove some BUI boilerplate - The disposals overrides got removed due to the helper method handling it. - Replace window creation with CreateWindow helper. - Fixed some stinky code which would cause exceptions. * More * moar * weh * done * More BUIs * More updates * weh * moar * look who it is * weh * merge * weh * fixes
This commit is contained in:
@@ -18,15 +18,13 @@ public sealed partial class IntercomMenu : FancyWindow
|
||||
|
||||
private readonly List<string> _channels = new();
|
||||
|
||||
public IntercomMenu(Entity<IntercomComponent> entity)
|
||||
public IntercomMenu()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
MicButton.OnPressed += args => OnMicPressed?.Invoke(args.Button.Pressed);
|
||||
SpeakerButton.OnPressed += args => OnSpeakerPressed?.Invoke(args.Button.Pressed);
|
||||
|
||||
Update(entity);
|
||||
}
|
||||
|
||||
public void Update(Entity<IntercomComponent> entity)
|
||||
|
||||
Reference in New Issue
Block a user