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

Squaby Demo

 import QtQuick 2.0

 Row {
   id: weaponsRow

   BuyTowerButton {
     id: nailgun
     source: Qt.resolvedUrl("../../../assets/img/menu_labels/nailgun.png")
     toCreateEntityType: Qt.resolvedUrl("../../entities/Nailgun.qml")
     visible: level.towerPermissions ? level.towerPermissions[0].checked : false
   }
   BuyTowerButton {
     id: flamethrower
     source: Qt.resolvedUrl("../../../assets/img/menu_labels/flamethrower.png")
     toCreateEntityType: Qt.resolvedUrl("../../entities/Flamethrower.qml")
     visible: level.towerPermissions ? level.towerPermissions[1].checked : false
   }
   // To enable new towers add lines in MyLevel.json:
   // ,{"checked":false,"name":"tesla"},{"checked":false,"name":"turbine"}
   // add lines in LevelEmpfty.qml
   //{checked: false, name: "taser"},
   //{checked: false, name: "tesla"},
   // and add buttons in BuyTowersHUD.qml
   // add lines in SquabyBalacingSettings.qml
   /*BuyTowerButton {
     id: taser
     source: Qt.resolvedUrl("taser.png")
     toCreateEntityType: Qt.resolvedUrl("../../entities/Taser.qml")
     visible: level.towerPermissions ? level.towerPermissions[2].checked : false
   }
   BuyTowerButton {
     id: tesla
     source: Qt.resolvedUrl("tesla.png")
     toCreateEntityType: Qt.resolvedUrl("../../entities/Tesla.qml")
     visible: level.towerPermissions ? level.towerPermissions[3].checked : false
   }*/
   // these buttons are used as dragging the tower and the initial versions of the tower in the default state
   BuyTowerButton {
     id: turbine
     source: Qt.resolvedUrl("../../../assets/img/menu_labels/turbine.png")
     toCreateEntityType: Qt.resolvedUrl("../../entities/Turbine.qml")
     visible: level.towerPermissions ? level.towerPermissions[2].checked : false
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded