diff options
Diffstat (limited to 'src/tutorials')
| -rw-r--r-- | src/tutorials/TutorialOverlay.qml | 6 | ||||
| -rw-r--r-- | src/tutorials/tutorial_firststeps_main.js | 35 |
2 files changed, 27 insertions, 14 deletions
diff --git a/src/tutorials/TutorialOverlay.qml b/src/tutorials/TutorialOverlay.qml index 34959d7d..f2aad027 100644 --- a/src/tutorials/TutorialOverlay.qml +++ b/src/tutorials/TutorialOverlay.qml @@ -1,4 +1,3 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "tutorials.js" as Logic
@@ -21,10 +20,11 @@ Rectangle { function enableBackground(enabled) {
disabledBackground.visible = enabled
}
-
+/*
signal nextStep
- onNextStep: {
+ onNextStep: {*/
+ function nextStep() {
if (step == 0) {
Logic.init()
}
diff --git a/src/tutorials/tutorial_firststeps_main.js b/src/tutorials/tutorial_firststeps_main.js index 4f9c1a74..5ee4e790 100644 --- a/src/tutorials/tutorial_firststeps_main.js +++ b/src/tutorials/tutorial_firststeps_main.js @@ -15,19 +15,24 @@ function getTutorialSteps() function() {
tutorial.text = qsTr("The highlighted button provides hints on solving problems MO recognized automatically.")
- if (!tutorialControl.waitForAction("actionProblems")) {
- highlightAction("actionProblems", false)
- waitForClick()
- } else {
+ if (tutorialControl.waitForAction("actionProblems")) {
tutorial.text += qsTr("\nThere IS a problem now but you may want to hold off on fixing it until after completing the tutorial.")
highlightAction("actionProblems", true)
+ } else {
+ highlightAction("actionProblems", false)
+ waitForClick()
}
},
function() {
+ console.log("next")
tutorial.text = qsTr("This button provides multiple sources of information and further tutorials.")
- highlightItem("actionHelp", true)
- tutorialControl.waitForButton("actionHelp")
+ if (tutorialControl.waitForButton("actionHelp")) {
+ highlightItem("actionHelp", true)
+ } else {
+ console.error("help button broken")
+ waitForClick()
+ }
},
function() {
@@ -47,12 +52,16 @@ function getTutorialSteps() function() {
tutorial.text = qsTr("Before we start installing mods, let's have a quick look at the settings.")
manager.activateTutorial("SettingsDialog", "tutorial_firststeps_settings.js")
- highlightAction("actionSettings", true)
- tutorialControl.waitForAction("actionSettings")
+ if (tutorialControl.waitForAction("actionSettings")) {
+ highlightAction("actionSettings", true)
+ } else {
+ console.error("settings action broken")
+ waitForClick()
+ }
},
function() {
- tutorial.text = qsTr("Now it's time to install a few mods!"
+ tutorial.text = qsTr("Now it's time to install a few mods!"
+ "Please go along with this because we need a few mods installed to demonstrate other features")
waitForClick()
},
@@ -61,8 +70,12 @@ function getTutorialSteps() tutorial.text = qsTr("There are a few ways to get mods into ModOrganizer. "
+ "If you associated MO with NXM links in the settings you can now use your regular browser to send downloads from Nexus to MO. "
+ "Click on \"Nexus\" to open nexus, find a mod and click the green download buttons on Nexus saying \"Download with Manager\".")
- highlightAction("actionNexus", true)
- tutorialControl.waitForAction("actionNexus")
+ if (tutorialControl.waitForAction("actionNexus")) {
+ highlightAction("actionNexus", true)
+ } else {
+ console.error("browser action broken")
+ waitForClick()
+ }
},
function() {
|
