parent
c06a8d1658
commit
4135123a30
7
extern/imgui_patched/imgui.cpp
vendored
7
extern/imgui_patched/imgui.cpp
vendored
|
@ -4940,10 +4940,13 @@ void ImGui::NewFrame()
|
|||
UpdateMouseMovingWindowNewFrame();
|
||||
|
||||
// Background darkening/whitening
|
||||
if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f))
|
||||
if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) {
|
||||
g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f);
|
||||
else
|
||||
if (g.DimBgRatio<=0.999f) g.IO.IsSomethingHappening = true;
|
||||
} else {
|
||||
g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f);
|
||||
if (g.DimBgRatio>=0.001f) g.IO.IsSomethingHappening = true;
|
||||
}
|
||||
|
||||
g.MouseCursor = ImGuiMouseCursor_Arrow;
|
||||
g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1;
|
||||
|
|
Loading…
Reference in a new issue