Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

ChickenOutbreak2 Demo

 import QtQuick 2.0
 import Felgo 4.0

 Item {
   id: currencyPackage
   width: parent.width
   height: 70

   property alias source: image.source
   property alias message: message.text
   property bool isMoney: true
   property string packID: ""
   property alias description: description.text

   signal bought

   Rectangle {
     anchors.fill: parent
     color: "#cccccc"
     opacity: 0.8

     Image {
       id: image
       anchors.verticalCenter: parent.verticalCenter
       width: 50
       height: 50
       anchors.left: parent.left
       anchors.leftMargin: 10
     }

     Column {
       anchors.top: parent.top
       anchors.topMargin: 10
       anchors.left: image.right
       anchors.leftMargin: 10
       anchors.right: parent.right
       anchors.rightMargin: 10

       Item {
         width: parent.width
         height: description.height
         MenuText {
           id: description
           font.pixelSize: 20
           color: "#000000"
           anchors.horizontalCenter: parent.horizontalCenter
         }
       }

       Item {
         width: parent.width
         height: message.height
         MenuText {
           id: message
           font.pixelSize: 20
           color: "#000000"
           anchors.horizontalCenter: parent.horizontalCenter
         }
       }
     }
   }

   MouseArea {
     anchors.fill: parent
     onClicked: {
       bought()
       store.buyItem(currencyPackage.packID)
       parent.scale = 1.0
     }
     onPressed: {
       parent.scale = 0.85
     }
     onReleased: {
       parent.scale = 1.0
     }
     onCanceled: {
       parent.scale = 1.0
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded