Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/themes/frame.edc
- This file was added.
1 | group { | ||||
---|---|---|---|---|---|
2 | name: "floor"; | ||||
3 | | ||||
4 | images { | ||||
5 | image: "bg_floor.jpg" COMP; | ||||
6 | } | ||||
7 | | ||||
8 | parts { | ||||
9 | | ||||
10 | part { | ||||
11 | name: "floor"; | ||||
12 | type: IMAGE; | ||||
13 | mouse_events: 0; | ||||
14 | description { | ||||
15 | state: "default" 0.0; | ||||
16 | min: 750 224; | ||||
17 | image.normal: "bg_floor.jpg"; | ||||
18 | } | ||||
19 | } | ||||
20 | | ||||
21 | } | ||||
22 | | ||||
23 | } | ||||
24 | | ||||
25 | group { | ||||
26 | name: "frame"; | ||||
27 | | ||||
28 | images { | ||||
29 | image: "arrows.png" COMP; | ||||
30 | image: "background.jpg" COMP; | ||||
31 | } | ||||
32 | | ||||
33 | styles { | ||||
34 | style { | ||||
35 | name: "test_style"; | ||||
36 | base: "font=Sans font_size=20 align=justify color=#c6b19a"; | ||||
37 | tag: "br" "\n"; | ||||
38 | tag: "tab" "\t"; | ||||
39 | } | ||||
40 | } | ||||
41 | | ||||
42 | parts { | ||||
43 | | ||||
44 | part { | ||||
45 | name: "bg"; | ||||
46 | type: RECT; | ||||
47 | mouse_events: 0; | ||||
48 | description { | ||||
49 | state: "default" 0.0; | ||||
50 | min: 512 384; | ||||
51 | color: 153 134 117 255; | ||||
52 | } | ||||
53 | } | ||||
54 | | ||||
55 | part { | ||||
56 | name: "borders"; | ||||
57 | type: IMAGE; | ||||
58 | mouse_events: 0; | ||||
59 | description { | ||||
60 | state: "default" 0.0; | ||||
61 | min: 512 384; | ||||
62 | image.normal: "background.jpg"; | ||||
63 | visible: 0; | ||||
64 | } | ||||
65 | description { | ||||
66 | state: "visible" 0.0; | ||||
67 | inherit: "default" 0.0; | ||||
68 | visible: 1; | ||||
69 | } | ||||
70 | } | ||||
71 | | ||||
72 | part { | ||||
73 | name: "arrows"; | ||||
74 | type: IMAGE; | ||||
75 | mouse_events: 0; | ||||
76 | description { | ||||
77 | state: "default" 0.0; | ||||
78 | min: 326 241; | ||||
79 | max: 326 241; | ||||
80 | rel1.offset: -18 10; | ||||
81 | color: 255 255 255 0; | ||||
82 | image.normal: "arrows.png"; | ||||
83 | } | ||||
84 | description { | ||||
85 | state: "visible" 0.0; | ||||
86 | inherit: "default" 0.0; | ||||
87 | color: 255 255 255 255; | ||||
88 | } | ||||
89 | } | ||||
90 | | ||||
91 | part { | ||||
92 | name: "arrows_msg"; | ||||
93 | type: TEXT; | ||||
94 | mouse_events: 0; | ||||
95 | description { | ||||
96 | state: "default" 0.0; | ||||
97 | color: 0 0 0 0; | ||||
98 | rel1.relative: 0.08 0.96; | ||||
99 | rel2.relative: 0.92 1.0; | ||||
100 | text { | ||||
101 | font: "Sans"; | ||||
102 | size: 12; | ||||
103 | text: "Press the arrows on the keyboard to give " | ||||
104 | "impulse to the object."; | ||||
105 | } | ||||
106 | } | ||||
107 | description { | ||||
108 | state: "visible" 0.0; | ||||
109 | inherit: "default" 0.0; | ||||
110 | color: 95 56 19 255; | ||||
111 | } | ||||
112 | } | ||||
113 | | ||||
114 | part { | ||||
115 | name: "controls_msg"; | ||||
116 | type: TEXTBLOCK; | ||||
117 | mouse_events: 0; | ||||
118 | description { | ||||
119 | state: "default" 0.0; | ||||
120 | rel1.relative: 0.3 0.3; | ||||
121 | rel2.relative: 0.3 0.3; | ||||
122 | color: 0 0 0 0; | ||||
123 | text { | ||||
124 | style: "test_style"; | ||||
125 | min: 1 1; | ||||
126 | max: 1 1; | ||||
127 | text: "Impulse Controls:<br>" | ||||
128 | " X Axis <tab> H - L<br>" | ||||
129 | " Y Axis <tab> J - K<br>" | ||||
130 | " Z Axis <tab> F - G"; | ||||
131 | } | ||||
132 | } | ||||
133 | description { | ||||
134 | state: "msg1" 0.0; | ||||
135 | inherit: "default" 0.0; | ||||
136 | color: 95 56 19 255; | ||||
137 | } | ||||
138 | description { | ||||
139 | state: "msg2" 0.0; | ||||
140 | inherit: "msg1" 0.0; | ||||
141 | text.text: "Impulse Controls:<br>" | ||||
142 | " Pitch <tab> Y - O<br>" | ||||
143 | " Yaw <tab> U - I<br>" | ||||
144 | " Roll <tab> R - T"; | ||||
145 | } | ||||
146 | } | ||||
147 | | ||||
148 | part { | ||||
149 | name: "grab_msg"; | ||||
150 | type: TEXT; | ||||
151 | mouse_events: 0; | ||||
152 | description { | ||||
153 | state: "default" 0.0; | ||||
154 | color: 0 0 0 0; | ||||
155 | rel1.relative: 0.08 0.96; | ||||
156 | rel2.relative: 0.92 1.0; | ||||
157 | text { | ||||
158 | font: "Sans"; | ||||
159 | size: 12; | ||||
160 | text: "Drag a body to move it."; | ||||
161 | } | ||||
162 | } | ||||
163 | description { | ||||
164 | state: "visible" 0.0; | ||||
165 | inherit: "default" 0.0; | ||||
166 | color: 95 56 19 255; | ||||
167 | } | ||||
168 | } | ||||
169 | | ||||
170 | part { | ||||
171 | name: "light_msg"; | ||||
172 | type: TEXT; | ||||
173 | mouse_events: 0; | ||||
174 | description { | ||||
175 | state: "default" 0.0; | ||||
176 | color: 0 0 0 0; | ||||
177 | rel1.relative: 0.08 0.96; | ||||
178 | rel2.relative: 0.92 1.0; | ||||
179 | text { | ||||
180 | font: "Sans"; | ||||
181 | size: 12; | ||||
182 | text: "Press x to turn lights on/off."; | ||||
183 | } | ||||
184 | } | ||||
185 | description { | ||||
186 | state: "visible" 0.0; | ||||
187 | inherit: "default" 0.0; | ||||
188 | color: 95 56 19 255; | ||||
189 | } | ||||
190 | } | ||||
191 | | ||||
192 | part { | ||||
193 | name: "linear_vel"; | ||||
194 | type: TEXT; | ||||
195 | mouse_events: 0; | ||||
196 | description { | ||||
197 | state: "default" 0.0; | ||||
198 | color: 0 0 0 0; | ||||
199 | rel1.relative: 0.08 0.40; | ||||
200 | rel2.relative: 0.92 0.44; | ||||
201 | text { | ||||
202 | font: "Sans"; | ||||
203 | size: 12; | ||||
204 | } | ||||
205 | } | ||||
206 | description { | ||||
207 | state: "visible" 0.0; | ||||
208 | inherit: "default" 0.0; | ||||
209 | color: 198 177 153 255; | ||||
210 | } | ||||
211 | } | ||||
212 | | ||||
213 | part { | ||||
214 | name: "linear_acc"; | ||||
215 | type: TEXT; | ||||
216 | mouse_events: 0; | ||||
217 | description { | ||||
218 | state: "default" 0.0; | ||||
219 | color: 0 0 0 0; | ||||
220 | rel1.relative: 0.08 0.44; | ||||
221 | rel2.relative: 0.92 0.48; | ||||
222 | text { | ||||
223 | font: "Sans"; | ||||
224 | size: 12; | ||||
225 | } | ||||
226 | } | ||||
227 | description { | ||||
228 | state: "visible" 0.0; | ||||
229 | inherit: "default" 0.0; | ||||
230 | color: 198 177 153 255; | ||||
231 | } | ||||
232 | } | ||||
233 | | ||||
234 | part { | ||||
235 | name: "angular_vel"; | ||||
236 | type: TEXT; | ||||
237 | mouse_events: 0; | ||||
238 | description { | ||||
239 | state: "default" 0.0; | ||||
240 | color: 0 0 0 0; | ||||
241 | rel1.relative: 0.08 0.54; | ||||
242 | rel2.relative: 0.92 0.58; | ||||
243 | text { | ||||
244 | font: "Sans"; | ||||
245 | size: 12; | ||||
246 | } | ||||
247 | } | ||||
248 | description { | ||||
249 | state: "visible" 0.0; | ||||
250 | inherit: "default" 0.0; | ||||
251 | color: 198 177 153 255; | ||||
252 | } | ||||
253 | } | ||||
254 | | ||||
255 | part { | ||||
256 | name: "angular_acc"; | ||||
257 | type: TEXT; | ||||
258 | mouse_events: 0; | ||||
259 | description { | ||||
260 | state: "default" 0.0; | ||||
261 | color: 0 0 0 0; | ||||
262 | rel1.relative: 0.08 0.58; | ||||
263 | rel2.relative: 0.92 0.62; | ||||
264 | text { | ||||
265 | font: "Sans"; | ||||
266 | size: 12; | ||||
267 | } | ||||
268 | } | ||||
269 | description { | ||||
270 | state: "visible" 0.0; | ||||
271 | inherit: "default" 0.0; | ||||
272 | color: 198 177 153 255; | ||||
273 | } | ||||
274 | } | ||||
275 | | ||||
276 | part { | ||||
277 | name: "restart_button"; | ||||
278 | type: EXTERNAL; | ||||
279 | source: "elm/button"; | ||||
280 | mouse_events: 1; | ||||
281 | description { | ||||
282 | state: "default" 0.0; | ||||
283 | rel1.relative: 1 0.08; | ||||
284 | rel2.relative: 1 0.08; | ||||
285 | fixed: 1 1; | ||||
286 | align: 1 0.5; | ||||
287 | params { | ||||
288 | string: "style" "ephysics-test-restart"; | ||||
289 | } | ||||
290 | } | ||||
291 | } | ||||
292 | | ||||
293 | part { | ||||
294 | name: "extra_button"; | ||||
295 | type: SWALLOW; | ||||
296 | mouse_events: 1; | ||||
297 | description { | ||||
298 | state: "default" 0.0; | ||||
299 | rel1.relative: 0 0.08; | ||||
300 | rel2.relative: 0 0.08; | ||||
301 | fixed: 1 1; | ||||
302 | align: 0 0.5; | ||||
303 | } | ||||
304 | } | ||||
305 | | ||||
306 | part { | ||||
307 | name: "extra_input"; | ||||
308 | type: SWALLOW; | ||||
309 | mouse_events: 1; | ||||
310 | description { | ||||
311 | state: "default" 0.0; | ||||
312 | rel1.relative: 0.5 0.08; | ||||
313 | rel2.relative: 0.5 0.08; | ||||
314 | fixed: 1 1; | ||||
315 | align: 0.5 0.5; | ||||
316 | } | ||||
317 | } | ||||
318 | | ||||
319 | part { | ||||
320 | name: "loading_bar"; | ||||
321 | type: GROUP; | ||||
322 | source: "loading_bar"; | ||||
323 | mouse_events: 0; | ||||
324 | description { | ||||
325 | state: "default" 0.0; | ||||
326 | align: 0.5 1; | ||||
327 | visible: 0; | ||||
328 | rel2.offset: -1 -5; | ||||
329 | } | ||||
330 | description { | ||||
331 | state: "visible" 0.0; | ||||
332 | inherit: "default" 0.0; | ||||
333 | visible: 1; | ||||
334 | } | ||||
335 | } | ||||
336 | | ||||
337 | } | ||||
338 | | ||||
339 | programs { | ||||
340 | | ||||
341 | program { | ||||
342 | name: "restart_clicked"; | ||||
343 | source: "restart_button"; | ||||
344 | signal: "clicked"; | ||||
345 | action: SIGNAL_EMIT "restart" "test-theme"; | ||||
346 | } | ||||
347 | | ||||
348 | program { | ||||
349 | name: "arrows,show"; | ||||
350 | source: "ephysics_test"; | ||||
351 | signal: "arrows,show"; | ||||
352 | action: STATE_SET "visible" 0.0; | ||||
353 | target: "arrows"; | ||||
354 | target: "arrows_msg"; | ||||
355 | } | ||||
356 | | ||||
357 | program { | ||||
358 | name: "controls,show"; | ||||
359 | source: "ephysics_test"; | ||||
360 | signal: "controls,show"; | ||||
361 | action: STATE_SET "msg1" 0.0; | ||||
362 | target: "controls_msg"; | ||||
363 | after: "controls,show,2"; | ||||
364 | } | ||||
365 | | ||||
366 | program { | ||||
367 | name: "controls,show,2"; | ||||
368 | in: 4 0; | ||||
369 | action: STATE_SET "msg2" 0.0; | ||||
370 | target: "controls_msg"; | ||||
371 | after: "controls,show,3"; | ||||
372 | } | ||||
373 | | ||||
374 | program { | ||||
375 | name: "controls,show,3"; | ||||
376 | in: 4 0; | ||||
377 | action: STATE_SET "msg1" 0.0; | ||||
378 | target: "controls_msg"; | ||||
379 | after: "controls,show,2"; | ||||
380 | } | ||||
381 | | ||||
382 | program { | ||||
383 | name: "grab,show"; | ||||
384 | source: "ephysics_test"; | ||||
385 | signal: "grab,show"; | ||||
386 | action: STATE_SET "visible" 0.0; | ||||
387 | target: "arrows"; | ||||
388 | target: "grab_msg"; | ||||
389 | } | ||||
390 | | ||||
391 | program { | ||||
392 | name: "light,show"; | ||||
393 | source: "ephysics_test"; | ||||
394 | signal: "light,show"; | ||||
395 | action: STATE_SET "visible" 0.0; | ||||
396 | target: "light_msg"; | ||||
397 | } | ||||
398 | | ||||
399 | program { | ||||
400 | name: "borders,show"; | ||||
401 | source: "ephysics_test"; | ||||
402 | signal: "borders,show"; | ||||
403 | action: STATE_SET "visible" 0.0; | ||||
404 | target: "borders"; | ||||
405 | } | ||||
406 | | ||||
407 | program { | ||||
408 | name: "velocity,show"; | ||||
409 | source: "ephysics_test"; | ||||
410 | signal: "velocity,show"; | ||||
411 | action: STATE_SET "visible" 0.0; | ||||
412 | target: "linear_vel"; | ||||
413 | target: "linear_acc"; | ||||
414 | target: "angular_vel"; | ||||
415 | target: "angular_acc"; | ||||
416 | } | ||||
417 | | ||||
418 | program { | ||||
419 | name: "loading_bar,show"; | ||||
420 | source: "ephysics_test"; | ||||
421 | signal: "loading_bar,show"; | ||||
422 | action: STATE_SET "visible" 0.0; | ||||
423 | target: "loading_bar"; | ||||
424 | } | ||||
425 | | ||||
426 | } | ||||
427 | | ||||
428 | } |