mirror of
https://github.com/antopilo/Nuake.git
synced 2026-02-25 14:32:55 +03:00
Added .project properties to Project Settings
This commit is contained in:
@@ -15,23 +15,24 @@ ProjectSettingsCategoryWindowGeneral::ProjectSettingsCategoryWindowGeneral(Ref<N
|
|||||||
|
|
||||||
void ProjectSettingsCategoryWindowGeneral::Draw()
|
void ProjectSettingsCategoryWindowGeneral::Draw()
|
||||||
{
|
{
|
||||||
using namespace Nuake;
|
ImGui::InputText("Project Name", &m_Project->Name);
|
||||||
//ImGui::InputText("Project Name", &m_Project->Name);
|
|
||||||
//ImGui::InputTextMultiline("Project Description", &m_Project->Description);
|
|
||||||
|
|
||||||
if (ImGui::Button("Locate"))
|
ImGui::InputTextMultiline("Project Description", &m_Project->Description);
|
||||||
{
|
|
||||||
const std::string& locationPath = Nuake::FileDialog::OpenFile("TrenchBroom (.exe)\0TrenchBroom.exe\0");
|
if (ImGui::Button("Locate"))
|
||||||
|
{
|
||||||
|
const std::string& locationPath = Nuake::FileDialog::OpenFile("TrenchBroom (.exe)\0TrenchBroom.exe\0");
|
||||||
|
|
||||||
if (!locationPath.empty())
|
if (!locationPath.empty())
|
||||||
{
|
{
|
||||||
m_Project->TrenchbroomPath = locationPath;
|
m_Project->TrenchbroomPath = locationPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::ColorEdit4("Primary Color", &m_Project->Settings.PrimaryColor.r);
|
ImGui::SameLine();
|
||||||
|
ImGui::InputText("Trenchbroom Path", &m_Project->TrenchbroomPath);
|
||||||
//ImGui::InputText("Trenchbroom Path", &m_Project->TrenchbroomPath);
|
|
||||||
|
ImGui::ColorEdit4("Primary Color", &m_Project->Settings.PrimaryColor.r);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectSettingsWindow::ProjectSettingsWindow()
|
ProjectSettingsWindow::ProjectSettingsWindow()
|
||||||
@@ -64,7 +65,7 @@ void ProjectSettingsWindow::Draw()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SetNextWindowSizeConstraints({600, 300}, {1280, 720});
|
ImGui::SetNextWindowSizeConstraints({800, 400}, {1280, 720});
|
||||||
if (ImGui::Begin("Project Settings", &m_DisplayWindow, ImGuiWindowFlags_NoDocking))
|
if (ImGui::Begin("Project Settings", &m_DisplayWindow, ImGuiWindowFlags_NoDocking))
|
||||||
{
|
{
|
||||||
ImVec4* colors = ImGui::GetStyle().Colors;
|
ImVec4* colors = ImGui::GetStyle().Colors;
|
||||||
|
|||||||
Reference in New Issue
Block a user