SaveTool: reorganise the UI again.
This commit is contained in:
parent
13b4785a43
commit
92cab050ad
1 changed files with 16 additions and 22 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
drawResearchInventory();
|
||||
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},
|
||||
|
|
Loading…
Reference in a new issue