You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a possibility to close the popup window on the way:
ImGui::OpenPopup("TEST");
ImGui::BeginPopupModal("TEST");
...
ImGui::EndPopup();
ImGui::Begin("___");
if(ImGui::Button("Close TEST popup", ImVec2(...)))
{
// Here i want to close the popup with the name TEST
}
ImGui::End();
The text was updated successfully, but these errors were encountered:
colesnicov
changed the title
Close popup without using ImGui::CloseCurrentPopup ()
Close popup without using ImGui::CloseCurrentPopup()
May 7, 2017
static bool test_open(true);
// Must be tested?
if(test_open){
ImGui::OpenPopup("TEST");
}
ImGui::BeginPopupModal("TEST", &test_open);
...
ImGui::EndPopup();
ImGui::Begin("___");
if(ImGui::Button("Close TEST popup", ImVec2(...)))
{
// Here i want to close the popup with the name TEST
test_open = false;
}
ImGui::End();
I would still like to add popup apis using ImGuiID (they'd have a behave very slightly differently because functions like ClosePopup() would need to scan the popup stack). Linking to #331 for reference.
Hello to everybody.
Is there a possibility to close the popup window on the way:
The text was updated successfully, but these errors were encountered: