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
}
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