Fix the custom UI drawing in front of ImGui windows. (#335)

This commit is contained in:
Skyth (Asilkan)
2025-02-09 14:25:06 +03:00
committed by GitHub
parent 138d9b616d
commit 7c1aea4e24
10 changed files with 51 additions and 51 deletions

View File

@@ -45,7 +45,7 @@ void Fader::Draw()
auto colour = IM_COL32(g_colour & 0xFF, (g_colour >> 8) & 0xFF, (g_colour >> 16) & 0xFF, 255 * alpha);
ImGui::GetForegroundDrawList()->AddRectFilled({ 0, 0 }, ImGui::GetIO().DisplaySize, colour);
ImGui::GetBackgroundDrawList()->AddRectFilled({ 0, 0 }, ImGui::GetIO().DisplaySize, colour);
}
static void DoFade(bool isFadeIn, float duration, std::function<void()> endCallback, float endCallbackDelay)