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 @@ -389,6 +389,24 @@ IMGUI_NODE_EDITOR_API int BreakLinks(PinId pinId); // Break all links connected
389389IMGUI_NODE_EDITOR_API void NavigateToContent (float duration = -1 );
390390IMGUI_NODE_EDITOR_API void NavigateToSelection (bool zoomIn = false , float duration = -1 );
391391
392+ // Shows context menu for node, link or background
393+ // Typical usage (this should happen inside ed::Begin/ed::End block):
394+ // ed::Begin();
395+ // ... (Show nodes)
396+ // ed::Suspend();
397+ // if (ed::ShowNodeContextMenu(&contextNodeId))
398+ // ImGui::OpenPopup("Node Context Menu");
399+ // ed::Resume();
400+ // ...
401+ // ed::Suspend();
402+ // if (ImGui::BeginPopup("Node Context Menu"))
403+ // {
404+ // ImGui::Text("Node Context Menu, node ID: %d", contextNodeId);
405+ // ImGui::EndPopup();
406+ // }
407+ // ed::Resume();
408+ // ...
409+ // ed::End();
392410IMGUI_NODE_EDITOR_API bool ShowNodeContextMenu (NodeId* nodeId);
393411IMGUI_NODE_EDITOR_API bool ShowPinContextMenu (PinId* pinId);
394412IMGUI_NODE_EDITOR_API bool ShowLinkContextMenu (LinkId* linkId);
You can’t perform that action at this time.
0 commit comments