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

Platformer with Level Editor

 import QtQuick 2.0
 import Felgo 3.0
 import "../../common"

 Item {
   id: dialogBase

   // make it appear in front of anything else
   z: 1000

   // fill game window
   anchors.fill: parent.gameWindowAnchorItem ? parent.gameWindowAnchorItem : parent

   opacity: 0 // opaque by default
   enabled: opacity > 0 // otherwise this item would receive mouse events when opaque

   // if this is true, the user can close this dialog by clicking anywhere in the background
   property bool closeableByClickOnBackground: true

   // this MouseArea fills the whole screen
   MouseArea {
     anchors.fill: parent

     // when it's clicked and closeableByClickOnBackground is true, the dialog should be closed
     onClicked: {
       if(closeableByClickOnBackground)
         dialogBase.opacity = 0
     }
   }

   // background
   Rectangle {
     anchors.fill: parent

     color: "black"
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded