Improve on disposal routing code (#1795)
Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
This commit is contained in:
@@ -23,15 +23,13 @@ namespace Content.Client.GameObjects.Components.Disposal
|
||||
{
|
||||
base.Open();
|
||||
|
||||
_window = new DisposalRouterWindow
|
||||
{
|
||||
Title = Loc.GetString("Disposal Router"),
|
||||
};
|
||||
_window = new DisposalRouterWindow();
|
||||
|
||||
_window.OpenCentered();
|
||||
_window.OnClose += Close;
|
||||
|
||||
_window.Confirm.OnPressed += _ => ButtonPressed(UiAction.Ok, _window.TagInput.Text);
|
||||
_window.TagInput.OnTextEntered += args => ButtonPressed(UiAction.Ok, args.Text);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user