mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-08 10:35:50 -04:00
First time setup preset menu with transition & cool sfx
This commit is contained in:
+3
-1
@@ -212,9 +212,11 @@ void dusk::config::Save() {
|
||||
}
|
||||
|
||||
io::FileStream::WriteAllText(configJsonPath.c_str(), j.dump(4));
|
||||
|
||||
s_configFileMissing = false;
|
||||
}
|
||||
|
||||
bool dusk::config::WasConfigFileMissing() {
|
||||
bool dusk::config::IsConfigFileMissing() {
|
||||
return s_configFileMissing;
|
||||
}
|
||||
|
||||
|
||||
@@ -179,15 +179,16 @@ namespace dusk {
|
||||
ImGuiConsole::ImGuiConsole() {}
|
||||
|
||||
void ImGuiConsole::PreDraw() {
|
||||
if (config::IsConfigFileMissing()) {
|
||||
m_firstRunPreset.draw();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_isLaunchInitialized) {
|
||||
m_toasts.emplace_back("Press F1 to toggle menu"s, 5.f);
|
||||
m_isLaunchInitialized = true;
|
||||
}
|
||||
|
||||
if (config::WasConfigFileMissing()) {
|
||||
m_firstRunPreset.draw();
|
||||
}
|
||||
|
||||
getTransientSettings().skipFrameRateLimit = getSettings().game.enableTurboKeybind && ImGui::IsKeyDown(ImGuiKey_Tab);
|
||||
|
||||
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) &&
|
||||
|
||||
Reference in New Issue
Block a user