qmlfrontend/Page1.qml
author Wuzzy <Wuzzy2@mail.ru>
Mon, 26 Nov 2018 19:10:08 +0100
changeset 14301 8fc6ac47f00a
parent 14298 00b56ec8b7df
child 14371 90bd2c331703
permissions -rw-r--r--
Tweak Construction Mode, HedgeEditor, Space Invasion and Tumbler to support touch interface

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"
    }
  }
}