author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 26 Nov 2018 20:40:25 +0100 | |
changeset 14307 | 8d2983ff939b |
parent 14303 | 00b56ec8b7df |
child 14376 | 90bd2c331703 |
permissions | -rw-r--r-- |
12859 | 1 |
import QtQuick 2.7 |
14148 | 2 |
import Hedgewars.Engine 1.0 |
12859 | 3 |
|
4 |
Page1Form { |
|
14148 | 5 |
tickButton.onClicked: { |
14299
21be7838a127
Add advance_simulation() function to engine lib, some WIP on frontend
unc0rr
parents:
14159
diff
changeset
|
6 |
gameView.tick(100) |
14148 | 7 |
} |
8 |
gameButton.onClicked: { |
|
14303 | 9 |
var engineInstance = HWEngine.runQuickGame() |
10 |
gameView.engineInstance = engineInstance |
|
14148 | 11 |
} |
12859 | 12 |
button1.onClicked: { |
14148 | 13 |
HWEngine.getPreview() |
14 |
} |
|
15 |
||
16 |
Connections { |
|
17 |
target: HWEngine |
|
18 |
onPreviewImageChanged: { |
|
19 |
previewImage.source = "image://preview/image" |
|
20 |
} |
|
21 |
onPreviewIsRendering: { |
|
22 |
previewImage.source = "qrc:/res/iconTime.png" |
|
23 |
} |
|
12859 | 24 |
} |
25 |
} |