Platformer with Level Editor
import QtQuick 2.0
import Felgo 3.0
import "../../common"
DialogBase {
id: removeLevelDialog
property var levelData
Text {
anchors.centerIn: parent
text: "Do you really want to remove this level?"
color: "white"
}
PlatformerTextButton {
id: okButton
screenText: "Ok"
width: 100
anchors.bottom: parent.bottom
anchors.bottomMargin: 50
anchors.left: parent.left
anchors.leftMargin: 100
onClicked: {
if(levelData.publishedLevelId) {
levelEditor.unpublishLevel(levelData)
delete levelData.publishedLevelId
}
levelScene.removeLevelPressed(levelData)
removeLevelDialog.opacity = 0
}
}
PlatformerTextButton {
id: cancelButton
screenText: "Cancel"
width: 100
anchors.bottom: parent.bottom
anchors.bottomMargin: 50
anchors.right: parent.right
anchors.rightMargin: 100