~baltix/gcompris-qt/0.97.1

« back to all changes in this revision

Viewing changes to src/activities/memory-enumerate/dataset.js

  • Committer: Mantas Kriaučiūnas
  • Date: 2020-07-06 18:07:11 UTC
  • Revision ID: baltix@gmail.com-20200706180711-g254osu02cn8bc8p
GCompris-QT 0.97.1 with Lithuanian translation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GCompris
 
2
 *
 
3
 * Copyright (C) 2014 Bruno Coudoin
 
4
 *
 
5
 *   This program is free software; you can redistribute it and/or modify
 
6
 *   it under the terms of the GNU General Public License as published by
 
7
 *   the Free Software Foundation; either version 3 of the License, or
 
8
 *   (at your option) any later version.
 
9
 *
 
10
 *   This program is distributed in the hope that it will be useful,
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *   GNU General Public License for more details.
 
14
 *
 
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/>.
 
17
 */
 
18
 
 
19
.import GCompris 1.0 as GCompris //for ApplicationInfo
 
20
 
 
21
var url = "qrc:/gcompris/src/activities/memory-enumerate/resource/"
 
22
 
 
23
var texts = [
 
24
            ["", 0],
 
25
            ["", 1],
 
26
            ["", 2],
 
27
            ["", 3],
 
28
            ["", 4],
 
29
            ["", 5],
 
30
            ["", 6],
 
31
            ["", 7],
 
32
            ["", 8],
 
33
            ["", 9]
 
34
        ]
 
35
 
 
36
var images = [
 
37
            [url + 'math_0.svg', ''],
 
38
            [url + 'math_1.svg', ''],
 
39
            [url + 'math_2.svg', ''],
 
40
            [url + 'math_3.svg', ''],
 
41
            [url + 'math_4.svg', ''],
 
42
            [url + 'math_5.svg', ''],
 
43
            [url + 'math_6.svg', ''],
 
44
            [url + 'math_7.svg', ''],
 
45
            [url + 'math_8.svg', ''],
 
46
            [url + 'math_9.svg', '']
 
47
        ]
 
48
 
 
49
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
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0036.$CA")],
 
64
            ["",
 
65
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0037.$CA")],
 
66
            ["",
 
67
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0038.$CA")],
 
68
            ["",
 
69
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0039.$CA")],
 
70
            ["",
 
71
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/10.$CA")],
 
72
            ["",
 
73
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/11.$CA")],
 
74
            ["",
 
75
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/12.$CA")],
 
76
            ["",
 
77
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/13.$CA")],
 
78
            ["",
 
79
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/14.$CA")],
 
80
            ["",
 
81
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/15.$CA")],
 
82
            ["",
 
83
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/16.$CA")],
 
84
            ["",
 
85
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/17.$CA")],
 
86
            ["",
 
87
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/18.$CA")],
 
88
            ["",
 
89
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/19.$CA")],
 
90
            ["",
 
91
             GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/20.$CA")]
 
92
        ]
 
93
 
 
94
 
 
95
var memory_cards = [
 
96
            { // Level 1
 
97
                columns: 3,
 
98
                rows: 2,
 
99
                texts: texts.slice(0, 6),
 
100
                images: images.slice(0, 6),
 
101
                sounds: sounds.slice(0, 6)
 
102
            },
 
103
            { // Level 2
 
104
                columns: 3,
 
105
                rows: 2,
 
106
                texts: texts.slice(4, 10),
 
107
                images: images.slice(4, 10),
 
108
                sounds: sounds.slice(4, 10)
 
109
            },
 
110
            { // Level 3
 
111
                columns: 5,
 
112
                rows: 2,
 
113
                texts: texts.slice(0, 10),
 
114
                images: images.slice(0, 10),
 
115
                sounds: sounds.slice(0, 10)
 
116
            }
 
117
        ]
 
118
 
 
119
 
 
120
function get() {
 
121
    return memory_cards
 
122
}