X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7c3b96afaff05673bf699b131581c84a40e3ad1d..a49547b7a4bef633bb92bee9cf97fdcfe67c76aa:/src/fnpjs/runner.js?ds=inline diff --git a/src/fnpjs/runner.js b/src/fnpjs/runner.js index 0dd52e5..27441b1 100644 --- a/src/fnpjs/runner.js +++ b/src/fnpjs/runner.js @@ -89,6 +89,21 @@ var Runner = function(app, modules) { menu.dom.css({top: coors.y, left: coors.x}); menu.show(); }; + + this.getTutorialItem = function(name) { + var tutorial = this.getConfig().tutorial; + var tutorialText, index; + tutorial.some(function(item, i) { + if(item.name === name) { + tutorialText = item.text; + index = i; + return true; + } + }); + if(!tutorialText) + return; + return {index: index + 1, text: tutorialText}; + } }; this.setBootstrappedData = function(moduleName, data) {