diff --git a/src/activities/magic-hat-minus/StarsBar.qml b/src/activities/magic-hat-minus/StarsBar.qml index 839849807..bcc7fda7b 100644 --- a/src/activities/magic-hat-minus/StarsBar.qml +++ b/src/activities/magic-hat-minus/StarsBar.qml @@ -1,121 +1,121 @@ /* GCompris - MagicHat.qml * * Copyright (C) 2014 Thibaut ROMAIN * * Authors: * (GTK+ version) * Thibaut ROMAIN (Qt Quick port) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ import QtQuick 2.6 import "magic-hat.js" as Activity import "../../core" Item { id: item height: starsSize property int barGroupIndex property int barIndex property int nbStarsOn: 0 property bool authorizeClick: false property int coefficient: 1 property bool coefficientVisible: false property int starsSize property string backgroundColor property string starsColor: "1" property Item theHat property alias repeaterStars: repeaterStars Row { id: rowlayout height: item.height spacing: 5 GCText { id: text visible: item.coefficientVisible - //: text displaying coefficient with which the set of stars is to be multiplied along with multipli. + //: text displaying coefficient with which the set of stars is to be multiplied along with multiplication symbol. text: qsTr("%1x").arg(item.coefficient) fontSizeMode: Text.HorizontalFit width: rowlayout.width / 10 color: "white" anchors.rightMargin: 20 fontSize: tinySize } Repeater { id: repeaterStars model: item.opacity == 1 ? 10 : 0 Item { id: star width: item.starsSize height: item.starsSize property alias starFixed: starFixed property alias starToMove: starToMove Star { id: starFixed barGroupIndex: item.barGroupIndex barIndex: item.barIndex backgroundColor: item.backgroundColor wantedColor: starsColor selected: index < nbStarsOn ? true : false width: item.starsSize height: item.starsSize displayBounds: true isClickable: item.authorizeClick } Star { id: starToMove barGroupIndex: item.barGroupIndex backgroundColor: item.backgroundColor wantedColor: starsColor selected: index < nbStarsOn ? true : false width: item.starsSize height: item.starsSize displayBounds: false isClickable: false enabled: selected ? true : false initialParent: star theHat: item.theHat.target } } } } function moveStars() { activity.audioEffects.play("qrc:/gcompris/src/core/resource/sounds/smudge.wav") for(var i=0; i