Popups: Internals: Added IsAnyPopupOpen().

This commit is contained in:
ocornut
2020-06-16 18:46:14 +02:00
parent d31fe97f74
commit 37eb89371b
4 changed files with 24 additions and 8 deletions

View File

@ -2813,7 +2813,7 @@ static void ShowDemoWindowPopups()
if (ImGui::TreeNode("Context menus"))
{
// BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing:
// if (IsItemHovered() && IsMouseReleased(0))
// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right))
// OpenPopup(id);
// return BeginPopup(id);
// For more advanced uses you may want to replicate and customize this code.