put the types in a child

now the cancel button is neatly at the bottom :)
This commit is contained in:
Eknous-P 2023-12-05 18:00:14 +04:00
parent b90132d733
commit d2ca97c57a

View file

@ -24,6 +24,11 @@
void FurnaceGUI::drawExport() {
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::BeginTabItem("Audio")) {
static int audioExportType=0;
@ -225,6 +230,8 @@ void FurnaceGUI::drawExport() {
}
ImGui::EndTabBar();
}
ImGui::EndChild();
}
ImGui::Separator();
if (ImGui::Button("Cancel")) ImGui::CloseCurrentPopup();
}