1/* GCompris - TicTacToe.qml
2 *
3 * SPDX-FileCopyrightText: 2014 Pulkit Gupta <pulkitgenius@gmail.com>
4 *
5 * Authors:
6 *   Pulkit Gupta <pulkitgenius@gmail.com>
7 *
8 *   SPDX-License-Identifier: GPL-3.0-or-later
9 */
10import QtQuick 2.9
11import "tic_tac_toe.js" as Activity
12
13import GCompris 1.0
14
15Image {
16    id: piece
17
18    opacity: 1.0
19
20    states: [
21        State {
22            name: "invisible"
23            PropertyChanges {
24                target: piece
25                opacity: 0
26            }
27        },
28	State {
29            name: "2" // Player 2
30            PropertyChanges{
31                target: piece
32                source: Activity.url + "circle.svg"
33            }
34        },
35        State {
36            name: "1" // Player 1
37            PropertyChanges {
38                target: piece
39                source: Activity.url + "cross.svg"
40            }
41        }
42    ]
43}
44