From 672f387e6a02c40ff242aefe08d9c8f42f8825b5 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 26 Feb 2023 04:21:27 -0500 Subject: [PATCH] GUI: tutorial, part 2 - DO NOT USE --- papers/format.md | 6 ++++-- src/gui/gui.cpp | 2 ++ src/gui/tutorial.cpp | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/papers/format.md b/papers/format.md index 12d9a4563..027169da8 100644 --- a/papers/format.md +++ b/papers/format.md @@ -296,10 +296,12 @@ size | description | - 0xff: reserved for development | - (compound!) means that the system is composed of two or more chips, | and has to be flattened. - 32 | sound chip volumes + 32 | sound chip volumes (<135) or reserved | - signed char, 64=1.0, 127=~2.0 - 32 | sound chip panning + | - as of version 135 these fields only exist for compatibility reasons. + 32 | sound chip panning (<135) or reserved | - signed char, -128=left, 127=right + | - as of version 135 these fields only exist for compatibility reasons. 128 | sound chip flag pointers (>=119) or sound chip flags | - before 118, these were 32-bit flags. | - for conversion details, see the "converting from old flags" section. diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 53018ef1b..d51b781c2 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -4076,6 +4076,8 @@ bool FurnaceGUI::loop() { drawEffectList(); } + activateTutorial(GUI_TUTORIAL_OVERVIEW); + if (inspectorOpen) ImGui::ShowMetricsWindow(&inspectorOpen); if (firstFrame) { diff --git a/src/gui/tutorial.cpp b/src/gui/tutorial.cpp index af68e3b41..b04a80480 100644 --- a/src/gui/tutorial.cpp +++ b/src/gui/tutorial.cpp @@ -19,6 +19,7 @@ #include "gui.h" #include +#include "../ta-log.h" #define TS FurnaceGUITutorialStep @@ -44,6 +45,7 @@ void FurnaceGUI::commitTutorial() { void FurnaceGUI::activateTutorial(FurnaceGUITutorials which) { if (tutorial.welcome && !tutorial.taken[which] && !ImGui::IsPopupOpen(NULL,ImGuiPopupFlags_AnyPopupId|ImGuiPopupFlags_AnyPopupLevel) && curTutorial==-1 && introPos>=10.0) { + logV("activating tutorial %d.",which); curTutorial=which; curTutorialStep=0; }