mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
reduce hitches and do some other changes to FSW
This commit is contained in:
parent
549a93654a
commit
5233ce860b
20 changed files with 156 additions and 103 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using Dalamud.Interface.Utility;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using ImGuiNET;
|
||||
using MareSynchronos.Services;
|
||||
using MareSynchronos.Services.Mediator;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Numerics;
|
||||
|
|
@ -14,8 +15,8 @@ public class PopupHandler : WindowMediatorSubscriberBase
|
|||
private readonly HashSet<IPopupHandler> _handlers;
|
||||
private IPopupHandler? _currentHandler = null;
|
||||
|
||||
public PopupHandler(ILogger<PopupHandler> logger, MareMediator mediator, IEnumerable<IPopupHandler> popupHandlers)
|
||||
: base(logger, mediator, "MarePopupHandler")
|
||||
public PopupHandler(ILogger<PopupHandler> logger, MareMediator mediator, IEnumerable<IPopupHandler> popupHandlers, PerformanceCollectorService performanceCollectorService)
|
||||
: base(logger, mediator, "MarePopupHandler", performanceCollectorService)
|
||||
{
|
||||
Flags = ImGuiWindowFlags.NoBringToFrontOnFocus
|
||||
| ImGuiWindowFlags.NoDecoration
|
||||
|
|
@ -53,7 +54,7 @@ public class PopupHandler : WindowMediatorSubscriberBase
|
|||
});
|
||||
}
|
||||
|
||||
public override void Draw()
|
||||
protected override void DrawInternal()
|
||||
{
|
||||
if (_currentHandler == null) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue