Tutorials Fixed

This commit is contained in:
Luis Fernando Molina committed 2020-09-18 15:37:14 +02:00
1 parent e446d5f1da
commit c77b9af992
2 files changed
+79 -3

No files matched your search

+63 -1
View File
@@ -1432,6 +1432,12 @@
"label": "Add Tutorial",
"relatedUiObject": "Tutorial",
"actionFunction": "payload.onMenuItemClick"
},
{
"action": "Add UI Object",
"label": "Add Includes",
"relatedUiObject": "Includes",
"actionFunction": "payload.onMenuItemClick"
}
],
"isTitleAllwaysVisible": true,
@@ -14254,6 +14260,62 @@
}
]
},
{
"type": "Includes",
"menuItems": [
{
"action": "Add Missing Children",
"label": "Add Missing Children",
"relatedUiObject": "Includes",
"actionFunction": "payload.onMenuItemClick"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete",
"iconPathOff": "delete",
"actionFunction": "payload.onMenuItemClick"
}
],
"isHierarchyHead": true,
"addLeftIcons": true,
"level": 0,
"propertyNameAtParent": "includes",
"properties": [
{
"name": "includedDataMines",
"type": "node",
"childType": "Included Data Mines",
"autoAdd": false
},
{
"name": "includedTradingMines",
"type": "node",
"childType": "Included Trading Mines",
"autoAdd": false
},
{
"name": "includedTradingSystems",
"type": "node",
"childType": "Included Trading Mines",
"autoAdd": false
},
{
"name": "includedTradingEngines",
"type": "node",
"childType": "Included Trading Mines",
"autoAdd": false
},
{
"name": "includedSuperScripts",
"type": "node",
"childType": "Included Trading Mines",
"autoAdd": false
}
]
},
{
"type": "Tutorial",
"menuItems": [
@@ -14448,7 +14510,7 @@
},
"referenceAttachesTo": {
"compatibleTypes": "->*Any Node*->",
"incompatibleTypes": "->Tutorial->Tutorial Topic->Tutorial Step->"
"incompatibleTypes": "->Tutorial Topic->Tutorial Step->"
},
"chainAttachesTo": {
"compatibleTypes": "->Tutorial->Tutorial Topic->"
+16 -2
View File
@@ -328,6 +328,7 @@ function newTutorialSpace() {
}
function done() {
if (ckeckGoingToAnotherTutorial() === true ) {return}
let tutorial = {
status: 'Done'
}
@@ -335,6 +336,16 @@ function newTutorialSpace() {
advance()
}
function ckeckGoingToAnotherTutorial() {
if (currentNode.payload !== undefined) {
if (currentNode.payload.referenceParent !== undefined) {
if (currentNode.payload.referenceParent.type === 'Tutorial') {
playTutorial(currentNode.payload.referenceParent)
}
}
}
}
function playTutorialTopic(node) {
currentTopicNode = node
currentNode = node
@@ -446,7 +457,6 @@ function newTutorialSpace() {
}
function findNextNode(node) {
for (let i = 0; i < node.tutorialSteps.length; i++) {
let tutorialStep = node.tutorialSteps[i]
@@ -519,6 +529,10 @@ function newTutorialSpace() {
let html = ''
if (nodeConfig.title !== undefined && nodeConfig.title !== '') {
html = html + '<div><h1 class="tutorial-font-large">' + nodeConfig.title + '</h1></div>'
} else {
if (currentNode.name !== 'New ' + currentNode.type) {
html = html + '<div><h1 class="tutorial-font-large">' + currentNode.name + '</h1></div>'
}
}
html = html + '<div>'
if (nodeConfig.summary !== undefined && nodeConfig.summary !== '') {
@@ -554,7 +568,7 @@ function newTutorialSpace() {
for (let i = 0; i < nodeConfig.bulletArray.length; i++) {
let bullet = nodeConfig.bulletArray[i]
html = html + '<li>'
html = html + '<p class="tutorial-font-small"><strong class="tutorial-font-bold-small">' + bullet[0] + ':</strong> ' + bullet[1] + '</p>'
html = html + '<p class="tutorial-font-small"><strong class="tutorial-font-bold-small">' + bullet[0] + '</strong> ' + bullet[1] + '</p>'
html = html + '</li>'
}
html = html + '</ul>'