put the types in a child
now the cancel button is neatly at the bottom :)
This commit is contained in:
parent
b90132d733
commit
d2ca97c57a
|
@ -24,6 +24,11 @@
|
||||||
|
|
||||||
void FurnaceGUI::drawExport() {
|
void FurnaceGUI::drawExport() {
|
||||||
exitDisabledTimer=1;
|
exitDisabledTimer=1;
|
||||||
|
|
||||||
|
ImVec2 avail=ImGui::GetContentRegionAvail();
|
||||||
|
avail.y-=ImGui::GetFrameHeightWithSpacing();
|
||||||
|
|
||||||
|
if (ImGui::BeginChild("sysPickerC",avail,false,ImGuiWindowFlags_NoScrollWithMouse|ImGuiWindowFlags_NoScrollbar)) {
|
||||||
if (ImGui::BeginTabBar("ExportTypes")) {
|
if (ImGui::BeginTabBar("ExportTypes")) {
|
||||||
if (ImGui::BeginTabItem("Audio")) {
|
if (ImGui::BeginTabItem("Audio")) {
|
||||||
static int audioExportType=0;
|
static int audioExportType=0;
|
||||||
|
@ -225,6 +230,8 @@ void FurnaceGUI::drawExport() {
|
||||||
}
|
}
|
||||||
ImGui::EndTabBar();
|
ImGui::EndTabBar();
|
||||||
}
|
}
|
||||||
|
ImGui::EndChild();
|
||||||
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if (ImGui::Button("Cancel")) ImGui::CloseCurrentPopup();
|
if (ImGui::Button("Cancel")) ImGui::CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue