mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 18:24:16 +01:00
make local groups more usable for pause/resume
This commit is contained in:
parent
cdcfaa9369
commit
1a64f08841
8 changed files with 144 additions and 104 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using Dalamud.Interface.Utility.Raii;
|
||||
using ImGuiNET;
|
||||
using MareSynchronos.UI.Handlers;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace MareSynchronos.UI.Components;
|
||||
|
||||
|
|
@ -9,8 +10,8 @@ public class DrawGroupedGroupFolder : IDrawFolder
|
|||
{
|
||||
private readonly IEnumerable<IDrawFolder> _groups;
|
||||
private readonly TagHandler _tagHandler;
|
||||
public IEnumerable<DrawUserPair> DrawPairs => throw new NotSupportedException();
|
||||
public int OnlinePairs => _groups.SelectMany(g => g.DrawPairs).Where(g => g.Pair.IsOnline).DistinctBy(g => g.UID).Count();
|
||||
public IImmutableList<DrawUserPair> DrawPairs => throw new NotSupportedException();
|
||||
public int OnlinePairs => _groups.SelectMany(g => g.DrawPairs).Where(g => g.Pair.IsOnline).DistinctBy(g => g.Pair.UserData.UID).Count();
|
||||
public int TotalPairs => _groups.Sum(g => g.TotalPairs);
|
||||
|
||||
public DrawGroupedGroupFolder(IEnumerable<IDrawFolder> groups, TagHandler tagHandler)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue