fade-in window transition + faded bg overlay

This commit is contained in:
thecozies
2024-01-08 09:42:21 -06:00
parent 5ee7eaed1f
commit f2ea206d15
4 changed files with 20 additions and 1 deletions
+8
View File
@@ -650,6 +650,10 @@ struct {
void swap_document(recomp::Menu menu) {
if (current_document != nullptr) {
Rml::Element* window_el = current_document->GetElementById("window");
if (window_el != nullptr) {
window_el->SetClassNames("rmlui-window rmlui-window--hidden");
}
current_document->Hide();
}
@@ -657,6 +661,10 @@ struct {
if (find_it != documents.end()) {
assert(find_it->second && "Document for menu not loaded!");
current_document = find_it->second;
Rml::Element* window_el = current_document->GetElementById("window");
if (window_el != nullptr) {
window_el->SetClassNames("rmlui-window");
}
current_document->Show();
}
else {