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