Add mods button to prelaunch UI

Fixes https://github.com/TwilitRealm/dusklight/issues/1904
This commit is contained in:
PJB3005
2026-05-29 05:09:10 +02:00
parent f38514db79
commit 183e7669c2
+9 -1
View File
@@ -28,6 +28,7 @@
#include <thread>
#include "m_Do/m_Do_MemCard.h"
#include "mods_window.hpp"
namespace dusk::ui {
namespace {
@@ -728,9 +729,16 @@ Prelaunch::Prelaunch() : Document(kDocumentSource), mRoot(mDocument->GetElementB
});
apply_intro_animation(mMenuButtons.back()->root(), "delay-2");
mMenuButtons.push_back(std::make_unique<Button>(menuList, "Mods"));
mMenuButtons.back()->on_pressed([this] {
mRestartSuppressed = false;
push(std::make_unique<ModsWindow>());
});
apply_intro_animation(mMenuButtons.back()->root(), "delay-3");
mMenuButtons.push_back(std::make_unique<Button>(menuList, "Quit"));
mMenuButtons.back()->on_pressed([] { IsRunning = false; });
apply_intro_animation(mMenuButtons.back()->root(), "delay-3");
apply_intro_animation(mMenuButtons.back()->root(), "delay-4");
}
mDiscStatus = mDocument->GetElementById("disc-status");