Warning, /education/gcompris/src/activities/memory-enumerate/resource/3/Data.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - Data.qml
0002 *
0003 * SPDX-FileCopyrightText: 2020 Deepak Kumar <deepakdk2431@gmail.com>
0004 * SPDX-FileCopyrightText: 2023 Timothée Giet <animtim@gmail.com>
0005 *
0006 * Authors:
0007 * Deepak Kumar <deepakdk2431@gmail.com>
0008 * Timothée Giet <animtim@gmail.com>
0009 *
0010 * SPDX-License-Identifier: GPL-3.0-or-later
0011 */
0012
0013 import GCompris 1.0
0014 import GCompris 1.0 as GCompris
0015
0016 Data {
0017 objective: qsTr("Match the numbers up to 4.")
0018 difficulty: 1
0019
0020 readonly property string imageUrl: "qrc:/gcompris/src/activities/memory-enumerate/resource/butterfly.svg"
0021
0022 readonly property var texts: [
0023 ["", 1],
0024 ["", 2],
0025 ["", 3],
0026 ["", 4]
0027 ]
0028
0029 readonly property var repeaterModels: [
0030 [
0031 [{ "itemX": 0.3, "itemY": 0.45, "itemSize": 0.3, "itemRotation": 30, "itemSource": imageUrl}], ''
0032 ],
0033 [
0034 [{ "itemX": 0.25, "itemY": 0.1, "itemSize": 0.3, "itemRotation": 50, "itemSource": imageUrl},
0035 { "itemX": 0.4, "itemY": 0.6, "itemSize": 0.3, "itemRotation": -50, "itemSource": imageUrl}], ''
0036 ],
0037 [
0038 [{ "itemX": 0.1, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -10, "itemSource": imageUrl},
0039 { "itemX": 0.6, "itemY": 0.35, "itemSize": 0.3, "itemRotation": -25, "itemSource": imageUrl},
0040 { "itemX": 0.2, "itemY": 0.55, "itemSize": 0.3, "itemRotation": 30, "itemSource": imageUrl}], ''
0041 ],
0042 [
0043 [{ "itemX": 0.5, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -40, "itemSource": imageUrl},
0044 { "itemX": 0.1, "itemY": 0.3, "itemSize": 0.3, "itemRotation": 45, "itemSource": imageUrl},
0045 { "itemX": 0.6, "itemY": 0.5, "itemSize": 0.3, "itemRotation": -15, "itemSource": imageUrl},
0046 { "itemX": 0.25, "itemY": 0.65, "itemSize": 0.3, "itemRotation": -30, "itemSource": imageUrl}], ''
0047 ]
0048 ]
0049
0050 readonly property var sounds: [
0051 ["",
0052 GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0031.$CA")],
0053 ["",
0054 GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0032.$CA")],
0055 ["",
0056 GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0033.$CA")],
0057 ["",
0058 GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0034.$CA")],
0059 ]
0060
0061 data: [
0062 { // Level 1
0063 "columns": 4,
0064 "rows": 2,
0065 "texts": texts.slice(0, 4),
0066 "repeaterModels": repeaterModels.slice(0, 4),
0067 "sounds": sounds.slice(0, 4)
0068 }
0069 ]
0070 }