Warning, /education/gcompris/src/activities/memory-enumerate/resource/1/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 2.")
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             ]
0026 
0027     readonly property var repeaterModels: [
0028         [
0029             [{ "itemX": 0.3, "itemY": 0.45, "itemSize": 0.3, "itemRotation": 30, "itemSource": imageUrl}], ''
0030         ],
0031         [
0032             [{ "itemX": 0.25, "itemY": 0.1, "itemSize": 0.3, "itemRotation": 50, "itemSource": imageUrl},
0033             { "itemX": 0.4, "itemY": 0.6, "itemSize": 0.3, "itemRotation": -50, "itemSource": imageUrl}], ''
0034         ]
0035     ]
0036 
0037     readonly property var sounds: [
0038                 ["",
0039                  GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0031.$CA")],
0040                 ["",
0041                  GCompris.ApplicationInfo.getAudioFilePath("voices-$CA/$LOCALE/alphabet/U0032.$CA")]
0042             ]
0043 
0044     data: [
0045         { // Level 1
0046             "columns": 2,
0047             "rows": 2,
0048             "texts": texts.slice(0, 2),
0049             "repeaterModels": repeaterModels.slice(0, 2),
0050             "sounds": sounds.slice(0, 2)
0051         }
0052     ]
0053 }