author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 26 Nov 2018 14:31:36 +0100 | |
changeset 14318 | a6c5ce147530 |
parent 14315 | 21be7838a127 |
child 14319 | 00b56ec8b7df |
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: { |
|
9 |
HWEngine.runQuickGame() |
|
10 |
} |
|
12854 | 11 |
button1.onClicked: { |
14164 | 12 |
HWEngine.getPreview() |
13 |
} |
|
14 |
||
15 |
Connections { |
|
16 |
target: HWEngine |
|
17 |
onPreviewImageChanged: { |
|
18 |
previewImage.source = "image://preview/image" |
|
19 |
} |
|
20 |
onPreviewIsRendering: { |
|
21 |
previewImage.source = "qrc:/res/iconTime.png" |
|
22 |
} |
|
12854 | 23 |
} |
24 |
} |