mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 02:54:16 +01:00
tryout of context menu
This commit is contained in:
parent
46cbd427d3
commit
814b24ebd8
5 changed files with 44 additions and 6 deletions
|
|
@ -1,4 +1,6 @@
|
|||
using Dalamud.Utility;
|
||||
using Dalamud.ContextMenu;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Utility;
|
||||
using MareSynchronos.API.Data;
|
||||
using MareSynchronos.API.Data.Comparer;
|
||||
using MareSynchronos.API.Data.Extensions;
|
||||
|
|
@ -170,4 +172,14 @@ public class Pair
|
|||
|
||||
return data;
|
||||
}
|
||||
|
||||
public void AddContextMenu(GameObjectContextMenuOpenArgs args)
|
||||
{
|
||||
if (CachedPlayer == null || args.ObjectId != CachedPlayer.PlayerCharacterId) return;
|
||||
|
||||
args.AddCustomItem(new GameObjectContextMenuItem("Reapply last data", (a) =>
|
||||
{
|
||||
ApplyLastReceivedData(true);
|
||||
} ,true));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue