Juicy Squash - Match-3 Game
import Felgo 4.0
import QtQuick 2.0
Item {
id: creditsWindow
width: 243
height: 180
visible: opacity > 0
enabled: opacity == 1
signal backClicked()
signal vplayClicked()
Image {
source: Qt.resolvedUrl("../../assets/img/CreditsWindow.png")
anchors.fill: parent
}
JuicyButton {
text: "back to menu"
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.bottom
anchors.topMargin: 0
onClicked: backClicked()
}
MouseArea {
width: parent.width - 70
height: 40
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 18
onClicked: vplayClicked()
}
Behavior on opacity {
NumberAnimation { duration: 400 }
}
function show() {
creditsWindow.opacity = 1
}
function hide() {