WIP Menus: Recursive menu demo (#126). Actually useful to test sub-menu positioning.

This commit is contained in:
ocornut 2015-05-26 16:14:51 +01:00
parent cdb5e16f70
commit 63a39dd08e

View File

@ -11358,6 +11358,11 @@ static void ShowExampleMenuFile()
{
ImGui::MenuItem("Hello");
ImGui::MenuItem("Sailor");
if (ImGui::BeginMenu("Recurse.."))
{
ShowExampleMenuFile();
ImGui::EndMenu();
}
ImGui::EndMenu();
}
ImGui::EndMenu();