Changeset View
Changeset View
Standalone View
Standalone View
src/activities/memory-enumerate/resource/4/Data.qml
- This file was added.
1 | /* GCompris - Data.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Deepak Kumar <deepakdk2431@gmail.com> | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or modify | ||||
9 | * it under the terms of the GNU General Public License as published by | ||||
10 | * the Free Software Foundation; either version 3 of the License, or | ||||
11 | * (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
20 | */ | ||||
21 | | ||||
22 | import GCompris 1.0 | ||||
23 | import GCompris 1.0 as GCompris | ||||
24 | | ||||
25 | Data { | ||||
26 | objective: qsTr("Match the numbers up to 5.") | ||||
27 | difficulty: 2 | ||||
28 | | ||||
29 | property string url: "qrc:/gcompris/src/activities/memory-enumerate/resource/" | ||||
30 | | ||||
31 | property var texts: [ | ||||
32 | ["", 0], | ||||
33 | ["", 1], | ||||
34 | ["", 2], | ||||
35 | ["", 3], | ||||
36 | ["", 4], | ||||
37 | ["", 5] | ||||
38 | ] | ||||
39 | | ||||
40 | property var images: [ | ||||
41 | [url + 'math_0.svg', ''], | ||||
42 | [url + 'math_1.svg', ''], | ||||
43 | [url + 'math_2.svg', ''], | ||||
44 | [url + 'math_3.svg', ''], | ||||
45 | [url + 'math_4.svg', ''], | ||||
46 | [url + 'math_5.svg', ''], | ||||
47 | ] | ||||
48 | | ||||
49 | property var sounds: [ | ||||
50 | ["", | ||||
51 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0030.$CA")], | ||||
52 | ["", | ||||
53 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0031.$CA")], | ||||
54 | ["", | ||||
55 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0032.$CA")], | ||||
56 | ["", | ||||
57 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0033.$CA")], | ||||
58 | ["", | ||||
59 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0034.$CA")], | ||||
60 | ["", | ||||
61 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0035.$CA")] | ||||
62 | ] | ||||
63 | | ||||
64 | data: [ | ||||
65 | { // Level 1 | ||||
66 | "columns": 4, | ||||
67 | "rows": 3, | ||||
68 | "texts": texts.slice(0, 6), | ||||
69 | "images": images.slice(0, 6), | ||||
70 | "sounds": sounds.slice(0, 6) | ||||
71 | } | ||||
72 | ] | ||||
73 | } |