Changeset View
Changeset View
Standalone View
Standalone View
src/activities/numbers-odd-even/NumbersOddEven.qml
Show All 12 Lines | |||||
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. | ||
14 | 14 | | |||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, see <https://www.gnu.org/licenses/>. | 16 | along with this program; if not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.6 | 19 | import QtQuick 2.6 | ||
20 | import "../planegame" | 20 | import "../planegame" | ||
21 | 21 | | |||
jjazeix: both shouldn't be needed. | |||||
22 | Planegame { | 22 | Planegame { | ||
amankumargupta: Extra empty line. | |||||
23 | 23 | | |||
24 | showTutorial: true | ||||
25 | | ||||
24 | dataset: [ | 26 | dataset: [ | ||
25 | { | 27 | { | ||
26 | data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), | 28 | data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), | ||
27 | showNext: true | 29 | showNext: true | ||
28 | }, | 30 | }, | ||
29 | { | 31 | { | ||
30 | data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), | 32 | data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), | ||
31 | showNext: true | 33 | showNext: true | ||
32 | }, | 34 | }, | ||
33 | { | 35 | { | ||
34 | data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), | 36 | data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), | ||
35 | showNext: false | 37 | showNext: false | ||
36 | }, | 38 | }, | ||
37 | { | 39 | { | ||
38 | data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), | 40 | data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), | ||
39 | showNext: false | 41 | showNext: false | ||
40 | } | 42 | } | ||
41 | ] | 43 | ] | ||
44 | | ||||
45 | tutorialInstructions: [ | ||||
46 | { | ||||
47 | "instruction": qsTr("This activity teaches about even and odd numbers."), | ||||
48 | "instructionQml": "" | ||||
49 | }, | ||||
50 | { | ||||
51 | "instruction": qsTr("Even numbers are numbers which leave remainder 0 when divisible by 2."), | ||||
52 | "instructionQml" : "qrc:/gcompris/src/activities/numbers-odd-even/resource/Tutorial1.qml" | ||||
53 | }, | ||||
54 | { | ||||
55 | "instruction": qsTr("Odd numbers are numbers which do not leave remainder 0 when divisible by 2."), | ||||
56 | "instructionQml": "qrc:/gcompris/src/activities/numbers-odd-even/resource/Tutorial2.qml" | ||||
57 | }, | ||||
58 | { | ||||
59 | "instruction": qsTr("Exercise: \n To test your understanding."), | ||||
60 | "instructionQml": "qrc:/gcompris/src/activities/numbers-odd-even/resource/Tutorial3.qml" | ||||
61 | }, | ||||
62 | { | ||||
63 | "instruction": qsTr("Exercise: \n To test your understanding."), | ||||
64 | "instructionQml": "qrc:/gcompris/src/activities/numbers-odd-even/resource/Tutorial4.qml" | ||||
65 | }, | ||||
66 | { | ||||
67 | "instruction": qsTr("Exercise: \n To test your understanding."), | ||||
jjazeix: missing : | |||||
68 | "instructionQml": "qrc:/gcompris/src/activities/numbers-odd-even/resource/Tutorial5.qml" | ||||
69 | } | ||||
70 | | ||||
71 | ] | ||||
42 | } | 72 | } | ||
this should be in Planegame.qml (in the pageComponent). You also need to handle the fact that if there is a Tutorial, the activity behind should not start and start only when "Skip" is pressed. jjazeix: this should be in Planegame.qml (in the pageComponent).
You should have a boolean at Planegame… |
both shouldn't be needed.