File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,24 @@ IMGUI_NODE_EDITOR_API int BreakLinks(PinId pinId); // Break all links connected
385385IMGUI_NODE_EDITOR_API void NavigateToContent (float duration = -1 );
386386IMGUI_NODE_EDITOR_API void NavigateToSelection (bool zoomIn = false , float duration = -1 );
387387
388+ // Shows context menu for node, link or background
389+ // Typical usage (this should happen inside ed::Begin/ed::End block):
390+ // ed::Begin();
391+ // ... (Show nodes)
392+ // ed::Suspend();
393+ // if (ed::ShowNodeContextMenu(&contextNodeId))
394+ // ImGui::OpenPopup("Node Context Menu");
395+ // ed::Resume();
396+ // ...
397+ // ed::Suspend();
398+ // if (ImGui::BeginPopup("Node Context Menu"))
399+ // {
400+ // ImGui::Text("Node Context Menu, node ID: %d", contextNodeId);
401+ // ImGui::EndPopup();
402+ // }
403+ // ed::Resume();
404+ // ...
405+ // ed::End();
388406IMGUI_NODE_EDITOR_API bool ShowNodeContextMenu (NodeId* nodeId);
389407IMGUI_NODE_EDITOR_API bool ShowPinContextMenu (PinId* pinId);
390408IMGUI_NODE_EDITOR_API bool ShowLinkContextMenu (LinkId* linkId);
You can’t perform that action at this time.
0 commit comments