qmlFrontend/qml/qmlFrontend/LocalGame.qml
author unc0rr
Tue, 17 May 2016 23:18:08 +0300
branchqmlfrontend
changeset 11827 8c71c5a1172f
parent 11426 ab6a6d9ebfc0
permissions -rw-r--r--
- Add state to engine callback for it to know what engine is sending - Display suggested hogs number in preview

import QtQuick 2.0
import Hedgewars.Engine 1.0

Rectangle {
    HWButton {
        id: btnQuickGame
        x: 8
        y: 66
        width: 150
        height: 150

        onClicked: HWEngine.runQuickGame()
    }

    HWButton {
        id: btnMultiplayer
        x: 192
        y: 66
        width: 150
        height: 150

        onClicked: pages.currentPage = "Multiplayer"
    }

    HWButton {
        id: btnBack
        width: 40
        height: 40
        anchors.bottom: parent.bottom
        anchors.left: parent.left

        onClicked: pages.currentPage = "First"
    }
}