GUI: tutorial, part 2 - DO NOT USE

This commit is contained in:
tildearrow 2023-02-26 04:21:27 -05:00
parent b01c2d08af
commit 672f387e6a
3 changed files with 8 additions and 2 deletions

View file

@ -4076,6 +4076,8 @@ bool FurnaceGUI::loop() {
drawEffectList();
}
activateTutorial(GUI_TUTORIAL_OVERVIEW);
if (inspectorOpen) ImGui::ShowMetricsWindow(&inspectorOpen);
if (firstFrame) {

View file

@ -19,6 +19,7 @@
#include "gui.h"
#include <imgui.h>
#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;
}