|
|
@ -3875,7 +3875,7 @@ static void ShowDemoWindowPopups() |
|
|
|
static int item = 1; |
|
|
|
static int item = 1; |
|
|
|
static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; |
|
|
|
static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; |
|
|
|
ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); |
|
|
|
ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); |
|
|
|
ImGui::ColorEdit4("color", color); |
|
|
|
ImGui::ColorEdit4("Color", color); |
|
|
|
|
|
|
|
|
|
|
|
if (ImGui::Button("Add another modal..")) |
|
|
|
if (ImGui::Button("Add another modal..")) |
|
|
|
ImGui::OpenPopup("Stacked 2"); |
|
|
|
ImGui::OpenPopup("Stacked 2"); |
|
|
@ -3887,6 +3887,7 @@ static void ShowDemoWindowPopups() |
|
|
|
if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) |
|
|
|
if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ImGui::Text("Hello from Stacked The Second!"); |
|
|
|
ImGui::Text("Hello from Stacked The Second!"); |
|
|
|
|
|
|
|
ImGui::ColorEdit4("Color", color); // Allow opening another nested popup
|
|
|
|
if (ImGui::Button("Close")) |
|
|
|
if (ImGui::Button("Close")) |
|
|
|
ImGui::CloseCurrentPopup(); |
|
|
|
ImGui::CloseCurrentPopup(); |
|
|
|
ImGui::EndPopup(); |
|
|
|
ImGui::EndPopup(); |
|
|
|