Add Pair Character Analysis for funsies

This commit is contained in:
Loporrit
2025-02-22 11:59:22 +00:00
parent def13858f4
commit eaaded1ed5
19 changed files with 701 additions and 32 deletions

View File

@@ -76,6 +76,17 @@ public sealed class UiService : DisposableMediatorSubscriberBase
}
});
Mediator.Subscribe<OpenPairAnalysisWindow>(this, (msg) =>
{
if (!_createdWindows.Exists(p => p is PlayerAnalysisUI ui
&& msg.Pair == ui.Pair))
{
var window = _uiFactory.CreatePlayerAnalysisUi(msg.Pair);
_createdWindows.Add(window);
_windowSystem.AddWindow(window);
}
});
Mediator.Subscribe<RemoveWindowMessage>(this, (msg) =>
{
_windowSystem.RemoveWindow(msg.Window);