author | nemo |
Thu, 13 Dec 2018 10:49:30 -0500 | |
branch | 0.9.25 |
changeset 14441 | 1ffa8bfc5c58 |
parent 14319 | 00b56ec8b7df |
child 14392 | 90bd2c331703 |
permissions | -rw-r--r-- |
12854 | 1 |
import QtQuick 2.7 |
14164 | 2 |
import Hedgewars.Engine 1.0 |
12854 | 3 |
|
4 |
Page1Form { |
|
14164 | 5 |
tickButton.onClicked: { |
14315
21be7838a127
Add advance_simulation() function to engine lib, some WIP on frontend
unc0rr
parents:
14175
diff
changeset
|
6 |
gameView.tick(100) |
14164 | 7 |
} |
8 |
gameButton.onClicked: { |
|
14319 | 9 |
var engineInstance = HWEngine.runQuickGame() |
10 |
gameView.engineInstance = engineInstance |
|
14164 | 11 |
} |
12854 | 12 |
button1.onClicked: { |
14164 | 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 |
} |
|
12854 | 24 |
} |
25 |
} |