diff --git a/extern/aurora b/extern/aurora index a40c9aeb61..6dd9aa2257 160000 --- a/extern/aurora +++ b/extern/aurora @@ -1 +1 @@ -Subproject commit a40c9aeb61dcfbae10f759ffc06268fbfd984b01 +Subproject commit 6dd9aa22577c3ebaaddc508a3945001290005092 diff --git a/res/rml/prelaunch.rcss b/res/rml/prelaunch.rcss index 6c52f4cf82..6204eb75c1 100644 --- a/res/rml/prelaunch.rcss +++ b/res/rml/prelaunch.rcss @@ -12,7 +12,7 @@ body { background-color: #000000; decorator: image(../prelaunch-bg.png cover left center); filter: opacity(0); - transition: filter 1s 0.1s linear-in-out; + transition: filter 1s 0.2s linear-in-out; } body[open] { diff --git a/src/dusk/ui/document.hpp b/src/dusk/ui/document.hpp index e1ec173aa4..d0f4cae841 100644 --- a/src/dusk/ui/document.hpp +++ b/src/dusk/ui/document.hpp @@ -31,6 +31,10 @@ public: show(); } } + void push(std::unique_ptr document) { + push_document(std::move(document)); + hide(false); + } void pop() { hide(true); show_top_document(); diff --git a/src/dusk/ui/popup.cpp b/src/dusk/ui/popup.cpp index 75658d965d..ddb3dcc428 100644 --- a/src/dusk/ui/popup.cpp +++ b/src/dusk/ui/popup.cpp @@ -35,11 +35,11 @@ Popup::Popup() : Document(kDocumentSource), mRoot(mDocument->GetElementById("pop .onClose = [this] { hide(false); }, .autoSelect = false, }); - mTabBar->add_tab("Settings", [] { push_document(std::make_unique()); }); + mTabBar->add_tab("Settings", [this] { push(std::make_unique()); }); // mTabBar->add_tab("Warp", [] { // // TODO // }); - mTabBar->add_tab("Editor", [] { push_document(std::make_unique()); }); + mTabBar->add_tab("Editor", [this] { push(std::make_unique()); }); mTabBar->add_tab("Reset", [this] { JUTGamePad::C3ButtonReset::sResetSwitchPushing = true; mTabBar->set_active_tab(-1); diff --git a/src/dusk/ui/prelaunch.cpp b/src/dusk/ui/prelaunch.cpp index 7b66437580..78af65af94 100644 --- a/src/dusk/ui/prelaunch.cpp +++ b/src/dusk/ui/prelaunch.cpp @@ -125,8 +125,7 @@ Prelaunch::Prelaunch() : Document(kDocumentSource), mRoot(mDocument->GetElementB apply_intro_animation(mMenuButtons.back()->root(), "delay-1"); mMenuButtons.push_back(std::make_unique