Changeset View
Changeset View
Standalone View
Standalone View
src/activities/money/resource/1/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 | import "../../../money/moneyConstants.js" as MoneyConstants | ||||
25 | | ||||
26 | Dataset { | ||||
27 | objective: qsTr("Learn how to pay up to 10 units") | ||||
28 | property var moneyItems: MoneyConstants.moneyItems | ||||
29 | difficulty: 1 | ||||
30 | data: [ | ||||
31 | { | ||||
32 | "numberOfItem": 1, | ||||
33 | "minPrice": 1, | ||||
34 | "maxPrice": 4, | ||||
35 | "pocket": [ | ||||
36 | moneyItems.MONEY_COIN_2E, | ||||
37 | moneyItems.MONEY_COIN_1E | ||||
38 | ] | ||||
39 | }, | ||||
40 | { | ||||
41 | "numberOfItem": 1, | ||||
42 | "minPrice": 1, | ||||
43 | "maxPrice": 5, | ||||
44 | "pocket": [ | ||||
45 | moneyItems.MONEY_COIN_2E, | ||||
46 | moneyItems.MONEY_COIN_2E, | ||||
47 | moneyItems.MONEY_COIN_1E | ||||
48 | ] | ||||
49 | }, | ||||
50 | { | ||||
51 | "numberOfItem": 1, | ||||
52 | "minPrice": 1, | ||||
53 | "maxPrice": 6, | ||||
54 | "pocket": [ | ||||
55 | moneyItems.MONEY_PAPER_5E, | ||||
56 | moneyItems.MONEY_COIN_2E, | ||||
57 | moneyItems.MONEY_COIN_2E, | ||||
58 | moneyItems.MONEY_COIN_1E | ||||
59 | ] | ||||
60 | }, | ||||
61 | { | ||||
62 | "numberOfItem": 1, | ||||
63 | "minPrice": 1, | ||||
64 | "maxPrice": 7, | ||||
65 | "pocket": [ | ||||
66 | moneyItems.MONEY_PAPER_5E, | ||||
67 | moneyItems.MONEY_COIN_2E, | ||||
68 | moneyItems.MONEY_COIN_2E, | ||||
69 | moneyItems.MONEY_COIN_1E | ||||
70 | ] | ||||
71 | }, | ||||
72 | { | ||||
73 | "numberOfItem": 1, | ||||
74 | "minPrice": 1, | ||||
75 | "maxPrice": 8, | ||||
76 | "pocket": [ | ||||
77 | moneyItems.MONEY_PAPER_5E, | ||||
78 | moneyItems.MONEY_COIN_2E, | ||||
79 | moneyItems.MONEY_COIN_2E, | ||||
80 | moneyItems.MONEY_COIN_1E | ||||
81 | ] | ||||
82 | }, | ||||
83 | { | ||||
84 | "numberOfItem": 1, | ||||
85 | "minPrice": 1, | ||||
86 | "maxPrice": 9, | ||||
87 | "pocket": [ | ||||
88 | moneyItems.MONEY_PAPER_5E, | ||||
89 | moneyItems.MONEY_COIN_2E, | ||||
90 | moneyItems.MONEY_COIN_2E, | ||||
91 | moneyItems.MONEY_COIN_1E | ||||
92 | ] | ||||
93 | }, | ||||
94 | { | ||||
95 | "numberOfItem": 1, | ||||
96 | "minPrice": 1, | ||||
97 | "maxPrice": 10, | ||||
98 | "pocket": [ | ||||
99 | moneyItems.MONEY_PAPER_5E, | ||||
100 | moneyItems.MONEY_PAPER_5E, | ||||
101 | moneyItems.MONEY_COIN_2E, | ||||
102 | moneyItems.MONEY_COIN_2E, | ||||
103 | moneyItems.MONEY_COIN_1E | ||||
104 | ] | ||||
105 | } | ||||
106 | ] | ||||
107 | } |