qmlfrontend/Page1.qml
author Wuzzy <Wuzzy2@mail.ru>
Mon, 19 Nov 2018 18:27:45 +0100
changeset 14241 bf627790da14
parent 14154 8354b390f1a2
child 14294 21be7838a127
permissions -rw-r--r--
Show extra seconds when collecting a crate in Teamwork String freeze is not violated because the string was already collected.

import QtQuick 2.7
import Hedgewars.Engine 1.0

Page1Form {
  tickButton.onClicked: {

    //    item1.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"
    }
  }
}