This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
qcookieclicker/qml/components/GameButton.qml
dorian 54fff5ee84 - added example delegate in shop
- added animated darkness when the popup is open
2019-02-17 13:57:57 +01:00

23 lines
334 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.4
Button {
id: control
property string imageSrc: ""
width: height
scale: pressed ? 0.8:1
background: Image {
source: control.imageSrc
mipmap: true
}
Behavior on scale {
NumberAnimation {
duration: 100
}
}
}