SaveTool: reorganise the UI again.

This commit is contained in:
Guillaume Jacquemin 2021-06-21 00:28:16 +02:00
parent 13b4785a43
commit 92cab050ad

View file

@ -67,38 +67,32 @@ void SaveTool::drawManager() {
ImGui::EndTable();
}
ImGui::BeginGroup();
if(ImGui::BeginChild("##GeneralProfileInfo",
{ImGui::GetContentRegionAvailWidth() * 0.60f, (ImGui::GetContentRegionAvail().y - ImGui::GetStyle().ItemSpacing.x) / 2.0f},
true, ImGuiWindowFlags_MenuBar))
{
if(ImGui::BeginMenuBar()) {
ImGui::TextUnformatted("General profile information");
ImGui::EndMenuBar();
}
drawGeneralInfo();
}
ImGui::EndChild();
ImGui::Dummy({0.0f, 0.0f});
if(ImGui::BeginChild("##ResearchInventory",
if(ImGui::BeginChild("##ProfileInfo",
{ImGui::GetContentRegionAvailWidth() * 0.60f, 0.0f},
true, ImGuiWindowFlags_MenuBar))
{
if(ImGui::BeginMenuBar()) {
ImGui::TextUnformatted("Research inventory");
ImGui::TextUnformatted("Profile information");
ImGui::EndMenuBar();
}
if(ImGui::BeginTabBar("##ProfileTabBar")) {
if(ImGui::BeginTabItem("General info")) {
drawGeneralInfo();
ImGui::EndTabItem();
}
if(ImGui::BeginTabItem("Research inventory")) {
drawResearchInventory();
ImGui::EndTabItem();
}
ImGui::EndTabBar();
}
}
ImGui::EndChild();
ImGui::EndGroup();
ImGui::SameLine();
if(ImGui::BeginChild("##MASSManager", {0.0f, 0.0f},