From 721445cf07071d8f23ae6b655face7251d8fb505 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 22 Feb 2022 02:01:59 -0500 Subject: [PATCH] release v0.5.7 (for real this time) also fix oscilloscope and add layout reset option --- src/engine/engine.h | 4 +-- src/gui/gui.cpp | 59 +++++++++++++++++++++++++++++++++++++-------- src/gui/insEdit.cpp | 3 ++- 3 files changed, 53 insertions(+), 13 deletions(-) diff --git a/src/engine/engine.h b/src/engine/engine.h index b097b74533..71b0de3035 100644 --- a/src/engine/engine.h +++ b/src/engine/engine.h @@ -37,8 +37,8 @@ warnings+=(String("\n")+x); \ } -#define DIV_VERSION "0.5.7pre4" -#define DIV_ENGINE_VERSION 52 +#define DIV_VERSION "0.5.7" +#define DIV_ENGINE_VERSION 53 enum DivStatusView { DIV_STATUS_NOTHING=0, diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index ab2e0286bd..2cb3ecfe23 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1379,7 +1379,6 @@ void FurnaceGUI::drawOsc() { if (!oscOpen) return; ImGui::SetNextWindowSizeConstraints(ImVec2(64.0f*dpiScale,32.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale)); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding,ImVec2(0,0)); - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,ImVec2(0,0)); ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing,ImVec2(0,0)); ImGui::PushStyleVar(ImGuiStyleVar_ItemInnerSpacing,ImVec2(0,0)); if (ImGui::Begin("Oscilloscope",&oscOpen)) { @@ -1393,7 +1392,7 @@ void FurnaceGUI::drawOsc() { ImGui::PlotLines("##SingleOsc",values,512,0,NULL,-1.0f,1.0f,ImGui::GetContentRegionAvail()); ImGui::EndDisabled(); } - ImGui::PopStyleVar(4); + ImGui::PopStyleVar(3); if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_OSCILLOSCOPE; ImGui::End(); } @@ -1487,7 +1486,7 @@ void FurnaceGUI::drawVolMeter() { ImGui::End(); } -const char* aboutLine[57]={ +const char* aboutLine[93]={ "tildearrow", "is proud to present", "", @@ -1497,8 +1496,39 @@ const char* aboutLine[57]={ "compatible with DefleMask modules.", "", "zero disassembly.", - "zero reverse-engineering.", - "only time and dedication.", + "just clean-room design,", + "time and dedication.", + "", + "> CREDITS <", + "", + "-- program --", + "tildearrow", + "", + "-- graphics --", + "tildearrow", + "", + "-- documentation --", + "tildearrow", + "freq-mod", + "nicco1690", + "DeMOSic", + "cam900", + "", + "-- demo songs --", + "0x5066", + "breakthetargets", + "kleeder", + "NikonTeen", + "SuperJet Spade", + "TheDuccinator", + "tildearrow", + "Ultraprogramer", + "", + "-- additional feedback/fixes --", + "fd", + "OPNA2608", + "plane", + "TheEssem", "", "powered by:", "Dear ImGui by Omar Cornut", @@ -1525,7 +1555,8 @@ const char* aboutLine[57]={ "ILLUMIDARO", "all members of Deflers of Noice!", "", - "copyright © 2021-2022 tildearrow.", + "copyright © 2021-2022 tildearrow", + "(and contributors).", "licensed under GPLv2+! see", "LICENSE for more information.", "", @@ -1544,7 +1575,11 @@ const char* aboutLine[57]={ "", "it also comes with ABSOLUTELY NO WARRANTY.", "", - "thanks to all contributors!" + "look out for Furnace 0.6 coming somewhere", + "before the equinox with more systems", + "and plenty of other things...", + "", + "thanks to all contributors/bug reporters!" }; void FurnaceGUI::drawAbout() { @@ -1586,7 +1621,7 @@ void FurnaceGUI::drawAbout() { skip=false; skip2=false; - for (int i=(-fmod(160-(aboutSin*2),160))*2; iscrH*dpiScale) continue; @@ -1626,7 +1661,7 @@ void FurnaceGUI::drawAbout() { while (aboutHue>1) aboutHue--; while (aboutSin>=2400) aboutSin-=2400; - if (aboutScroll>(42*57+scrH)) aboutScroll=-20; + if (aboutScroll>(42*93+scrH)) aboutScroll=-20; } if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_ABOUT; ImGui::End(); @@ -4691,6 +4726,10 @@ bool FurnaceGUI::loop() { ImGui::EndMenu(); } if (ImGui::BeginMenu("settings")) { + if (ImGui::MenuItem("reset layout")) { + ImGui::LoadIniSettingsFromMemory(defaultLayout); + ImGui::SaveIniSettingsToDisk(finalLayoutPath); + } if (ImGui::MenuItem("settings...",BIND_FOR(GUI_ACTION_WINDOW_SETTINGS))) { syncSettings(); settingsOpen=true; diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index 0358fe007e..e877c905ff 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -693,7 +693,8 @@ void FurnaceGUI::drawInsEdit() { ImGui::InputText("Name",&ins->name); if (ins->type<0 || ins->type>22) ins->type=DIV_INS_FM; int insType=ins->type; - if (ImGui::Combo("Type",&insType,insTypes,23)) { + // TODO: set to 23 for 0.6 + if (ImGui::Combo("Type",&insType,insTypes,10)) { ins->type=(DivInstrumentType)insType; }