1MainWindow
2 id: desafiosWindow
3 size: 800 400
4 image-source: /images/custom/UI/none
5 draggable: false
6 focusable: true
7 @onEscape: closer()
8
9 UIButton
10 id: desafiosButton
11 size: 61 61
12 image-source: /images/custom/UI/desafios_on
13 anchors.top: parent.top
14 anchors.left: parent.left
15 margin-left: -5
16 margin-top: 17
17 opacity: 0.8
18 $pressed:
19 opacity: 0.6
20 $hover !pressed:
21 opacity: 1.0
22
23 UIButton
24 id: desafiosPanel
25 size: 570 365
26 focusable: true
27 image-source: /images/custom/UI/central_back
28 anchors.top: parent.top
29 anchors.left: desafiosButton.right
30 margin-left: 10
31 margin-top: -10
32
33 Label
34 id: textTitle
35 !text: tr("DESAFIOS DIARIOS")
36 text-align: center
37 font: newfont-16px-rounded
38 height: 22
39 anchors.top: parent.top
40 anchors.left: parent.left
41 anchors.right: parent.right
42 margin-top: 10
43 margin-left: 20
44 margin-right: 20
45
46 Label
47 id: textDesafio
48 !text: tr("Todos os dias, desafios sao sorteados aleatoriamente. Voce pode fazer todos, mas so pode ativar 1 por vez. Clique no desafio para ativa-lo.")
49 font: lucida-11px-rounded
50 text-offset: 10 10
51 text-wrap: true
52 height: 50
53 image-source: /images/custom/Task/Monster_2
54 anchors.top: textTitle.bottom
55 anchors.left: parent.left
56 anchors.right: parent.right
57 margin-top: 10
58 margin-left: 20
59 margin-right: 20
60
61 VerticalScrollBar
62 id: DesafiosPanelScrollBar
63 anchors.top: textDesafio.bottom
64 anchors.bottom: parent.bottom
65 anchors.right: parent.right
66 step: 24
67 opacity: 0.7
68 margin-bottom: 20
69 margin-top: 10
70 margin-right: 15
71 pixels-scroll: true
72
73 ScrollablePanel
74 id: DesafiosScrollPanel
75 height: 180
76 anchors.right: prev.left
77 anchors.left: parent.left
78 anchors.top: textDesafio.bottom
79 anchors.bottom: parent.bottom
80 vertical-scrollbar: DesafiosPanelScrollBar
81 margin-left: 20
82 margin-top: 10
83 margin-right: 05
84 margin-bottom: 20
85 layout:
86 type: grid
87 cell-size: 515 60
88 flow: true
89 auto-spacing: false
90
91 UIButton
92 id: alertMensagem
93 height: 170
94 image-source: /images/custom/UI/black_Panel
95 anchors.top: parent.top
96 anchors.left: parent.left
97 anchors.right: parent.right
98 margin-top: 100
99 margin-left: -1
100 margin-right: -1
101
102 UIButton
103 height: 2
104 image-source: /images/custom/UI/separador
105 anchors.top: parent.top
106 anchors.left: parent.left
107 anchors.right: parent.right
108 margin-top: -1
109
110 Label
111 id: titleAlert
112 height: 22
113 font: newfont-16px-rounded
114 text: Titulo de Alerta
115 text-align: center
116 anchors.top: parent.top
117 anchors.left: parent.left
118 anchors.right: parent.right
119 margin-top: 25
120 margin-left: -1
121 margin-right: -1
122
123 UIButton
124 id: circleIcon
125 size: 70 70
126 icon: /images/custom/Spells/Passiva/passive_1
127 anchors.top: parent.top
128 anchors.left: parent.left
129 margin-top: -30
130 margin-left: 245
131
132 Label
133 id: descAlert
134 height: 55
135 font: verdana-11px-antialised
136
137 text-align: center
138 text-wrap: true
139 anchors.top: circleIcon.bottom
140 anchors.left: parent.left
141 anchors.right: parent.right
142 margin-top: 10
143 margin-left: 05
144 margin-right: 05
145
146 UIButton
147 id: confirmAlert
148 height: 25
149 image-source: /images/custom/UI/button_2
150 font: verdana-11px-antialised
151 !text: tr('Confirmar')
152 text-align: center
153 anchors.bottom: parent.bottom
154 anchors.left: parent.left
155 margin-bottom: 15
156 margin-left: 50
157 opacity: 0.8
158 $pressed:
159 opacity: 0.6
160 $hover !pressed:
161 opacity: 1.0
162
163 UIButton
164 id: cancelAlert
165 height: 25
166 image-source: /images/custom/UI/button_3
167 font: verdana-11px-antialised
168 !text: tr('Cancelar')
169 text-align: center
170 anchors.bottom: parent.bottom
171 anchors.left: confirmAlert.right
172 margin-bottom: 15
173 margin-left: 10
174 opacity: 0.8
175 $pressed:
176 opacity: 0.6
177 $hover !pressed:
178 opacity: 1.0
179
180 UIButton
181 height: 2
182 image-source: /images/custom/UI/separador
183 anchors.bottom: parent.bottom
184 anchors.left: parent.left
185 anchors.right: parent.right
186 margin-bottom: -1
187
188 UIButton
189 id: shopButton
190 size: 61 61
191 image-source: /images/custom/UI/desafios_shop_on
192 anchors.top: desafiosButton.bottom
193 anchors.left: parent.left
194 margin-left: -5
195 margin-top: 10
196 opacity: 0.8
197 $pressed:
198 opacity: 0.6
199 $hover !pressed:
200 opacity: 1.0
201
202 UIButton
203 id: shopPanel
204 size: 570 365
205 focusable: true
206 image-source: /images/custom/UI/central_back
207 anchors.top: parent.top
208 anchors.left: shopButton.right
209 margin-left: 10
210 margin-top: -10
211
212 Label
213 id: saldoDesafioPoints
214 font: lucida-11px-rounded
215 text-offset: 05 05
216 text-align: center
217 text-wrap: true
218 size: 150 55
219 image-source: /images/custom/UI/button_4
220 anchors.top: parent.top
221 anchors.left: parent.left
222 margin-top: 15
223 margin-left: 20
224 opacity: 0.8
225
226 Label
227 id: shopTextDesafio
228 !text: tr('Use seus pontos de desafio para comprar produtos exclusivos desse Shop. Voce so podera ter 1 produto ativo por vez.')
229 font: lucida-11px-rounded
230 text-offset: 10 10
231 text-wrap: true
232 height: 55
233 image-source: /images/custom/Task/Monster_2
234 anchors.top: parent.top
235 anchors.left: saldoDesafioPoints.right
236 anchors.right: parent.right
237 margin-top: 15
238 margin-left: 10
239 margin-right: 20
240
241 VerticalScrollBar
242 id: DesafiosShopPanelScrollBar
243 anchors.top: shopTextDesafio.bottom
244 anchors.bottom: parent.bottom
245 anchors.right: parent.right
246 step: 24
247 opacity: 0.7
248 margin-bottom: 20
249 margin-top: 15
250 margin-right: 15
251 pixels-scroll: true
252
253 ScrollablePanel
254 id: DesafiosShopScrollPanel
255 height: 180
256 anchors.right: prev.left
257 anchors.left: parent.left
258 anchors.top: shopTextDesafio.bottom
259 anchors.bottom: parent.bottom
260 vertical-scrollbar: DesafiosShopPanelScrollBar
261 margin-left: 20
262 margin-top: 15
263 margin-right: 05
264 margin-bottom: 20
265 layout:
266 type: grid
267 cell-size: 115 162
268 flow: true
269 auto-spacing: true
270
271 UIButton
272 id: shopMensagem
273 height: 170
274 image-source: /images/custom/UI/black_Panel
275 anchors.top: parent.top
276 anchors.left: parent.left
277 anchors.right: parent.right
278 margin-top: 100
279 margin-left: -1
280 margin-right: -1
281
282 UIButton
283 height: 2
284 image-source: /images/custom/UI/separador
285 anchors.top: parent.top
286 anchors.left: parent.left
287 anchors.right: parent.right
288 margin-top: -1
289
290 Label
291 id: titleShop
292 height: 22
293 font: newfont-16px-rounded
294 text: Nome do Produto
295 text-align: center
296 anchors.top: parent.top
297 anchors.left: parent.left
298 anchors.right: parent.right
299 margin-top: 25
300 margin-left: -1
301 margin-right: -1
302
303 UIButton
304 id: circleShop
305 size: 70 70
306 anchors.top: parent.top
307 anchors.left: parent.left
308 margin-top: -55
309 margin-left: 245
310
311 Label
312 id: descShop
313 height: 55
314 font: verdana-11px-antialised
315
316 text-align: center
317 text-wrap: true
318 anchors.top: circleShop.bottom
319 anchors.left: parent.left
320 anchors.right: parent.right
321 margin-top: 30
322 margin-left: 05
323 margin-right: 05
324
325 UIButton
326 id: desafioCoin
327 size: 150 25
328 image-source: /images/custom/UI/button_4
329 font: verdana-11px-antialised
330 text-align: center
331 anchors.bottom: parent.bottom
332 anchors.left: parent.left
333 margin-bottom: 15
334 margin-left: 50
335 opacity: 0.8
336 $pressed:
337 opacity: 0.6
338 $hover !pressed:
339 opacity: 1.0
340
341 UIButton
342 id: vipShop
343 size: 150 25
344 image-source: /images/custom/UI/button_1
345 font: verdana-11px-antialised
346 text-align: center
347 anchors.bottom: parent.bottom
348 anchors.left: desafioCoin.right
349 margin-bottom: 15
350 margin-left: 10
351 opacity: 0.8
352 $pressed:
353 opacity: 0.6
354 $hover !pressed:
355 opacity: 1.0
356
357 UIButton
358 id: cancelShop
359 size: 150 25
360 image-source: /images/custom/UI/button_3
361 font: verdana-11px-antialised
362 !text: tr('Cancelar')
363 text-align: center
364 anchors.bottom: parent.bottom
365 anchors.left: vipShop.right
366 margin-bottom: 15
367 margin-left: 10
368 opacity: 0.8
369 $pressed:
370 opacity: 0.6
371 $hover !pressed:
372 opacity: 1.0
373
374 UIButton
375 height: 2
376 image-source: /images/custom/UI/separador
377 anchors.bottom: parent.bottom
378 anchors.left: parent.left
379 anchors.right: parent.right
380 margin-bottom: -1
381
382 UIButton
383 id: exitButton
384 image-source: /images/custom/UI/desafios_exit
385 size: 61 61
386 anchors.top: shopButton.bottom
387 anchors.left: parent.left
388 margin-left: -5
389 margin-top: 10
390 opacity: 0.8
391 $pressed:
392 opacity: 0.6
393 $hover !pressed:
394 opacity: 1.0
395 @onClick: closer()