mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-03 06:01:29 +00:00
add intro tune, part 4
This commit is contained in:
parent
b3c3c038ad
commit
34cc78519d
1 changed files with 3 additions and 2 deletions
|
@ -4639,12 +4639,12 @@ bool FurnaceGUI::loop() {
|
|||
}
|
||||
}
|
||||
|
||||
if (warnQuit) {
|
||||
if (warnQuit && introPos<9.0) {
|
||||
warnQuit=false;
|
||||
ImGui::OpenPopup("Warning");
|
||||
}
|
||||
|
||||
if (displayError) {
|
||||
if (displayError && introPos<9.0) {
|
||||
displayError=false;
|
||||
ImGui::OpenPopup("Error");
|
||||
}
|
||||
|
@ -5678,6 +5678,7 @@ bool FurnaceGUI::init() {
|
|||
|
||||
// TODO: MIDI mapping time!
|
||||
e->setMidiCallback([this](const TAMidiMessage& msg) -> int {
|
||||
if (introPos<9.0) return -2;
|
||||
midiLock.lock();
|
||||
midiQueue.push(msg);
|
||||
midiLock.unlock();
|
||||
|
|
Loading…
Reference in a new issue