Changeset View
Changeset View
Standalone View
Standalone View
src/activities/explore_farm_animals/ExploreLevels.qml
Context not available. | |||||
90 | property alias instruction: instruction | 90 | property alias instruction: instruction | ||
---|---|---|---|---|---|
91 | property alias instructionText: instructionText | 91 | property alias instructionText: instructionText | ||
92 | property alias descriptionPanel: descriptionPanel | 92 | property alias descriptionPanel: descriptionPanel | ||
93 | property bool levelComplete: false | ||||
93 | property bool hasAudioQuestions: activity.hasAudioQuestions | 94 | property bool hasAudioQuestions: activity.hasAudioQuestions | ||
94 | property string currentAudio | 95 | property string currentAudio | ||
95 | property var questionOrder | 96 | property var questionOrder | ||
Context not available. | |||||
132 | Component.onCompleted: { | 133 | Component.onCompleted: { | ||
133 | displayDescription.connect(displayDescriptionItem) | 134 | displayDescription.connect(displayDescriptionItem) | ||
134 | } | 135 | } | ||
136 | touchArea.mouseEnabled: !items.levelComplete | ||||
135 | } | 137 | } | ||
136 | } | 138 | } | ||
137 | 139 | | |||
Context not available. | |||||
186 | anchors.margins: 10 * ApplicationInfo.ratio | 188 | anchors.margins: 10 * ApplicationInfo.ratio | ||
187 | MouseArea { | 189 | MouseArea { | ||
188 | anchors.fill: parent | 190 | anchors.fill: parent | ||
189 | onClicked: Activity.nextLevel() | 191 | onClicked: { | ||
192 | items.levelComplete = false | ||||
193 | Activity.nextLevel() | ||||
194 | } | ||||
190 | } | 195 | } | ||
191 | } | 196 | } | ||
192 | 197 | | |||
Context not available. |