From 89971b2d77d8d8e7da3fdfcc60fefea31853cc94 Mon Sep 17 00:00:00 2001 From: emerycp Date: Thu, 5 Sep 2024 21:37:55 -0400 Subject: [PATCH] Added .project properties to Project Settings --- .../ProjectSettings/ProjectSettingsWindow.cpp | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Editor/src/Windows/ProjectSettings/ProjectSettingsWindow.cpp b/Editor/src/Windows/ProjectSettings/ProjectSettingsWindow.cpp index 7cf52849..94d74d7d 100644 --- a/Editor/src/Windows/ProjectSettings/ProjectSettingsWindow.cpp +++ b/Editor/src/Windows/ProjectSettings/ProjectSettingsWindow.cpp @@ -15,23 +15,24 @@ ProjectSettingsCategoryWindowGeneral::ProjectSettingsCategoryWindowGeneral(RefName); - //ImGui::InputTextMultiline("Project Description", &m_Project->Description); + ImGui::InputText("Project Name", &m_Project->Name); - if (ImGui::Button("Locate")) - { - const std::string& locationPath = Nuake::FileDialog::OpenFile("TrenchBroom (.exe)\0TrenchBroom.exe\0"); + ImGui::InputTextMultiline("Project Description", &m_Project->Description); + + if (ImGui::Button("Locate")) + { + const std::string& locationPath = Nuake::FileDialog::OpenFile("TrenchBroom (.exe)\0TrenchBroom.exe\0"); - if (!locationPath.empty()) - { - m_Project->TrenchbroomPath = locationPath; - } - } + if (!locationPath.empty()) + { + m_Project->TrenchbroomPath = locationPath; + } + } - ImGui::ColorEdit4("Primary Color", &m_Project->Settings.PrimaryColor.r); - - //ImGui::InputText("Trenchbroom Path", &m_Project->TrenchbroomPath); + ImGui::SameLine(); + ImGui::InputText("Trenchbroom Path", &m_Project->TrenchbroomPath); + + ImGui::ColorEdit4("Primary Color", &m_Project->Settings.PrimaryColor.r); } ProjectSettingsWindow::ProjectSettingsWindow() @@ -64,7 +65,7 @@ void ProjectSettingsWindow::Draw() return; } - ImGui::SetNextWindowSizeConstraints({600, 300}, {1280, 720}); + ImGui::SetNextWindowSizeConstraints({800, 400}, {1280, 720}); if (ImGui::Begin("Project Settings", &m_DisplayWindow, ImGuiWindowFlags_NoDocking)) { ImVec4* colors = ImGui::GetStyle().Colors;