mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
This commit is contained in:
parent
b630cb5b42
commit
8648346eab
@ -2085,7 +2085,10 @@ void ImGui::NewFrame()
|
|||||||
if (ImGuiWindow* modal_window = GetFrontMostModalRootWindow())
|
if (ImGuiWindow* modal_window = GetFrontMostModalRootWindow())
|
||||||
{
|
{
|
||||||
g.ModalWindowDarkeningRatio = ImMin(g.ModalWindowDarkeningRatio + g.IO.DeltaTime * 6.0f, 1.0f);
|
g.ModalWindowDarkeningRatio = ImMin(g.ModalWindowDarkeningRatio + g.IO.DeltaTime * 6.0f, 1.0f);
|
||||||
if (g.HoveredRootWindow != modal_window)
|
ImGuiWindow* window = g.HoveredRootWindow;
|
||||||
|
while (window && window != modal_window)
|
||||||
|
window = window->ParentWindow;
|
||||||
|
if (!window)
|
||||||
g.HoveredRootWindow = g.HoveredWindow = NULL;
|
g.HoveredRootWindow = g.HoveredWindow = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1244,6 +1244,9 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||||||
ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n");
|
ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n");
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
//static int dummy_i = 0;
|
||||||
|
//ImGui::Combo("Combo", &dummy_i, "Delete\0Delete harder\0");
|
||||||
|
|
||||||
static bool dont_ask_me_next_time = false;
|
static bool dont_ask_me_next_time = false;
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0,0));
|
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0,0));
|
||||||
ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time);
|
ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time);
|
||||||
|
Loading…
Reference in New Issue
Block a user