author | unc0rr |
Sun, 07 Jan 2018 09:48:26 +0100 | |
branch | qmlfrontend |
changeset 12884 | 66171ce586cc |
parent 12876 | b544bbbd0696 |
permissions | -rw-r--r-- |
12854 | 1 |
import QtQuick 2.7 |
2 |
import QtQuick.Controls 2.0 |
|
3 |
import QtQuick.Layouts 1.3 |
|
4 |
||
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
5 |
import Hedgewars.Engine 1.0 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
6 |
|
12854 | 7 |
Item { |
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
8 |
property alias button1: button1 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
9 |
property alias previewImage: previewImage |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
10 |
property alias gameButton: gameButton |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
11 |
width: 1024 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
12 |
height: 800 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
13 |
property alias tickButton: tickButton |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
14 |
property alias item1: item1 |
12854 | 15 |
|
16 |
RowLayout { |
|
17 |
anchors.horizontalCenter: parent.horizontalCenter |
|
18 |
anchors.topMargin: 20 |
|
19 |
anchors.top: parent.top |
|
20 |
||
21 |
Button { |
|
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
22 |
id: button1 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
23 |
text: qsTr("Preview") |
12863 | 24 |
} |
25 |
||
26 |
Button { |
|
27 |
id: gameButton |
|
28 |
text: qsTr("Game") |
|
12854 | 29 |
} |
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
30 |
|
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
31 |
Button { |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
32 |
id: tickButton |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
33 |
text: qsTr("Tick") |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
34 |
} |
12854 | 35 |
} |
12861 | 36 |
|
37 |
Image { |
|
38 |
id: previewImage |
|
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
39 |
x: 8 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
40 |
y: 20 |
12861 | 41 |
width: 256 |
42 |
height: 128 |
|
43 |
source: "qrc:/res/iconTime.png" |
|
44 |
cache: false |
|
45 |
} |
|
12876
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
46 |
|
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
47 |
GameView { |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
48 |
id: item1 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
49 |
x: 8 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
50 |
y: 154 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
51 |
width: 1008 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
52 |
height: 638 |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12863
diff
changeset
|
53 |
} |
12854 | 54 |
} |