Changeset View
Changeset View
Standalone View
Standalone View
src/activities/penalty/Zones.qml
- This file was added.
1 | import QtQuick 2.0 | ||||
---|---|---|---|---|---|
2 | | ||||
3 | Rectangle { | ||||
4 | id: rectangle | ||||
5 | state: "INITIAL" | ||||
6 | property var progress: undefined | ||||
7 | states: [ | ||||
8 | State { | ||||
9 | name: "LEFT" | ||||
10 | }, | ||||
11 | State { | ||||
12 | name: "RIGHT" | ||||
13 | }, | ||||
14 | State { | ||||
15 | name: "CENTER" | ||||
16 | } | ||||
17 | ] | ||||
18 | color: "transparent" | ||||
19 | | ||||
20 | MouseArea { | ||||
21 | anchors.fill: parent | ||||
22 | acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MidButton | ||||
23 | enabled: { | ||||
24 | background.isEnabled(this.parent) | ||||
25 | } | ||||
26 | | ||||
27 | onClicked: { | ||||
28 | background.changeBallState(this.parent) | ||||
29 | } | ||||
30 | } | ||||
31 | } |