qmlfrontend/Page1.qml
author unc0rr
Wed, 27 Dec 2017 00:59:26 +0100
branchqmlfrontend
changeset 12863 fe16fa088b69
parent 12861 488782d9aba9
child 12876 b544bbbd0696
permissions -rw-r--r--
Make playing a game possible

import QtQuick 2.7
import Hedgewars.Engine 1.0

Page1Form {
  gameButton.onClicked: {
    HWEngine.runQuickGame()
}
  button1.onClicked: {
    HWEngine.getPreview()
  }

  Connections {
      target: HWEngine
      onPreviewImageChanged: {
          previewImage.source = "image://preview/image"
      }
      onPreviewIsRendering: {
        console.log("==========")
          previewImage.source = "qrc:/res/iconTime.png"
      }
      onPreviewHogCountChanged: {
      }
  }

}