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 |
2 |
import QtQuick.Controls 2.0 |
|
3 |
import QtQuick.Layouts 1.3 |
|
4 |
||
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 |
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:
12868
diff
changeset
|
6 |
|
12859 | 7 |
Item { |
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
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:
12868
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:
12868
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:
12868
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:
12868
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:
12868
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:
12868
diff
changeset
|
14 |
property alias item1: item1 |
12859 | 15 |
|
16 |
RowLayout { |
|
17 |
anchors.horizontalCenter: parent.horizontalCenter |
|
18 |
anchors.topMargin: 20 |
|
19 |
anchors.top: parent.top |
|
20 |
||
21 |
Button { |
|
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
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:
12868
diff
changeset
|
23 |
text: qsTr("Preview") |
12868 | 24 |
} |
25 |
||
26 |
Button { |
|
27 |
id: gameButton |
|
28 |
text: qsTr("Game") |
|
12859 | 29 |
} |
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
30 |
|
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
31 |
Button { |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
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:
12868
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:
12868
diff
changeset
|
34 |
} |
12859 | 35 |
} |
12866 | 36 |
|
37 |
Image { |
|
38 |
id: previewImage |
|
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
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:
12868
diff
changeset
|
40 |
y: 20 |
12866 | 41 |
width: 256 |
42 |
height: 128 |
|
43 |
source: "qrc:/res/iconTime.png" |
|
44 |
cache: false |
|
45 |
} |
|
12881
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
46 |
|
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
diff
changeset
|
47 |
GameView { |
b544bbbd0696
Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents:
12868
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:
12868
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:
12868
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:
12868
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:
12868
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:
12868
diff
changeset
|
53 |
} |
12859 | 54 |
} |