GUI: implement separate export options
This commit is contained in:
parent
f7d325d4d7
commit
c65debad68
|
@ -224,6 +224,7 @@ void FurnaceGUI::drawExport() {
|
||||||
avail.y-=ImGui::GetFrameHeightWithSpacing();
|
avail.y-=ImGui::GetFrameHeightWithSpacing();
|
||||||
|
|
||||||
if (ImGui::BeginChild("sysPickerC",avail,false)) {
|
if (ImGui::BeginChild("sysPickerC",avail,false)) {
|
||||||
|
if (settings.exportOptionsLayout==1 || curExportType==GUI_EXPORT_NONE) {
|
||||||
if (ImGui::BeginTabBar("ExportTypes")) {
|
if (ImGui::BeginTabBar("ExportTypes")) {
|
||||||
if (ImGui::BeginTabItem("Audio")) {
|
if (ImGui::BeginTabItem("Audio")) {
|
||||||
drawExportAudio();
|
drawExportAudio();
|
||||||
|
@ -263,6 +264,63 @@ void FurnaceGUI::drawExport() {
|
||||||
}
|
}
|
||||||
ImGui::EndTabBar();
|
ImGui::EndTabBar();
|
||||||
}
|
}
|
||||||
|
} else switch (curExportType) {
|
||||||
|
case GUI_EXPORT_AUDIO:
|
||||||
|
drawExportAudio();
|
||||||
|
break;
|
||||||
|
case GUI_EXPORT_VGM:
|
||||||
|
drawExportVGM();
|
||||||
|
break;
|
||||||
|
case GUI_EXPORT_ZSM:
|
||||||
|
drawExportZSM();
|
||||||
|
break;
|
||||||
|
case GUI_EXPORT_AMIGA_VAL:
|
||||||
|
drawExportAmigaVal();
|
||||||
|
break;
|
||||||
|
case GUI_EXPORT_TEXT:
|
||||||
|
drawExportText();
|
||||||
|
break;
|
||||||
|
case GUI_EXPORT_CMD_STREAM:
|
||||||
|
drawExportCommand();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ImGui::Text("congratulations! you've unlocked a secret panel.");
|
||||||
|
if (ImGui::Button("Toggle hidden systems")) {
|
||||||
|
settings.hiddenSystems=!settings.hiddenSystems;
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Toggle all instrument types")) {
|
||||||
|
settings.displayAllInsTypes=!settings.displayAllInsTypes;
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Set pitch linearity to Partial")) {
|
||||||
|
e->song.linearPitch=1;
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Enable multi-threading settings")) {
|
||||||
|
settings.showPool=1;
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Set fat to max")) {
|
||||||
|
ImGuiStyle& sty=ImGui::GetStyle();
|
||||||
|
sty.FramePadding=ImVec2(20.0f*dpiScale,20.0f*dpiScale);
|
||||||
|
sty.ItemSpacing=ImVec2(10.0f*dpiScale,10.0f*dpiScale);
|
||||||
|
sty.ItemInnerSpacing=ImVec2(10.0f*dpiScale,10.0f*dpiScale);
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Set muscle and fat to zero")) {
|
||||||
|
ImGuiStyle& sty=ImGui::GetStyle();
|
||||||
|
sty.FramePadding=ImVec2(0,0);
|
||||||
|
sty.ItemSpacing=ImVec2(0,0);
|
||||||
|
sty.ItemInnerSpacing=ImVec2(0,0);
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
if (ImGui::Button("Tell tildearrow this must be a mistake")) {
|
||||||
|
showError("yeah, it's a bug. write a bug report in the GitHub page and tell me how did you get here.");
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
Loading…
Reference in a new issue