Changeset View
Changeset View
Standalone View
Standalone View
src/activities/memory-enumerate/resource/1/Data.qml
- This file was added.
1 | /* GCompris - Data.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2020 Shubham Mishra <email.shivam828787@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Shubham Mishra <email.shivam828787@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 | import GCompris 1.0 as GCompris | ||||
22 | | ||||
23 | Data { | ||||
24 | objective: qsTr("Enumerate up to 4 fruits") | ||||
25 | difficulty: 1 | ||||
26 | | ||||
27 | property var url: "qrc:/gcompris/src/activities/memory-enumerate/resource/" | ||||
28 | | ||||
29 | property var texts: [ | ||||
30 | ["", 0], | ||||
31 | ["", 1], | ||||
32 | ["", 2], | ||||
33 | ["", 3], | ||||
34 | ["", 4], | ||||
35 | ["", 5], | ||||
36 | ["", 6], | ||||
37 | ["", 7], | ||||
38 | ["", 8], | ||||
39 | ["", 9] | ||||
40 | ] | ||||
41 | | ||||
42 | property var images: [ | ||||
43 | [url + 'math_0.svg', ''], | ||||
44 | [url + 'math_1.svg', ''], | ||||
45 | [url + 'math_2.svg', ''], | ||||
46 | [url + 'math_3.svg', ''], | ||||
47 | [url + 'math_4.svg', ''], | ||||
48 | [url + 'math_5.svg', ''], | ||||
49 | [url + 'math_6.svg', ''], | ||||
50 | [url + 'math_7.svg', ''], | ||||
51 | [url + 'math_8.svg', ''], | ||||
52 | [url + 'math_9.svg', ''] | ||||
53 | ] | ||||
54 | | ||||
55 | property var sounds: [ | ||||
56 | ["", | ||||
57 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0030.$CA")], | ||||
58 | ["", | ||||
59 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0031.$CA")], | ||||
60 | ["", | ||||
61 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0032.$CA")], | ||||
62 | ["", | ||||
63 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0033.$CA")], | ||||
64 | ["", | ||||
65 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0034.$CA")], | ||||
66 | ["", | ||||
67 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0035.$CA")], | ||||
68 | ["", | ||||
69 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0036.$CA")], | ||||
70 | ["", | ||||
71 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0037.$CA")], | ||||
72 | ["", | ||||
73 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0038.$CA")], | ||||
74 | ["", | ||||
75 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0039.$CA")], | ||||
76 | ["", | ||||
77 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/10.$CA")], | ||||
78 | ["", | ||||
79 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/11.$CA")], | ||||
80 | ["", | ||||
81 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/12.$CA")], | ||||
82 | ["", | ||||
83 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/13.$CA")], | ||||
84 | ["", | ||||
85 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/14.$CA")], | ||||
86 | ["", | ||||
87 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/15.$CA")], | ||||
88 | ["", | ||||
89 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/16.$CA")], | ||||
90 | ["", | ||||
91 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/17.$CA")], | ||||
92 | ["", | ||||
93 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/18.$CA")], | ||||
94 | ["", | ||||
95 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/19.$CA")], | ||||
96 | ["", | ||||
97 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/20.$CA")] | ||||
98 | ] | ||||
99 | data: [ | ||||
100 | { // Level 1 | ||||
101 | "columns": 3, | ||||
102 | "rows": 2, | ||||
103 | "texts": texts.slice(0, 6), | ||||
104 | "images": images.slice(0, 6), | ||||
105 | "sounds": sounds.slice(0, 6) | ||||
106 | }, | ||||
107 | { // Level 2 | ||||
108 | "columns": 3, | ||||
109 | "rows": 2, | ||||
110 | "texts": texts.slice(4, 10), | ||||
111 | "images": images.slice(4, 10), | ||||
112 | "sounds": sounds.slice(4, 10) | ||||
113 | }, | ||||
114 | { // Level 3 | ||||
115 | "columns" : 5, | ||||
116 | "rows": 2, | ||||
117 | "texts": texts.slice(0, 10), | ||||
118 | "images": images.slice(0, 10), | ||||
119 | "soundss": sounds.slice(0, 10) | ||||
120 | } | ||||
121 | ] | ||||
122 | } |