mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-03 14:11:11 +00:00
Menu option, settings file
This commit is contained in:
parent
164d56a21f
commit
559a99c5fc
2 changed files with 10 additions and 0 deletions
|
@ -803,6 +803,7 @@ class FurnaceGUI {
|
|||
int loadJapanese;
|
||||
int fmLayout;
|
||||
int sampleLayout;
|
||||
int waveLayout;
|
||||
int susPosition;
|
||||
int effectCursorDir;
|
||||
int cursorPastePos;
|
||||
|
@ -877,6 +878,7 @@ class FurnaceGUI {
|
|||
loadJapanese(0),
|
||||
fmLayout(0),
|
||||
sampleLayout(0),
|
||||
waveLayout(0),
|
||||
susPosition(0),
|
||||
effectCursorDir(1),
|
||||
cursorPastePos(1),
|
||||
|
|
|
@ -963,6 +963,11 @@ void FurnaceGUI::drawSettings() {
|
|||
|
||||
ImGui::Separator();
|
||||
|
||||
bool waveLayoutB=settings.waveLayout;
|
||||
if (ImGui::Checkbox("Use compact wave editor",&waveLayoutB)) {
|
||||
settings.waveLayout=waveLayoutB;
|
||||
}
|
||||
|
||||
bool sampleLayoutB=settings.sampleLayout;
|
||||
if (ImGui::Checkbox("Use compact sample editor",&sampleLayoutB)) {
|
||||
settings.sampleLayout=sampleLayoutB;
|
||||
|
@ -1620,6 +1625,7 @@ void FurnaceGUI::syncSettings() {
|
|||
settings.loadJapanese=e->getConfInt("loadJapanese",0);
|
||||
settings.fmLayout=e->getConfInt("fmLayout",0);
|
||||
settings.sampleLayout=e->getConfInt("sampleLayout",0);
|
||||
settings.waveLayout=e->getConfInt("waveLayout",0);
|
||||
settings.susPosition=e->getConfInt("susPosition",0);
|
||||
settings.effectCursorDir=e->getConfInt("effectCursorDir",1);
|
||||
settings.cursorPastePos=e->getConfInt("cursorPastePos",1);
|
||||
|
@ -1693,6 +1699,7 @@ void FurnaceGUI::syncSettings() {
|
|||
clampSetting(settings.frameBorders,0,1);
|
||||
clampSetting(settings.effectDeletionAltersValue,0,1);
|
||||
clampSetting(settings.sampleLayout,0,1);
|
||||
clampSetting(settings.waveLayout,0,1);
|
||||
clampSetting(settings.separateFMColors,0,1);
|
||||
clampSetting(settings.insEditColorize,0,1);
|
||||
clampSetting(settings.metroVol,0,200);
|
||||
|
@ -1773,6 +1780,7 @@ void FurnaceGUI::commitSettings() {
|
|||
e->setConf("loadJapanese",settings.loadJapanese);
|
||||
e->setConf("fmLayout",settings.fmLayout);
|
||||
e->setConf("sampleLayout",settings.sampleLayout);
|
||||
e->setConf("waveLayout",settings.waveLayout);
|
||||
e->setConf("susPosition",settings.susPosition);
|
||||
e->setConf("effectCursorDir",settings.effectCursorDir);
|
||||
e->setConf("cursorPastePos",settings.cursorPastePos);
|
||||
|
|
Loading…
Reference in a new issue