From e13a46ec6b532ffdd4751024a2df5f65b8954e0e Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Sat, 2 Mar 2024 11:52:58 -0600 Subject: [PATCH] partially fix menu fade in --- assets/config_menu.rml | 2 +- src/ui/ui_renderer.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/config_menu.rml b/assets/config_menu.rml index e32e950..2cba326 100644 --- a/assets/config_menu.rml +++ b/assets/config_menu.rml @@ -33,7 +33,7 @@ -
+
diff --git a/src/ui/ui_renderer.cpp b/src/ui/ui_renderer.cpp index ff582ff..25c77b3 100644 --- a/src/ui/ui_renderer.cpp +++ b/src/ui/ui_renderer.cpp @@ -797,9 +797,12 @@ struct UIContext { current_document = find_it->second; Rml::Element* window_el = current_document->GetElementById("window"); if (window_el != nullptr) { - window_el->SetClassNames("rmlui-window"); + window_el->SetClassNames("rmlui-window rmlui-window--hidden"); } current_document->Show(); + if (window_el != nullptr) { + window_el->SetClassNames("rmlui-window"); + } } else { current_document = nullptr;