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 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 2.") | ||||
27 | difficulty: 1 | ||||
28 | | ||||
29 | property string url: "qrc:/gcompris/src/activities/memory-enumerate/resource/" | ||||
30 | | ||||
31 | property var texts: [ | ||||
32 | ["", 1], | ||||
33 | ["", 2] | ||||
34 | ] | ||||
35 | | ||||
36 | property var images: [ | ||||
37 | [url + 'math_1.svg', ''], | ||||
38 | [url + 'math_2.svg', ''], | ||||
39 | ] | ||||
40 | | ||||
41 | property var sounds: [ | ||||
42 | ["", | ||||
43 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0031.$CA")], | ||||
44 | ["", | ||||
45 | GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0032.$CA")] | ||||
46 | ] | ||||
47 | | ||||
48 | data: [ | ||||
49 | { // Level 1 | ||||
50 | "columns": 2, | ||||
51 | "rows": 2, | ||||
52 | "texts": texts.slice(0, 2), | ||||
53 | "images": images.slice(0, 2), | ||||
54 | "sounds": sounds.slice(0, 2) | ||||
55 | } | ||||
56 | ] | ||||
57 | } |