author | unc0rr |
Tue, 02 Jan 2018 23:45:18 +0100 | |
branch | qmlfrontend |
changeset 12881 | b544bbbd0696 |
parent 12868 | fe16fa088b69 |
permissions | -rw-r--r-- |
12859 | 1 |
import QtQuick 2.7 |
12863
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
2 |
import Hedgewars.Engine 1.0 |
12859 | 3 |
|
4 |
Page1Form { |
|
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
5 |
tickButton.onClicked: { |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
6 |
item1.tick(100); |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
7 |
} |
12868 | 8 |
gameButton.onClicked: { |
9 |
HWEngine.runQuickGame() |
|
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
10 |
} |
12859 | 11 |
button1.onClicked: { |
12863
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
12 |
HWEngine.getPreview() |
12859 | 13 |
} |
12866 | 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 |
} |
|
23 |
onPreviewHogCountChanged: { |
|
24 |
} |
|
25 |
} |
|
12859 | 26 |
} |