From d2ee6d2d2fb689f835a0223817c33da4381ec68c Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 21 Nov 2020 08:20:50 -0500 Subject: [PATCH] Close tips window when pressing Escape. Update changelog. --- CHANGELOG.md | 2 ++ src/app/TipWindow.cpp | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa428099..43e87357 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ In this document, Mod is Ctrl on Windows/Linux and Cmd on Mac. - Re-render framebuffers when subpixel offset changes, fixing bug that makes ports and knobs appear slightly offset at certain zoom levels. - Use new `.vcv` patch format, an archive (POSIX tar compressed with Zstandard) of a `patch.json` file, module patch assets, and potentially other future files. - Use randomly-generated 53-bit IDs to identify modules and cables in the patch. +- Use a fuzzy search algorithm for searching modules in the Module Browser. +- Add tips window which appears when Rack launches or when choosing "Help > Tips". - Core - Add Audio-2 module with stereo input/output, a level knob, and VU meters. diff --git a/src/app/TipWindow.cpp b/src/app/TipWindow.cpp index c408b980..037123a0 100644 --- a/src/app/TipWindow.cpp +++ b/src/app/TipWindow.cpp @@ -31,6 +31,17 @@ struct TipOverlay : widget::OpaqueWidget { e.consume(this); } } + + void onHoverKey(const event::HoverKey& e) override { + OpaqueWidget::onHoverKey(e); + if (e.isConsumed()) + return; + + if (e.action == GLFW_PRESS && e.key == GLFW_KEY_ESCAPE) { + hide(); + e.consume(this); + } + } }; @@ -62,7 +73,7 @@ static std::vector tipInfos = { {"Some developers of free plugins accept donations for their work. Right-click a module panel and select “Info > Donate”.\n\nYou can support VCV Rack by purchasing VCV plugins.", "VCV Library", "https://library.vcvrack.com/"}, // reviewed {"You can learn more about VCV Rack by browsing the official Rack manual.", "VCV Rack manual", "https://vcvrack.com/manual/"}, {"Follow VCV Rack on Twitter for new modules, product announcements, and development news.", "Twitter @vcvrack", "https://twitter.com/vcvrack"}, // reviewed - {"Did you know that patch cables in Rack can carry up to 16 signals? You can use this to easily build polyphonic patches with modules with the “Polyphonic” tag. Cables carrying more than 1 signal appear thicker than normal cables. To try out polyphony, add the VCV MIDI-CV module to your patch, right-click its panel, and select your desired number of polyphonic channels.", "Learn more about polyphony in VCV Rack", "https://vcvrack.com/manual/Polyphony"}, // reviewed + {"Did you know that patch cables in Rack can carry up to 16 signals? You can use this feature to build polyphonic patches with modules having the “Polyphonic” tag. Cables carrying more than 1 signal appear thicker than normal cables. To try out polyphony, add the VCV MIDI-CV module to your patch, right-click its panel, and select your desired number of polyphonic channels.", "Learn more about polyphony in VCV Rack", "https://vcvrack.com/manual/Polyphony"}, // reviewed {"Know C++ programming and want to create your own modules for Rack? Developing Rack modules is a great way to learn digital signal processing and quickly test your ideas with an easy-to-learn platform.\n\nDownload the Rack SDK and follow the official tutorial to get started.", "Plugin Development Tutorial", "https://vcvrack.com/manual/PluginDevelopmentTutorial"}, // reviewed {"Confused about how to use a particular module? Right-click its panel and choose “Info > User manual”.\n\nYou can also open the module's Info menu to view the module's tags, website, VCV Library entry, and changelog.", "", ""}, // reviewed {"Did you know that ModularGrid is interconnected with the VCV Library? If a Eurorack version of a Rack module is available, right-click its panel and choose “Info > ModularGrid”, or click the “ModularGrid” link on its VCV Library page.\nOn ModularGrid.net, search for the “Available for VCV Rack” link if a hardware module has a virtual Rack version.", "Example: Grayscale Permutation on ModularGrid", "https://www.modulargrid.net/e/grayscale-permutation-18hp"}, // reviewed