Changeset View
Changeset View
Standalone View
Standalone View
src/activities/money/MoneyCore.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 49 | QtObject { | |||
---|---|---|---|---|---|
51 | property Item main: activity.main | 51 | property Item main: activity.main | ||
52 | property alias background: background | 52 | property alias background: background | ||
53 | property GCSfx audioEffects: activity.audioEffects | 53 | property GCSfx audioEffects: activity.audioEffects | ||
54 | property alias answerModel: answerArea.pocketModel | 54 | property alias answerModel: answerArea.pocketModel | ||
55 | property alias pocketModel: pocketArea.pocketModel | 55 | property alias pocketModel: pocketArea.pocketModel | ||
56 | property alias store: store | 56 | property alias store: store | ||
57 | property alias instructions: instructions | 57 | property alias instructions: instructions | ||
58 | property alias tux: tux | 58 | property alias tux: tux | ||
59 | property var levels: activity.datasetLoader.item.data | ||||
59 | property alias tuxMoney: tuxMoney | 60 | property alias tuxMoney: tuxMoney | ||
60 | property alias bar: bar | 61 | property alias bar: bar | ||
61 | property alias bonus: bonus | 62 | property alias bonus: bonus | ||
62 | property int itemIndex | 63 | property int itemIndex | ||
63 | property var selectedArea | 64 | property var selectedArea | ||
64 | property alias pocket: pocketArea.answer | 65 | property alias pocket: pocketArea.answer | ||
jjazeix: bool? | |||||
65 | property alias answer: answerArea.answer | 66 | property alias answer: answerArea.answer | ||
66 | } | 67 | } | ||
67 | 68 | | |||
68 | onStart: { Activity.start(items, dataset) } | 69 | onStart: { Activity.start(items, dataset) } | ||
69 | onStop: { Activity.stop() } | 70 | onStop: { Activity.stop() } | ||
70 | 71 | | |||
71 | Column { | 72 | Column { | ||
72 | id: columnLayout | 73 | id: columnLayout | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 129 | Image { | |||
130 | visible: activity.dataset === "BACK_WITHOUT_CENTS" || | 131 | visible: activity.dataset === "BACK_WITHOUT_CENTS" || | ||
131 | activity.dataset === "BACK_WITH_CENTS" | 132 | activity.dataset === "BACK_WITH_CENTS" | ||
132 | source: Activity.url + "/tux.svg" | 133 | source: Activity.url + "/tux.svg" | ||
133 | sourceSize.height: columnLayout.itemStoreHeight | 134 | sourceSize.height: columnLayout.itemStoreHeight | ||
134 | sourceSize.width: columnLayout.itemStoreHeight | 135 | sourceSize.width: columnLayout.itemStoreHeight | ||
135 | Repeater { | 136 | Repeater { | ||
136 | id: tuxMoney | 137 | id: tuxMoney | ||
137 | Image { | 138 | Image { | ||
138 | source: Activity.url + modelData.img | 139 | source: modelData.img | ||
139 | sourceSize.height: columnLayout.itemStoreHeight * 0.4 | 140 | sourceSize.height: columnLayout.itemStoreHeight * 0.4 | ||
140 | x: tux.x + index * 20 | 141 | x: tux.x + index * 20 | ||
141 | y: tux.y + tux.height / 2 + index * 20 | 142 | y: tux.y + tux.height / 2 + index * 20 | ||
142 | } | 143 | } | ||
143 | } | 144 | } | ||
144 | } | 145 | } | ||
145 | 146 | | |||
146 | Repeater { | 147 | Repeater { | ||
147 | id: store | 148 | id: store | ||
148 | Image { | 149 | Image { | ||
149 | source: Activity.url + modelData.img | 150 | source: modelData.img | ||
150 | sourceSize.height: columnLayout.itemStoreHeight | 151 | sourceSize.height: columnLayout.itemStoreHeight | ||
151 | sourceSize.width: columnLayout.itemStoreHeight | 152 | sourceSize.width: columnLayout.itemStoreHeight | ||
152 | GCText { | 153 | GCText { | ||
153 | text: modelData.price | 154 | text: modelData.price | ||
154 | fontSize: 16 | 155 | fontSize: 16 | ||
155 | font.weight: Font.DemiBold | 156 | font.weight: Font.DemiBold | ||
156 | style: Text.Outline | 157 | style: Text.Outline | ||
157 | styleColor: "black" | 158 | styleColor: "black" | ||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |
bool?