mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 12:27:01 +00:00
WIP Menus: Recursive menu demo (#126). Actually useful to test sub-menu positioning.
This commit is contained in:
parent
cdb5e16f70
commit
63a39dd08e
@ -11358,6 +11358,11 @@ static void ShowExampleMenuFile()
|
|||||||
{
|
{
|
||||||
ImGui::MenuItem("Hello");
|
ImGui::MenuItem("Hello");
|
||||||
ImGui::MenuItem("Sailor");
|
ImGui::MenuItem("Sailor");
|
||||||
|
if (ImGui::BeginMenu("Recurse.."))
|
||||||
|
{
|
||||||
|
ShowExampleMenuFile();
|
||||||
|
ImGui::EndMenu();
|
||||||
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
Loading…
Reference in New Issue
Block a user