impr: Allow tutorials to use markdown formatted text

This commit is contained in:
WerWolv
2025-12-15 20:07:43 +01:00
parent 021c7e5fdb
commit 6b16f39be4
6 changed files with 72 additions and 14 deletions

View File

@@ -1,9 +1,18 @@
#include <hex/api/tutorial_manager.hpp>
#include <ui/markdown.hpp>
namespace hex::plugin::builtin {
void registerIntroductionTutorial();
void registerTutorials() {
TutorialManager::setRenderer([](const std::string &message) {
return [markdown = std::make_shared<ui::Markdown>(message)] {
markdown->draw();
};
});
registerIntroductionTutorial();
}
}
}