Hi,
as you know, we are currently working on a level-editor for CrazyElephant. Each of our levels has different properties, like the number of shots, or the needed score for 1/2/3 stars.
So we are using the customData in the saveCurrentLevel()-method, as follows:
MenuButton {
id: saveBtn
text: "Save Level"
mouseArea.onClicked: nativeUtils.displayTextInput("Enter name.", "Please enter a name for your level:", levelEditor.currentLevelName)
anchors.right: parent.right
Connections {
target: nativeUtils
onTextInputFinished: {
if(accepted) {
levelEditor.saveCurrentLevel( {levelMetaData: {levelName: enteredText}, customData: {star1score: "340"}} )
scene.state = "editing"
}
}
}
}
So my question is now, how can I access this customData from anywhere else?
Or is there a better solution for our problem?