From 8880f4e7f095cae16b7d7b45317f881d1606eb35 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 7 Oct 2022 22:33:37 +0200 Subject: [PATCH] Rename "Enable Development" to "Enable Developer" in SDK launcher Renamed to "Developer" as this is the name of the cvar, and the global define within the script API. This should express the intention more clearly. --- r5dev/sdklauncher/basepanel.cpp | 20 ++++++++++---------- r5dev/sdklauncher/basepanel.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/r5dev/sdklauncher/basepanel.cpp b/r5dev/sdklauncher/basepanel.cpp index 252b4b09..7ffa1ff8 100644 --- a/r5dev/sdklauncher/basepanel.cpp +++ b/r5dev/sdklauncher/basepanel.cpp @@ -90,13 +90,13 @@ void CUIBaseSurface::Init() this->m_CheatsToggle->SetAnchor(Forms::AnchorStyles::Top | Forms::AnchorStyles::Left); this->m_GameGroupExt->AddControl(this->m_CheatsToggle); - this->m_DevelopmentToggle = new UIX::UIXCheckBox(); - this->m_DevelopmentToggle->SetSize({ 150, 18 }); - this->m_DevelopmentToggle->SetLocation({ 130, 7 }); - this->m_DevelopmentToggle->SetTabIndex(0); - this->m_DevelopmentToggle->SetText("Enable development"); - this->m_DevelopmentToggle->SetAnchor(Forms::AnchorStyles::Top | Forms::AnchorStyles::Left); - this->m_GameGroupExt->AddControl(this->m_DevelopmentToggle); + this->m_DeveloperToggle = new UIX::UIXCheckBox(); + this->m_DeveloperToggle->SetSize({ 150, 18 }); + this->m_DeveloperToggle->SetLocation({ 130, 7 }); + this->m_DeveloperToggle->SetTabIndex(0); + this->m_DeveloperToggle->SetText("Enable developer"); + this->m_DeveloperToggle->SetAnchor(Forms::AnchorStyles::Top | Forms::AnchorStyles::Left); + this->m_GameGroupExt->AddControl(this->m_DeveloperToggle); this->m_ConsoleToggle = new UIX::UIXCheckBox(); this->m_ConsoleToggle->SetSize({ 150, 18 }); @@ -737,7 +737,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters) { svParameters.append("+launchplaylist \"" + this->m_PlaylistCombo->Text() + "\"\n"); } - if (this->m_DevelopmentToggle->Checked()) + if (this->m_DeveloperToggle->Checked()) { svParameters.append("-dev\n"); svParameters.append("-devsdk\n"); @@ -863,7 +863,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters) { svParameters.append("+launchplaylist \"" + this->m_PlaylistCombo->Text() + "\"\n"); } - if (this->m_DevelopmentToggle->Checked()) + if (this->m_DeveloperToggle->Checked()) { svParameters.append("-dev\n"); svParameters.append("-devsdk\n"); @@ -950,7 +950,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters) case eMode::CLIENT: { // GAME ############################################################### - if (this->m_DevelopmentToggle->Checked()) + if (this->m_DeveloperToggle->Checked()) { svParameters.append("-dev\n"); svParameters.append("-devsdk\n"); diff --git a/r5dev/sdklauncher/basepanel.h b/r5dev/sdklauncher/basepanel.h index 1dace68e..f85ef747 100644 --- a/r5dev/sdklauncher/basepanel.h +++ b/r5dev/sdklauncher/basepanel.h @@ -82,7 +82,7 @@ private: UIX::UIXGroupBox* m_EngineVideoGroup; // Toggles UIX::UIXCheckBox* m_CheatsToggle; - UIX::UIXCheckBox* m_DevelopmentToggle; + UIX::UIXCheckBox* m_DeveloperToggle; UIX::UIXCheckBox* m_ConsoleToggle; UIX::UIXCheckBox* m_WindowedToggle; UIX::UIXCheckBox* m_NoBorderToggle;