Skip to content

Commit

Permalink
Added comments to UICommandButton.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DexlerXD committed Dec 7, 2023
1 parent 679ea89 commit e1aee22
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.IoC;

Expand All @@ -16,8 +16,10 @@ protected override void Execute(ButtonEventArgs obj)
if (WindowType == null)
return;
_window = (DefaultWindow) IoCManager.Resolve<IDynamicTypeFactory>().CreateInstance(WindowType);
//SS220-antag-add-objective begin
if (_window is not null)
OnWindowCreated?.Invoke(_window);
//SS220-antag-add-objective end
_window?.OpenCentered();
}
}
Expand Down

0 comments on commit e1aee22

Please sign in to comment.