qmlfrontend/Page1.qml
author Wuzzy <Wuzzy2@mail.ru>
Mon, 26 Nov 2018 14:31:36 +0100
changeset 14297 a6c5ce147530
parent 14294 21be7838a127
child 14298 00b56ec8b7df
permissions -rw-r--r--
Lua API: Change PLATFORM to INTERFACE

import QtQuick 2.7
import Hedgewars.Engine 1.0

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

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