mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-14 00:34:18 +00:00
WIP Menus: Recursive menu demo (#126). Actually useful to test sub-menu positioning.
This commit is contained in:
parent
cdb5e16f70
commit
63a39dd08e
1 changed files with 5 additions and 0 deletions
|
|
@ -11358,6 +11358,11 @@ static void ShowExampleMenuFile()
|
|||
{
|
||||
ImGui::MenuItem("Hello");
|
||||
ImGui::MenuItem("Sailor");
|
||||
if (ImGui::BeginMenu("Recurse.."))
|
||||
{
|
||||
ShowExampleMenuFile();
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue