more work
This commit is contained in:
parent
a642cb4d4b
commit
f80340ebcc
|
@ -66,6 +66,7 @@ void FurnaceGUI::doAction(int what) {
|
||||||
openFileDialog(GUI_FILE_SAVE);
|
openFileDialog(GUI_FILE_SAVE);
|
||||||
break;
|
break;
|
||||||
case GUI_ACTION_EXPORT:
|
case GUI_ACTION_EXPORT:
|
||||||
|
curExportType=-1;
|
||||||
displayExport=true;
|
displayExport=true;
|
||||||
break;
|
break;
|
||||||
case GUI_ACTION_UNDO:
|
case GUI_ACTION_UNDO:
|
||||||
|
|
|
@ -519,24 +519,8 @@ void FurnaceGUI::drawMobileControls() {
|
||||||
openFileDialog(GUI_FILE_SAVE_DMF_LEGACY);
|
openFileDialog(GUI_FILE_SAVE_DMF_LEGACY);
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Export Audio")) {
|
if (ImGui::Button("Export")) {
|
||||||
openFileDialog(GUI_FILE_EXPORT_AUDIO_ONE);
|
doAction(GUI_ACTION_EXPORT);
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("Export VGM")) {
|
|
||||||
openFileDialog(GUI_FILE_EXPORT_VGM);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ImGui::Button("CmdStream")) {
|
|
||||||
openFileDialog(GUI_FILE_EXPORT_CMDSTREAM_BINARY);
|
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("CmdStream Text")) {
|
|
||||||
openFileDialog(GUI_FILE_EXPORT_CMDSTREAM);
|
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("Text")) {
|
|
||||||
openFileDialog(GUI_FILE_EXPORT_TEXT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::Button("Restore Backup")) {
|
if (ImGui::Button("Restore Backup")) {
|
||||||
|
|
|
@ -223,7 +223,7 @@ void FurnaceGUI::drawExport() {
|
||||||
ImVec2 avail=ImGui::GetContentRegionAvail();
|
ImVec2 avail=ImGui::GetContentRegionAvail();
|
||||||
avail.y-=ImGui::GetFrameHeightWithSpacing();
|
avail.y-=ImGui::GetFrameHeightWithSpacing();
|
||||||
|
|
||||||
if (ImGui::BeginChild("sysPickerC",avail,false,ImGuiWindowFlags_NoScrollWithMouse|ImGuiWindowFlags_NoScrollbar)) {
|
if (ImGui::BeginChild("sysPickerC",avail,false)) {
|
||||||
if (ImGui::BeginTabBar("ExportTypes")) {
|
if (ImGui::BeginTabBar("ExportTypes")) {
|
||||||
if (ImGui::BeginTabItem("Audio")) {
|
if (ImGui::BeginTabItem("Audio")) {
|
||||||
drawExportAudio();
|
drawExportAudio();
|
||||||
|
|
|
@ -4101,7 +4101,7 @@ bool FurnaceGUI::loop() {
|
||||||
openFileDialog(GUI_FILE_SAVE_DMF_LEGACY);
|
openFileDialog(GUI_FILE_SAVE_DMF_LEGACY);
|
||||||
}
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if (settings.exportOptionsLayout) {
|
if (settings.exportOptionsLayout==0) {
|
||||||
if (ImGui::BeginMenu("export audio...")) {
|
if (ImGui::BeginMenu("export audio...")) {
|
||||||
drawExportAudio();
|
drawExportAudio();
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
@ -4114,7 +4114,7 @@ bool FurnaceGUI::loop() {
|
||||||
for (int i=0; i<e->song.systemLen; i++) {
|
for (int i=0; i<e->song.systemLen; i++) {
|
||||||
if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++;
|
if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++;
|
||||||
}
|
}
|
||||||
if (numZSMCompat > 0) {
|
if (numZSMCompat>0) {
|
||||||
if (ImGui::BeginMenu("export ZSM...")) {
|
if (ImGui::BeginMenu("export ZSM...")) {
|
||||||
drawExportZSM();
|
drawExportZSM();
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
@ -4138,6 +4138,8 @@ bool FurnaceGUI::loop() {
|
||||||
drawExportCommand();
|
drawExportCommand();
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
} else if (settings.exportOptionsLayout==2) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (ImGui::MenuItem("export...",BIND_FOR(GUI_ACTION_EXPORT))) {
|
if (ImGui::MenuItem("export...",BIND_FOR(GUI_ACTION_EXPORT))) {
|
||||||
displayExport=true;
|
displayExport=true;
|
||||||
|
@ -7594,7 +7596,8 @@ FurnaceGUI::FurnaceGUI():
|
||||||
introStopped(false),
|
introStopped(false),
|
||||||
curTutorial(-1),
|
curTutorial(-1),
|
||||||
curTutorialStep(0),
|
curTutorialStep(0),
|
||||||
audioExportType(0) {
|
audioExportType(0),
|
||||||
|
curExportType(-1) {
|
||||||
// value keys
|
// value keys
|
||||||
valueKeys[SDLK_0]=0;
|
valueKeys[SDLK_0]=0;
|
||||||
valueKeys[SDLK_1]=1;
|
valueKeys[SDLK_1]=1;
|
||||||
|
|
|
@ -2334,8 +2334,9 @@ class FurnaceGUI {
|
||||||
// tutorial
|
// tutorial
|
||||||
int curTutorial, curTutorialStep;
|
int curTutorial, curTutorialStep;
|
||||||
|
|
||||||
// audio export types (export options)
|
// export options
|
||||||
int audioExportType;
|
int audioExportType;
|
||||||
|
int curExportType;
|
||||||
|
|
||||||
void drawExportAudio();
|
void drawExportAudio();
|
||||||
void drawExportVGM();
|
void drawExportVGM();
|
||||||
|
|
|
@ -537,7 +537,7 @@ const FurnaceGUIActionDef guiActions[GUI_ACTION_MAX]={
|
||||||
D("OPEN_BACKUP", "Restore backup", 0),
|
D("OPEN_BACKUP", "Restore backup", 0),
|
||||||
D("SAVE", "Save file", FURKMOD_CMD|SDLK_s),
|
D("SAVE", "Save file", FURKMOD_CMD|SDLK_s),
|
||||||
D("SAVE_AS", "Save as", FURKMOD_CMD|FURKMOD_SHIFT|SDLK_s),
|
D("SAVE_AS", "Save as", FURKMOD_CMD|FURKMOD_SHIFT|SDLK_s),
|
||||||
D("EXPORT", "Export", FURKMOD_CMD|SDLK_e),
|
D("EXPORT", "Export", 0),
|
||||||
D("UNDO", "Undo", FURKMOD_CMD|SDLK_z),
|
D("UNDO", "Undo", FURKMOD_CMD|SDLK_z),
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
D("REDO", "Redo", FURKMOD_CMD|FURKMOD_SHIFT|SDLK_z),
|
D("REDO", "Redo", FURKMOD_CMD|FURKMOD_SHIFT|SDLK_z),
|
||||||
|
|
|
@ -2661,6 +2661,7 @@ void FurnaceGUI::drawSettings() {
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
|
|
||||||
ImGui::Text("Export options layout:");
|
ImGui::Text("Export options layout:");
|
||||||
|
ImGui::Indent();
|
||||||
if (ImGui::RadioButton("Sub-menus in File menu##eol0",settings.exportOptionsLayout==0)) {
|
if (ImGui::RadioButton("Sub-menus in File menu##eol0",settings.exportOptionsLayout==0)) {
|
||||||
settings.exportOptionsLayout=0;
|
settings.exportOptionsLayout=0;
|
||||||
settingsChanged=true;
|
settingsChanged=true;
|
||||||
|
@ -2673,6 +2674,7 @@ void FurnaceGUI::drawSettings() {
|
||||||
settings.exportOptionsLayout=2;
|
settings.exportOptionsLayout=2;
|
||||||
settingsChanged=true;
|
settingsChanged=true;
|
||||||
}
|
}
|
||||||
|
ImGui::Unindent();
|
||||||
|
|
||||||
bool capitalMenuBarB=settings.capitalMenuBar;
|
bool capitalMenuBarB=settings.capitalMenuBar;
|
||||||
if (ImGui::Checkbox("Capitalize menu bar",&capitalMenuBarB)) {
|
if (ImGui::Checkbox("Capitalize menu bar",&capitalMenuBarB)) {
|
||||||
|
|
Loading…
Reference in a new issue