mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +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
|
|
@ -4,6 +4,7 @@ using ImGuiNET;
|
|||
using MareSynchronos.API.Data.Enum;
|
||||
using MareSynchronos.API.Data.Extensions;
|
||||
using MareSynchronos.PlayerData.Pairs;
|
||||
using MareSynchronos.Services;
|
||||
using MareSynchronos.Services.Mediator;
|
||||
using MareSynchronos.Utils;
|
||||
using MareSynchronos.WebAPI;
|
||||
|
|
@ -20,7 +21,8 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
|||
private UserPermissions _ownPermissions;
|
||||
|
||||
public PermissionWindowUI(ILogger<PermissionWindowUI> logger, Pair pair, MareMediator mediator, UiSharedService uiSharedService,
|
||||
ApiController apiController) : base(logger, mediator, "Permissions for " + pair.UserData.AliasOrUID + "###MareSynchronosPermissions" + pair.UserData.UID)
|
||||
ApiController apiController, PerformanceCollectorService performanceCollectorService)
|
||||
: base(logger, mediator, "Permissions for " + pair.UserData.AliasOrUID + "###MareSynchronosPermissions" + pair.UserData.UID, performanceCollectorService)
|
||||
{
|
||||
Pair = pair;
|
||||
_uiSharedService = uiSharedService;
|
||||
|
|
@ -35,7 +37,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
|||
IsOpen = true;
|
||||
}
|
||||
|
||||
public override void Draw()
|
||||
protected override void DrawInternal()
|
||||
{
|
||||
var sticky = _ownPermissions.IsSticky();
|
||||
var paused = _ownPermissions.IsPaused();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue