Launcher: untoggle windowed mode by default and rename field

Untoggled by default due to popular demand (most wanted to launch full screen). Also renamed maxFPS field to fpsMax to remain consistency with the actual cvar name.
This commit is contained in:
Kawe Mazidjatari 2024-04-14 14:21:03 +02:00
parent 51e4a11bdb
commit 6a99c1bd5c
2 changed files with 3 additions and 4 deletions

View File

@ -382,7 +382,6 @@ void CSurface::Init()
this->m_WindowedToggle->SetSize({ 105, 18 });
this->m_WindowedToggle->SetLocation({ 15, 7 });
this->m_WindowedToggle->SetTabIndex(0);
this->m_WindowedToggle->SetChecked(true);
this->m_WindowedToggle->SetText("Windowed");
this->m_WindowedToggle->SetAnchor(Forms::AnchorStyles::Top | Forms::AnchorStyles::Left);
this->m_EngineVideoGroup->AddControl(this->m_WindowedToggle);
@ -578,7 +577,7 @@ void CSurface::LoadSettings()
// Video.
this->m_WindowedToggle->SetChecked(sv->GetBool("windowed"));
this->m_NoBorderToggle->SetChecked(sv->GetBool("borderless"));
this->m_FpsTextBox->SetText(sv->GetString("maxFPS", "-1"));
this->m_FpsTextBox->SetText(sv->GetString("fpsMax", "-1"));
this->m_WidthTextBox->SetText(sv->GetString("width"));
this->m_HeightTextBox->SetText(sv->GetString("height"));
}
@ -639,7 +638,7 @@ void CSurface::SaveSettings()
// Video.
sv->SetBool("windowed", this->m_WindowedToggle->Checked());
sv->SetBool("borderless", this->m_NoBorderToggle->Checked());
sv->SetString("maxFPS", GetControlValue(this->m_FpsTextBox));
sv->SetString("fpsMax", GetControlValue(this->m_FpsTextBox));
sv->SetString("width", GetControlValue(this->m_WidthTextBox));
sv->SetString("height", GetControlValue(this->m_HeightTextBox));

View File

@ -1,7 +1,7 @@
#pragma once
// Change this each time the settings format has changed.
#define SDK_LAUNCHER_VERSION 2
#define SDK_LAUNCHER_VERSION 3
// Uncomment this line to compile the launcher for dedicated server builds.
//#define DEDI_LAUNCHER