mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:07:22 +01:00
add right click menu settings + version bump
This commit is contained in:
parent
19b1b7b286
commit
766224d0e7
4 changed files with 21 additions and 11 deletions
|
|
@ -42,16 +42,6 @@ public sealed class PairManager : DisposableMediatorSubscriberBase
|
|||
_dalamudContextMenu.OnOpenGameObjectContextMenu += DalamudContextMenuOnOnOpenGameObjectContextMenu;
|
||||
}
|
||||
|
||||
private void DalamudContextMenuOnOnOpenGameObjectContextMenu(GameObjectContextMenuOpenArgs args)
|
||||
{
|
||||
if (args.ObjectId == 0xE000000) return;
|
||||
|
||||
foreach (var pair in _allClientPairs.Where((p => p.Value.IsVisible)))
|
||||
{
|
||||
pair.Value.AddContextMenu(args);
|
||||
}
|
||||
}
|
||||
|
||||
public List<Pair> DirectPairs => _directPairsInternal.Value;
|
||||
|
||||
public Dictionary<GroupFullInfoDto, List<Pair>> GroupPairs => _groupPairsInternal.Value;
|
||||
|
|
@ -339,6 +329,17 @@ public sealed class PairManager : DisposableMediatorSubscriberBase
|
|||
DisposePairs();
|
||||
}
|
||||
|
||||
private void DalamudContextMenuOnOnOpenGameObjectContextMenu(GameObjectContextMenuOpenArgs args)
|
||||
{
|
||||
if (args.ObjectId == 0xE000000) return;
|
||||
if (!_configurationService.Current.EnableRightClickMenus) return;
|
||||
|
||||
foreach (var pair in _allClientPairs.Where((p => p.Value.IsVisible)))
|
||||
{
|
||||
pair.Value.AddContextMenu(args);
|
||||
}
|
||||
}
|
||||
|
||||
private void DalamudUtilOnDelayedFrameworkUpdate()
|
||||
{
|
||||
foreach (Pair pair in _allClientPairs.Select(p => p.Value).Where(p => p.HasCachedPlayer).ToList())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue