import QtQuick 1.0

Item {
    id: menu

    anchors.centerIn: parent
    width: screen.width
    height: screen.height

    Column {
        id: selections

        property int selectionHeight: (parent.height - 5*selections.spacing)/4

        anchors.centerIn: parent
        spacing: 10

        Button {
            opacity: !dead
            anchors.horizontalCenter: parent.horizontalCenter
            name: "resume"
            onClicked: resume();
        }
        Button {
            anchors.horizontalCenter: parent.horizontalCenter
            name: "newGame"
            onClicked: newGame();
        }
        Button {
            anchors.horizontalCenter: parent.horizontalCenter
            name: "highScores"
            onClicked: {
                screen.state = 'InfoScreen'
                loader.source = "HighScores.qml"
            }
        }

        Button {
            anchors.horizontalCenter: parent.horizontalCenter
            name: "buy"
            visible: world.iap_enabled
            onClicked: {
                screen.state = 'BuyScreen'
                loader.source = "in_application_billing/Buy.qml";
            }
        }
    }
}
