Changeset View
Changeset View
Standalone View
Standalone View
src/activities/target/resource/2/Data.qml
- This file was added.
1 | | ||||
---|---|---|---|---|---|
2 | /* GCompris - Data.qml | ||||
3 | * | ||||
4 | * Copyright (C) 2019 Akshay Kumar <email.akshay98@gmail.com> | ||||
5 | * | ||||
6 | * Authors: | ||||
7 | * Akshay Kumar <email.akshay98@gmail.com> | ||||
8 | * | ||||
9 | * This program is free software; you can redistribute it and/or modify | ||||
10 | * it under the terms of the GNU General Public License as published by | ||||
11 | * the Free Software Foundation; either version 3 of the License, or | ||||
12 | * (at your option) any later version. | ||||
13 | * | ||||
14 | * This program is distributed in the hope that it will be useful, | ||||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
17 | * GNU General Public License for more details. | ||||
18 | * | ||||
19 | * You should have received a copy of the GNU General Public License | ||||
20 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
21 | */ | ||||
22 | import QtQuick 2.6 | ||||
23 | import GCompris 1.0 | ||||
24 | import "../../../../core" | ||||
25 | | ||||
26 | Dataset { | ||||
27 | objective: qsTr("Practice addition on targets with max value 50") | ||||
28 | difficulty: 3 | ||||
29 | property var colors: [ | ||||
30 | "#ff1b00", | ||||
31 | "#7edee2", | ||||
32 | "#f1f500", | ||||
33 | "#3dff00", | ||||
34 | "#b7d2d4", | ||||
35 | "#6db5ba" | ||||
36 | ] | ||||
37 | data: [ | ||||
38 | [ | ||||
39 | {size: 50, color: colors[0], score: 20}, | ||||
40 | {size: 100, color: colors[1], score: 10}, | ||||
41 | {size: 150, color: colors[2], score: 8}, | ||||
42 | {size: 200, color: colors[3], score: 4}, | ||||
43 | {size: 250, color: colors[4], score: 2}, | ||||
44 | {size: 300, color: colors[5], score: 1} | ||||
45 | ], | ||||
46 | [ | ||||
47 | {size: 50, color: colors[0], score: 30}, | ||||
48 | {size: 100, color: colors[1], score: 20}, | ||||
49 | {size: 150, color: colors[2], score: 10}, | ||||
50 | {size: 200, color: colors[3], score: 8}, | ||||
51 | {size: 250, color: colors[4], score: 4}, | ||||
52 | {size: 300, color: colors[5], score: 2}, | ||||
53 | {size: 350, color: colors[5], score: 1} | ||||
54 | ], | ||||
55 | [ | ||||
56 | {size: 50, color: colors[0], score: 50}, | ||||
57 | {size: 100, color: colors[1], score: 20}, | ||||
58 | {size: 150, color: colors[2], score: 10}, | ||||
59 | {size: 200, color: colors[3], score: 8}, | ||||
60 | {size: 250, color: colors[4], score: 4}, | ||||
61 | {size: 300, color: colors[5], score: 2}, | ||||
62 | {size: 350, color: colors[5], score: 1} | ||||
63 | ] | ||||
64 | ] | ||||
65 | } |