Warning, /education/gcompris/src/activities/tic_tac_toe/Piece.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - TicTacToe.qml
0002  *
0003  * SPDX-FileCopyrightText: 2014 Pulkit Gupta <pulkitgenius@gmail.com>
0004  *
0005  * Authors:
0006  *   Pulkit Gupta <pulkitgenius@gmail.com>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import QtQuick 2.12
0011 import "tic_tac_toe.js" as Activity
0012 
0013 import GCompris 1.0
0014 
0015 Image {
0016     id: piece
0017 
0018     opacity: 1.0
0019 
0020     states: [
0021         State {
0022             name: "invisible"
0023             PropertyChanges {
0024                 target: piece
0025                 opacity: 0
0026             }
0027         },
0028         State {
0029             name: "2" // Player 2
0030             PropertyChanges{
0031                 target: piece
0032                 source: Activity.url + "circle.svg"
0033             }
0034         },
0035         State {
0036             name: "1" // Player 1
0037             PropertyChanges {
0038                 target: piece
0039                 source: Activity.url + "cross.svg"
0040             }
0041         }
0042     ]
0043 }