downgrade .dmf to export status
This commit is contained in:
parent
bf6d98d3c1
commit
b253bd862b
3 changed files with 47 additions and 7 deletions
|
|
@ -251,6 +251,33 @@ void FurnaceGUI::drawExportCommand(bool onWindow) {
|
|||
}
|
||||
}
|
||||
|
||||
void FurnaceGUI::drawExportDMF(bool onWindow) {
|
||||
exitDisabledTimer=1;
|
||||
|
||||
ImGui::Text(
|
||||
"export in DefleMask module format.\n"
|
||||
"only do it if you really, really need to, or are downgrading an existing .dmf."
|
||||
);
|
||||
|
||||
ImGui::Text("format version:");
|
||||
ImGui::RadioButton("1.1.3 and higher",&dmfExportVersion,0);
|
||||
ImGui::RadioButton("1.0/legacy (0.12)",&dmfExportVersion,1);
|
||||
|
||||
if (onWindow) {
|
||||
ImGui::Separator();
|
||||
if (ImGui::Button("Cancel",ImVec2(200.0f*dpiScale,0))) ImGui::CloseCurrentPopup();
|
||||
ImGui::SameLine();
|
||||
}
|
||||
if (ImGui::Button("Export",ImVec2(200.0f*dpiScale,0))) {
|
||||
if (dmfExportVersion==1) {
|
||||
openFileDialog(GUI_FILE_SAVE_DMF_LEGACY);
|
||||
} else {
|
||||
openFileDialog(GUI_FILE_SAVE_DMF);
|
||||
}
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
}
|
||||
|
||||
void FurnaceGUI::drawExport() {
|
||||
if (settings.exportOptionsLayout==1 || curExportType==GUI_EXPORT_NONE) {
|
||||
if (ImGui::BeginTabBar("ExportTypes")) {
|
||||
|
|
@ -290,6 +317,10 @@ void FurnaceGUI::drawExport() {
|
|||
drawExportCommand(true);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("DMF")) {
|
||||
drawExportDMF(true);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
} else switch (curExportType) {
|
||||
|
|
@ -311,6 +342,9 @@ void FurnaceGUI::drawExport() {
|
|||
case GUI_EXPORT_CMD_STREAM:
|
||||
drawExportCommand(true);
|
||||
break;
|
||||
case GUI_EXPORT_DMF:
|
||||
drawExportDMF(true);
|
||||
break;
|
||||
default:
|
||||
ImGui::Text("congratulations! you've unlocked a secret panel.");
|
||||
if (ImGui::Button("Toggle hidden systems")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue