make a member of FurnaceGUI

This commit is contained in:
Eknous-P 2023-12-08 16:08:31 +04:00
parent 594eb55942
commit 96ad124100
3 changed files with 6 additions and 2 deletions

View file

@ -31,7 +31,6 @@ void FurnaceGUI::drawExport() {
if (ImGui::BeginChild("sysPickerC",avail,false,ImGuiWindowFlags_NoScrollWithMouse|ImGuiWindowFlags_NoScrollbar)) { if (ImGui::BeginChild("sysPickerC",avail,false,ImGuiWindowFlags_NoScrollWithMouse|ImGuiWindowFlags_NoScrollbar)) {
if (ImGui::BeginTabBar("ExportTypes")) { if (ImGui::BeginTabBar("ExportTypes")) {
if (ImGui::BeginTabItem("Audio")) { if (ImGui::BeginTabItem("Audio")) {
static int audioExportType=0;
ImGui::RadioButton("one file",&audioExportType,0); ImGui::RadioButton("one file",&audioExportType,0);
ImGui::RadioButton("multiple files (one per chip)",&audioExportType,1); ImGui::RadioButton("multiple files (one per chip)",&audioExportType,1);
ImGui::RadioButton("multiple files (one per channel)",&audioExportType,2); ImGui::RadioButton("multiple files (one per channel)",&audioExportType,2);

View file

@ -7688,7 +7688,9 @@ FurnaceGUI::FurnaceGUI():
introSkipDo(false), introSkipDo(false),
introStopped(false), introStopped(false),
curTutorial(-1), curTutorial(-1),
curTutorialStep(0) { curTutorialStep(0),
//audio export types (export options)
audioExportType(0) {
// value keys // value keys
valueKeys[SDLK_0]=0; valueKeys[SDLK_0]=0;
valueKeys[SDLK_1]=1; valueKeys[SDLK_1]=1;

View file

@ -2267,6 +2267,9 @@ class FurnaceGUI {
// tutorial // tutorial
int curTutorial, curTutorialStep; int curTutorial, curTutorialStep;
//audio export types (export options)
int audioExportType;
void drawSSGEnv(unsigned char type, const ImVec2& size); void drawSSGEnv(unsigned char type, const ImVec2& size);
void drawWaveform(unsigned char type, bool opz, const ImVec2& size); void drawWaveform(unsigned char type, bool opz, const ImVec2& size);
void drawAlgorithm(unsigned char alg, FurnaceGUIFMAlgs algType, const ImVec2& size); void drawAlgorithm(unsigned char alg, FurnaceGUIFMAlgs algType, const ImVec2& size);