Warning, /education/gcompris/src/activities/align4_2players/Piece.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - align4-2players.qml 0002 * 0003 * SPDX-FileCopyrightText: 2014 Bharath M S <brat.197@gmail.com> 0004 * 0005 * Authors: 0006 * Laurent Lacheny <laurent.lacheny@wanadoo.fr> (GTK+ version) 0007 * Bharath M S <brat.197@gmail.com> (Qt Quick port) 0008 * 0009 * SPDX-License-Identifier: GPL-3.0-or-later 0010 */ 0011 import QtQuick 2.12 0012 import "align4.js" as Activity 0013 0014 import GCompris 1.0 0015 0016 Image { 0017 id: piece 0018 fillMode: Image.PreserveAspectFit 0019 0020 opacity: 1.0 0021 0022 states: [ 0023 State { 0024 name: "invisible" 0025 PropertyChanges { 0026 target: piece 0027 opacity: 0 0028 } 0029 }, 0030 State { 0031 name: "2" // Player 2 0032 PropertyChanges{ 0033 target: piece 0034 opacity: 1.0 0035 source: Activity.url + "stone_2.svg" 0036 } 0037 }, 0038 State { 0039 name: "1" // Player 1 0040 PropertyChanges { 0041 target: piece 0042 opacity: 1.0 0043 source: Activity.url + "stone_1.svg" 0044 } 0045 }, 0046 State { 0047 name: "crossed1" 0048 PropertyChanges { 0049 target: piece 0050 opacity: 1.0 0051 source: Activity.url + "win1.svg" 0052 } 0053 }, 0054 State { 0055 name: "crossed2" 0056 PropertyChanges { 0057 target: piece 0058 opacity: 1.0 0059 source: Activity.url + "win2.svg" 0060 } 0061 } 0062 ] 0063 }