equal
deleted
inserted
replaced
1 import QtQuick 2.0 |
1 import QtQuick 2.0 |
2 import Hedgewars.Engine 1.0 |
2 import Hedgewars.Engine 1.0 |
3 |
3 |
4 |
4 |
5 Rectangle { |
5 Rectangle { |
|
6 Column { |
|
7 spacing: 8 |
|
8 |
6 HWButton { |
9 HWButton { |
7 id: btnPreview |
10 id: btnPreview |
8 x: 50 |
|
9 y: 16 |
|
10 width: 256 |
11 width: 256 |
11 height: 128 |
12 height: 128 |
12 |
13 |
13 onClicked: HWEngine.getPreview() |
14 onClicked: HWEngine.getPreview() |
14 |
15 |
25 height: 128 |
26 height: 128 |
26 cache: false |
27 cache: false |
27 } |
28 } |
28 } |
29 } |
29 |
30 |
30 HWButton { |
|
31 id: btnRunGame |
|
32 x: 600 |
|
33 y: 440 |
|
34 width: 32 |
|
35 height: 32 |
|
36 |
|
37 onClicked: HWEngine.runLocalGame() |
|
38 } |
|
39 |
|
40 HWComboBox { |
31 HWComboBox { |
41 id: cbTheme |
32 id: cbTheme |
42 x: 50 |
|
43 y: 160 |
|
44 width: 256 |
33 width: 256 |
45 height: 64 |
34 height: 64 |
46 |
35 |
47 model: themesModel |
36 model: themesModel |
48 delegate: Rectangle { |
37 delegate: Rectangle { |
69 } |
58 } |
70 } |
59 } |
71 |
60 |
72 HWComboBox { |
61 HWComboBox { |
73 id: cbScript |
62 id: cbScript |
74 x: 50 |
63 width: 256 |
75 y: 256 |
64 height: 32 |
76 width: 256 |
|
77 height: 64 |
|
78 |
65 |
79 model: scriptsModel |
66 model: scriptsModel |
80 delegate: Rectangle { |
67 delegate: Rectangle { |
81 height: 25 |
68 height: 25 |
82 width: 100 |
69 width: 100 |
101 } |
88 } |
102 } |
89 } |
103 |
90 |
104 HWComboBox { |
91 HWComboBox { |
105 id: cbScheme |
92 id: cbScheme |
106 x: 50 |
93 width: 256 |
107 y: 336 |
94 height: 32 |
108 width: 256 |
|
109 height: 64 |
|
110 |
95 |
111 model: schemesModel |
96 model: schemesModel |
112 delegate: Rectangle { |
97 delegate: Rectangle { |
113 height: 25 |
98 height: 25 |
114 width: 100 |
99 width: 100 |
134 } |
119 } |
135 |
120 |
136 |
121 |
137 HWComboBox { |
122 HWComboBox { |
138 id: cbAmmo |
123 id: cbAmmo |
139 x: 50 |
124 width: 256 |
140 y: 416 |
125 height: 32 |
141 width: 256 |
|
142 height: 64 |
|
143 |
126 |
144 model: ammosModel |
127 model: ammosModel |
145 delegate: Rectangle { |
128 delegate: Rectangle { |
146 height: 25 |
129 height: 25 |
147 width: 100 |
130 width: 100 |
162 cbAmmo.currentIndex = index |
145 cbAmmo.currentIndex = index |
163 HWEngine.setAmmo(ammoName.text) |
146 HWEngine.setAmmo(ammoName.text) |
164 } |
147 } |
165 } |
148 } |
166 } |
149 } |
|
150 } |
167 } |
151 } |
168 |
152 |
169 ListView { |
153 ListView { |
170 id: playingTeamsList |
154 id: playingTeamsList |
171 x: 440 |
155 x: 440 |