Debian Codegraph @

src/activities/memory-enumerate/resource/5/Data.qml

raw
1 /* GCompris - Data.qml
2 *
3 * SPDX-FileCopyrightText: 2020 Deepak Kumar <[email protected]>
4 * SPDX-FileCopyrightText: 2023 Timothée Giet <[email protected]>
5 *
6 * Authors:
7 * Deepak Kumar <[email protected]>
8 * Timothée Giet <[email protected]>
9 *
10 * SPDX-License-Identifier: GPL-3.0-or-later
11 */
12
13 import core 1.0
14 import core 1.0 as GCompris
15
16 Data {
17 objective: qsTr("Match the numbers up to 6.")
18 difficulty: 3
19
20 readonly property string imageUrl: "qrc:/gcompris/src/activities/memory-enumerate/resource/butterfly.svg"
21
22 readonly property list<var> texts: [
23 ["", 0],
24 ["", 1],
25 ["", 2],
26 ["", 3],
27 ["", 4],
28 ["", 5],
29 ["", 6],
30
31 ]
32
33 readonly property list<var> repeaterModels: [
34 [
35 [{ "itemX": 0, "itemY": 0, "itemSize": 0, "itemRotation": 0, "itemSource": imageUrl}], ''
36 ],
37 [
38 [{ "itemX": 0.3, "itemY": 0.45, "itemSize": 0.3, "itemRotation": 30, "itemSource": imageUrl}], ''
39 ],
40 [
41 [{ "itemX": 0.25, "itemY": 0.1, "itemSize": 0.3, "itemRotation": 50, "itemSource": imageUrl},
42 { "itemX": 0.4, "itemY": 0.6, "itemSize": 0.3, "itemRotation": -50, "itemSource": imageUrl}], ''
43 ],
44 [
45 [{ "itemX": 0.1, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -10, "itemSource": imageUrl},
46 { "itemX": 0.6, "itemY": 0.35, "itemSize": 0.3, "itemRotation": -25, "itemSource": imageUrl},
47 { "itemX": 0.2, "itemY": 0.55, "itemSize": 0.3, "itemRotation": 30, "itemSource": imageUrl}], ''
48 ],
49 [
50 [{ "itemX": 0.5, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -40, "itemSource": imageUrl},
51 { "itemX": 0.1, "itemY": 0.3, "itemSize": 0.3, "itemRotation": 45, "itemSource": imageUrl},
52 { "itemX": 0.6, "itemY": 0.5, "itemSize": 0.3, "itemRotation": -15, "itemSource": imageUrl},
53 { "itemX": 0.25, "itemY": 0.65, "itemSize": 0.3, "itemRotation": -30, "itemSource": imageUrl}], ''
54 ],
55 [
56 [{ "itemX": 0.55, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -15, "itemSource": imageUrl},
57 { "itemX": 0.1, "itemY": 0.15, "itemSize": 0.3, "itemRotation": -150, "itemSource": imageUrl},
58 { "itemX": 0.5, "itemY": 0.35, "itemSize": 0.3, "itemRotation": 45, "itemSource": imageUrl},
59 { "itemX": 0.1, "itemY": 0.55, "itemSize": 0.3, "itemRotation": -45, "itemSource": imageUrl},
60 { "itemX": 0.6, "itemY": 0.75, "itemSize": 0.3, "itemRotation": -10, "itemSource": imageUrl}], ''
61 ],
62 [
63 [{ "itemX": 0.1, "itemY": 0.05, "itemSize": 0.3, "itemRotation": -75, "itemSource": imageUrl},
64 { "itemX": 0.6, "itemY": 0.05, "itemSize": 0.3, "itemRotation": 15, "itemSource": imageUrl},
65 { "itemX": 0.25, "itemY": 0.35, "itemSize": 0.3, "itemRotation": -10, "itemSource": imageUrl},
66 { "itemX": 0.65, "itemY": 0.4, "itemSize": 0.3, "itemRotation": 10, "itemSource": imageUrl},
67 { "itemX": 0.1, "itemY": 0.65, "itemSize": 0.3, "itemRotation": 45, "itemSource": imageUrl},
68 { "itemX": 0.6, "itemY": 0.7, "itemSize": 0.3, "itemRotation": -45, "itemSource": imageUrl}], ''
69 ]
70 ]
71
72 readonly property list<var> sounds: [
73 ["",
74 "voices-$CA/$LOCALE/alphabet/U0030.$CA"],
75 ["",
76 "voices-$CA/$LOCALE/alphabet/U0031.$CA"],
77 ["",
78 "voices-$CA/$LOCALE/alphabet/U0032.$CA"],
79 ["",
80 "voices-$CA/$LOCALE/alphabet/U0033.$CA"],
81 ["",
82 "voices-$CA/$LOCALE/alphabet/U0034.$CA"],
83 ["",
84 "voices-$CA/$LOCALE/alphabet/U0035.$CA"],
85 ["",
86 "voices-$CA/$LOCALE/alphabet/U0036.$CA"]
87 ]
88
89 data: [
90 { // Level 1
91 "columns": 4,
92 "rows": 3,
93 "texts": texts.slice(0, 7),
94 "repeaterModels": repeaterModels.slice(0, 7),
95 "sounds": sounds.slice(0, 7)
96 }
97 ]
98 }