qmlfrontend/Page1.qml
author nemo
Wed, 05 Dec 2018 09:38:31 -0500
branch0.9.25
changeset 14366 2ab312c47dc3
parent 14298 00b56ec8b7df
child 14371 90bd2c331703
permissions -rw-r--r--
make pas2c function without haskell aborting if locale is C

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