GUI: and now for backspace too

This commit is contained in:
tildearrow 2023-06-10 15:50:08 -05:00
parent 02f6a0f217
commit accec6d865
3 changed files with 24 additions and 6 deletions

View file

@ -548,6 +548,11 @@ void FurnaceGUI::drawSettings() {
settings.insertBehavior=insertBehaviorB;
}
bool pullDeleteRowB=settings.pullDeleteRow;
if (ImGui::Checkbox("Pull delete affects entire channel row",&pullDeleteRowB)) {
settings.pullDeleteRow=pullDeleteRowB;
}
bool absorbInsInputB=settings.absorbInsInput;
if (ImGui::Checkbox("Change current instrument when changing instrument column (absorb)",&absorbInsInputB)) {
settings.absorbInsInput=absorbInsInputB;
@ -2743,6 +2748,7 @@ void FurnaceGUI::syncSettings() {
settings.renderBackend=e->getConfString("renderBackend","SDL");
settings.renderClearPos=e->getConfInt("renderClearPos",0);
settings.insertBehavior=e->getConfInt("insertBehavior",1);
settings.pullDeleteRow=e->getConfInt("pullDeleteRow",1);
clampSetting(settings.mainFontSize,2,96);
clampSetting(settings.patFontSize,2,96);
@ -2867,6 +2873,7 @@ void FurnaceGUI::syncSettings() {
clampSetting(settings.newPatternFormat,0,1);
clampSetting(settings.renderClearPos,0,1);
clampSetting(settings.insertBehavior,0,1);
clampSetting(settings.pullDeleteRow,0,1);
if (settings.exportLoops<0.0) settings.exportLoops=0.0;
if (settings.exportFadeOut<0.0) settings.exportFadeOut=0.0;
@ -3087,6 +3094,7 @@ void FurnaceGUI::commitSettings() {
e->setConf("renderBackend",settings.renderBackend);
e->setConf("renderClearPos",settings.renderClearPos);
e->setConf("insertBehavior",settings.insertBehavior);
e->setConf("pullDeleteRow",settings.pullDeleteRow);
// colors
for (int i=0; i<GUI_COLOR_MAX; i++) {