Stack With Friends Demo
import QtQuick 2.0
import Felgo 3.0
Item {
id: infoDialog
width: levelScene.gameWindowAnchorItem.width
height: levelScene.gameWindowAnchorItem.height
anchors.centerIn: parent
enabled: opacity > 0
property variant levelData
Behavior on opacity {
NumberAnimation { duration: 150}
}
MouseArea {
anchors.fill: parent
}
Rectangle {
color: "black"
anchors.fill: parent
opacity: 0.9
}
Text {
anchors.centerIn: parent
text: levelData ? "Downloads: " + levelData.times_downloaded + "\nAverage Rating: " + (levelData.average_quality).toFixed(1) : ""
color: "white"
font.pixelSize: 17
font.family: fontHUD.name
}
MultiResolutionImage {
source: "../../../assets/img/gamescene-top.png"
anchors.horizontalCenter: parent.horizontalCenter
Item {
width: 39
height: 39
x: 12
y: -1
MultiResolutionImage {
source: "../../../assets/img/back-button.png"
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
onClicked: infoDialog.opacity = 0
}