{"id":24003471,"url":"https://github.com/kalilistic/dalamud.contextmenu","last_synced_at":"2025-09-14T08:31:42.710Z","repository":{"id":128483876,"uuid":"498463288","full_name":"kalilistic/Dalamud.ContextMenu","owner":"kalilistic","description":"dalamud context menus","archived":false,"fork":false,"pushed_at":"2024-02-24T13:47:37.000Z","size":231,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-24T14:39:33.569Z","etag":null,"topics":["dalamud","dalamud-plugin","ffxiv"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kalilistic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-31T19:02:23.000Z","updated_at":"2023-05-29T02:41:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"feb01424-97ec-4b07-8c15-c1749b619617","html_url":"https://github.com/kalilistic/Dalamud.ContextMenu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalilistic%2FDalamud.ContextMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalilistic%2FDalamud.ContextMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalilistic%2FDalamud.ContextMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalilistic%2FDalamud.ContextMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalilistic","download_url":"https://codeload.github.com/kalilistic/Dalamud.ContextMenu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232962564,"owners_count":18603378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dalamud","dalamud-plugin","ffxiv"],"created_at":"2025-01-08T01:38:50.370Z","updated_at":"2025-01-08T01:38:50.961Z","avatar_url":"https://github.com/kalilistic.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# THIS IS DEPRECATED AND WILL NOT BE UPDATED FOR 7.0.\n\n# Dalamud.ContextMenu\n[![Nuget](https://img.shields.io/nuget/v/Dalamud.ContextMenu)](https://www.nuget.org/packages/Dalamud.ContextMenu/)\n\nThis is a library to add context menus to dalamud plugins.\n\n### Features\n- Add context menu items to game objects (e.g. players).\n- Add context menu items to inventory items.\n- Add an dalamud indicator icon so players know a plugin is adding the menu item (optional).\n\n### Limitations\n- No sub menus.\n- No random inserts - all custom items are added to the end of the menu.\n\n\n### Credits\n- The logic is all copied from a deprecated version of annaclemens' XIVCommon library.\n\n### How to Use\n- Import from nuget.\n- Add ```\u003cCopyLocalLockFileAssemblies\u003etrue\u003c/CopyLocalLockFileAssemblies\u003e``` in your csproj file.\n\n### Example\n\n```csharp\n// create instance\nDalamudContextMenu contextMenu = new DalamudContextMenu(PluginInterface);\n\n// create context menu item\nGameObjectContextMenuItem contextMenuItem = new GameObjectContextMenuItem(\n    new SeString(new TextPayload(\"My Menu Item\"), // text\n    MyMenuItemAction, // action to invoke\n    true); // use dalamud indicator\n\n// add event handler\ncontextMenu.OnOpenGameObjectContextMenu += OpenGameObjectContextMenu;\n\n// add custom item on game object menu open\nprivate void OpenGameObjectContextMenu(GameObjectContextMenuOpenArgs args)\n{\n    args.AddCustomItem(contextMenuItem);\n}\n\n// add action method when custom item is clicked\nprivate void MyMenuItemAction(GameObjectContextMenuItemSelectedArgs args)\n{\n    // do something\n}\n\n// dispose\ncontextMenu.OnOpenGameObjectContextMenu -= OpenGameObjectContextMenu;\ncontextMenu.Dispose();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalilistic%2Fdalamud.contextmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalilistic%2Fdalamud.contextmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalilistic%2Fdalamud.contextmenu/lists"}