qmlfrontend/Page1.qml
author Wuzzy <Wuzzy2@mail.ru>
Sat, 01 Dec 2018 15:51:35 +0100
changeset 14357 2ba1f4a971ca
parent 14303 00b56ec8b7df
child 14376 90bd2c331703
permissions -rw-r--r--
Remove unused constand sidEverAfter

import QtQuick 2.7
import Hedgewars.Engine 1.0

Page1Form {
  tickButton.onClicked: {
    gameView.tick(100)
  }
  gameButton.onClicked: {
    var engineInstance = HWEngine.runQuickGame()
    gameView.engineInstance = engineInstance
  }
  button1.onClicked: {
    HWEngine.getPreview()
  }

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