add "shown in pattern/oscilloscope" as selections for per-channel export

This commit is contained in:
yohannd1 2024-07-30 01:41:31 -03:00 committed by tildearrow
parent 4a99e96483
commit dcf904c99f

View file

@ -87,6 +87,18 @@ void FurnaceGUI::drawExportAudio(bool onWindow) {
}
}
ImGui::SameLine();
if (ImGui::SmallButton(_("Shown in pattern"))) {
for (int i=0; i<DIV_MAX_CHANS; i++) {
audioExportOptions.channelMask[i]=e->curSubSong->chanShow[i];
}
}
ImGui::SameLine();
if (ImGui::SmallButton(_("Shown in oscilloscope"))) {
for (int i=0; i<DIV_MAX_CHANS; i++) {
audioExportOptions.channelMask[i]=e->curSubSong->chanShowChanOsc[i];
}
}
ImGui::SameLine();
if (ImGui::SmallButton(_("Invert"))) {
for (int i=0; i<DIV_MAX_CHANS; i++) {
audioExportOptions.channelMask[i]=!audioExportOptions.channelMask[i];