diff options
Diffstat (limited to 'qml/pages/Point.qml')
-rw-r--r-- | qml/pages/Point.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/qml/pages/Point.qml b/qml/pages/Point.qml new file mode 100644 index 0000000..f610461 --- /dev/null +++ b/qml/pages/Point.qml @@ -0,0 +1,29 @@ +import QtQuick 2.0 + +import "../actions.js" as Actions + +Item { + + property string type: ""; + + function getImageForType() { + if ("" === type) { + return "" + } + + return "../content/gfx/" + type + ".png" + } + + MouseArea { + + id: interactiveArea + anchors.fill: parent + onClicked: clickHandler(index); + } + + Image { + id: piece + anchors.fill: parent + source: getImageForType(); + } +} |