qmlfrontend/Page1.qml
author unc0rr
Wed, 27 Dec 2017 00:59:26 +0100
branchqmlfrontend
changeset 12868 fe16fa088b69
parent 12866 488782d9aba9
child 12881 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: {
      }
  }

}