qmlFrontend/qml/qmlFrontend/GameConfig.qml
author unc0rr
Sat, 27 Sep 2014 12:49:08 +0400
branchqmlfrontend
changeset 10424 4be6cd55f1cf
parent 10422 4cf23d4c7624
child 10428 7c25297720f1
permissions -rw-r--r--
- Get rid of engine's PathPrefix and UserPathPrefix - Some refactoring

import QtQuick 2.0
import Hedgewars.Engine 1.0

Rectangle {
    HWButton {
        id: btnPreview
        x: 50
        y: 66
        width: 150
        height: 150

        onClicked: {
            HWEngine.run()
        }

        Connections {
            target: HWEngine
            onPreviewImageChanged: previewImage.source = "image://preview/" + HWEngine.currentSeed()
        }
    }

    Image {
        id: previewImage
        x: 210
        y: 70
        width: 256
        height: 128
        cache: false
    }
}