summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2010-11-16 18:11:37 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2010-11-16 18:11:37 +0000
commit3a0fd6dc0b8ffbf0ca79941b995c7107a3a3bb9a (patch)
tree1a39f601b7bd77891a877b1fc315fe140ffd74d6
parent06eb87ff5c6ac6824e832507129ebe94b03295d7 (diff)
detour-elm : improve the scroller
SVN revision: 54597
-rw-r--r--images.edc6
-rw-r--r--main.edc101
2 files changed, 72 insertions, 35 deletions
diff --git a/images.edc b/images.edc
index 8c1af14..a7cb3df 100644
--- a/images.edc
+++ b/images.edc
@@ -39,7 +39,13 @@ image: "images/gadman_im6.png" COMP; /* right arrow */
39 39
40//~ scrollframe 40//~ scrollframe
41image: "images/scrollframe_im1.png" COMP; /* inset */ 41image: "images/scrollframe_im1.png" COMP; /* inset */
42image: "images/scrollframe-bar_im0.png" COMP; /* vertical bar */
43image: "images/scrollframe-bar_im1.png" COMP; /* vertical bar */
42image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */ 44image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */
45image: "images/scrollframe-bar_im3.png" COMP; /* vertical bar */
46
47image: "images/sb_runnerh.png" COMP;
48image: "images/sb_runnerv.png" COMP;
43 49
44//~ check 50//~ check
45image: "images/check_bt0.png" COMP; 51image: "images/check_bt0.png" COMP;
diff --git a/main.edc b/main.edc
index d9a5d1e..cba1ae3 100644
--- a/main.edc
+++ b/main.edc
@@ -6,7 +6,8 @@ images {
6 6
7collections { 7collections {
8 /////////////////////////////////////////////////////////////////////////////// 8 ///////////////////////////////////////////////////////////////////////////////
9 group { name: "elm/bg/base/default"; 9 group {
10 name: "elm/bg/base/default";
10 parts { 11 parts {
11 part { name: "base"; 12 part { name: "base";
12 mouse_events: 0; 13 mouse_events: 0;
@@ -43,7 +44,8 @@ collections {
43 } 44 }
44 } 45 }
45 /////////////////////////////////////////////////////////////////////////////// 46 ///////////////////////////////////////////////////////////////////////////////
46 group { name: "elm/scroller/base/default"; 47 group {
48 name: "elm/scroller/base/default";
47 script { 49 script {
48 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; 50 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
49 public timer0(val) { 51 public timer0(val) {
@@ -68,12 +70,6 @@ collections {
68 return 0; 70 return 0;
69 } 71 }
70 } 72 }
71 images {
72 image: "scrollframe_im1.png" COMP;
73 image: "scrollframe-bar_im2.png" COMP;
74 image: "sb_runnerh.png" COMP;
75 image: "sb_runnerv.png" COMP;
76 }
77 parts { 73 parts {
78 part { name: "bg"; 74 part { name: "bg";
79 type: RECT; 75 type: RECT;
@@ -105,7 +101,7 @@ collections {
105 rel1.offset: 0 0; 101 rel1.offset: 0 0;
106 rel2.offset: -1 -1; 102 rel2.offset: -1 -1;
107 image { 103 image {
108 normal: "scrollframe_im1.png"; 104 normal: "images/scrollframe_im1.png";
109 border: 7 7 7 7; 105 border: 7 7 7 7;
110 middle: 0; 106 middle: 0;
111 } 107 }
@@ -161,7 +157,7 @@ collections {
161 rel1.to: "sb_vbar"; 157 rel1.to: "sb_vbar";
162 rel2.to: "sb_vbar"; 158 rel2.to: "sb_vbar";
163 image { 159 image {
164 normal: "sb_runnerv.png"; 160 normal: "images/sb_runnerv.png";
165 border: 0 0 4 4; 161 border: 0 0 4 4;
166 } 162 }
167 fill.smooth: 0; 163 fill.smooth: 0;
@@ -177,7 +173,7 @@ collections {
177 } 173 }
178 description { state: "default" 0.0; 174 description { state: "default" 0.0;
179 fixed: 1 1; 175 fixed: 1 1;
180 min: 12 12; 176 min: 13 13;
181 rel1 { 177 rel1 {
182 relative: 0.5 0.5; 178 relative: 0.5 0.5;
183 offset: 0 0; 179 offset: 0 0;
@@ -189,12 +185,30 @@ collections {
189 to: "sb_vbar"; 185 to: "sb_vbar";
190 } 186 }
191 image { 187 image {
192 normal: "scrollframe-bar_im2.png"; 188 normal: "images/scrollframe-bar_im2.png";
193 border: 6 6 6 6; 189 border: 6 6 6 6;
194 } 190 }
195 image.middle: SOLID; 191 image.middle: SOLID;
196 } 192 }
197 } 193 }
194 part { name: "vbar_center";
195 clip_to: "sb_vbar_clip";
196 mouse_events: 0;
197 description { state: "default" 0.0;
198 min: 7 11;
199 max: 7 11;
200 rel1.to: "elm.dragable.vbar";
201 rel2.to: "elm.dragable.vbar";
202 rel1.relative: 0.5 0.5;
203 rel2.relative: 0.5 0.5;
204 align: 0.5 0.5;
205 image {
206 normal: "images/scrollframe-bar_im3.png";
207 border: 0 0 4 4;
208 }
209 fill.smooth: 0;
210 }
211 }
198 212
199 part { name: "sb_hbar_clip_master"; 213 part { name: "sb_hbar_clip_master";
200 type: RECT; 214 type: RECT;
@@ -245,7 +259,7 @@ collections {
245 rel1.to: "sb_hbar"; 259 rel1.to: "sb_hbar";
246 rel2.to: "sb_hbar"; 260 rel2.to: "sb_hbar";
247 image { 261 image {
248 normal: "sb_runnerh.png"; 262 normal: "images/sb_runnerh.png";
249 border: 4 4 0 0; 263 border: 4 4 0 0;
250 } 264 }
251 fill.smooth: 0; 265 fill.smooth: 0;
@@ -261,7 +275,7 @@ collections {
261 } 275 }
262 description { state: "default" 0.0; 276 description { state: "default" 0.0;
263 fixed: 1 1; 277 fixed: 1 1;
264 min: 17 17; 278 min: 13 13;
265 rel1 { 279 rel1 {
266 relative: 0.5 0.5; 280 relative: 0.5 0.5;
267 offset: 0 0; 281 offset: 0 0;
@@ -273,12 +287,30 @@ collections {
273 to: "sb_hbar"; 287 to: "sb_hbar";
274 } 288 }
275 image { 289 image {
276 normal: "scrollframe-bar_im2.png"; 290 normal: "images/scrollframe-bar_im0.png";
277 border: 6 6 6 6; 291 border: 6 6 6 6;
278 } 292 }
279 image.middle: SOLID; 293 image.middle: SOLID;
280 } 294 }
281 } 295 }
296 part { name: "hbar_center";
297 clip_to: "sb_hbar_clip";
298 mouse_events: 0;
299 description { state: "default" 0.0;
300 min: 11 7;
301 max: 11 7;
302 rel1.to: "elm.dragable.hbar";
303 rel2.to: "elm.dragable.hbar";
304 rel1.relative: 0.5 0.5;
305 rel2.relative: 0.5 0.5;
306 align: 0.5 0.5;
307 image {
308 normal: "images/scrollframe-bar_im1.png";
309 border: 0 0 4 4;
310 }
311 fill.smooth: 0;
312 }
313 }
282 } 314 }
283 programs { 315 programs {
284 program { name: "load"; 316 program { name: "load";
@@ -433,9 +465,10 @@ collections {
433 } 465 }
434 } 466 }
435 } 467 }
436 } 468 }
437 /////////////////////////////////////////////////////////////////////////////// 469 ///////////////////////////////////////////////////////////////////////////////
438 group { name: "elm/label/base/default"; 470 group {
471 name: "elm/label/base/default";
439 styles 472 styles
440 { 473 {
441 style { name: "textblock_style"; 474 style { name: "textblock_style";
@@ -461,7 +494,8 @@ collections {
461 } 494 }
462 } 495 }
463 } 496 }
464 group { name: "elm/label/base_wrap/default"; 497 group {
498 name: "elm/label/base_wrap/default";
465 parts { 499 parts {
466 part { name: "elm.text"; 500 part { name: "elm.text";
467 type: TEXTBLOCK; 501 type: TEXTBLOCK;
@@ -4295,7 +4329,7 @@ collections {
4295 repeat_events: 1; 4329 repeat_events: 1;
4296 description { 4330 description {
4297 state: "default" 0.0; 4331 state: "default" 0.0;
4298 color: 255 255 255 255; 4332 color: 255 255 255 0;
4299 rel1.offset: 10 10; 4333 rel1.offset: 10 10;
4300 rel2.offset: -10 -10; 4334 rel2.offset: -10 -10;
4301 rel1.relative: 1.0 0.0; 4335 rel1.relative: 1.0 0.0;
@@ -4304,7 +4338,7 @@ collections {
4304 description { 4338 description {
4305 state: "visible" 0.0; 4339 state: "visible" 0.0;
4306 inherit: "default" 0.0; 4340 inherit: "default" 0.0;
4307 color: 255 255 255 64; 4341 color: 255 255 255 255;
4308 rel1.relative: 0.0 0.0; 4342 rel1.relative: 0.0 0.0;
4309 rel2.relative: 1.0 1.0; 4343 rel2.relative: 1.0 1.0;
4310 } 4344 }
@@ -4326,7 +4360,7 @@ collections {
4326 repeat_events: 1; 4360 repeat_events: 1;
4327 description { 4361 description {
4328 state: "default" 0.0; 4362 state: "default" 0.0;
4329 color: 255 255 255 255; 4363 color: 255 255 255 0;
4330 rel1.offset: 10 10; 4364 rel1.offset: 10 10;
4331 rel2.offset: -10 -10; 4365 rel2.offset: -10 -10;
4332 rel1.relative: 0.0 -1.0; 4366 rel1.relative: 0.0 -1.0;
@@ -4335,7 +4369,7 @@ collections {
4335 description { 4369 description {
4336 state: "visible" 0.0; 4370 state: "visible" 0.0;
4337 inherit: "default" 0.0; 4371 inherit: "default" 0.0;
4338 color: 255 255 255 64; 4372 color: 255 255 255 255;
4339 rel1.relative: 0.0 0.0; 4373 rel1.relative: 0.0 0.0;
4340 rel2.relative: 1.0 1.0; 4374 rel2.relative: 1.0 1.0;
4341 } 4375 }
@@ -4357,7 +4391,7 @@ collections {
4357 repeat_events: 1; 4391 repeat_events: 1;
4358 description { 4392 description {
4359 state: "default" 0.0; 4393 state: "default" 0.0;
4360 color: 255 255 255 255; 4394 color: 255 255 255 0;
4361 rel1.offset: 10 10; 4395 rel1.offset: 10 10;
4362 rel2.offset: -10 -10; 4396 rel2.offset: -10 -10;
4363 rel1.relative: 0.0 -1.0; 4397 rel1.relative: 0.0 -1.0;
@@ -4366,7 +4400,7 @@ collections {
4366 description { 4400 description {
4367 state: "visible" 0.0; 4401 state: "visible" 0.0;
4368 inherit: "default" 0.0; 4402 inherit: "default" 0.0;
4369 color: 255 255 255 64; 4403 color: 255 255 255 255;
4370 rel1.relative: 0.0 0.0; 4404 rel1.relative: 0.0 0.0;
4371 rel2.relative: 1.0 1.0; 4405 rel2.relative: 1.0 1.0;
4372 } 4406 }
@@ -4388,7 +4422,7 @@ collections {
4388 repeat_events: 1; 4422 repeat_events: 1;
4389 description { 4423 description {
4390 state: "default" 0.0; 4424 state: "default" 0.0;
4391 color: 255 255 255 255; 4425 color: 255 255 255 0;
4392 rel1.offset: 10 10; 4426 rel1.offset: 10 10;
4393 rel2.offset: -10 -10; 4427 rel2.offset: -10 -10;
4394 rel1.relative: 0.0 1.0; 4428 rel1.relative: 0.0 1.0;
@@ -4397,7 +4431,7 @@ collections {
4397 description { 4431 description {
4398 state: "visible" 0.0; 4432 state: "visible" 0.0;
4399 inherit: "default" 0.0; 4433 inherit: "default" 0.0;
4400 color: 255 255 255 64; 4434 color: 255 255 255 255;
4401 rel1.relative: 0.0 0.0; 4435 rel1.relative: 0.0 0.0;
4402 rel2.relative: 1.0 1.0; 4436 rel2.relative: 1.0 1.0;
4403 } 4437 }
@@ -4419,7 +4453,7 @@ collections {
4419 repeat_events: 1; 4453 repeat_events: 1;
4420 description { 4454 description {
4421 state: "default" 0.0; 4455 state: "default" 0.0;
4422 color: 255 255 255 255; 4456 color: 255 255 255 0;
4423 rel1.offset: 10 10; 4457 rel1.offset: 10 10;
4424 rel2.offset: -10 -10; 4458 rel2.offset: -10 -10;
4425 rel1.relative: 0.0 1.0; 4459 rel1.relative: 0.0 1.0;
@@ -4428,7 +4462,7 @@ collections {
4428 description { 4462 description {
4429 state: "visible" 0.0; 4463 state: "visible" 0.0;
4430 inherit: "default" 0.0; 4464 inherit: "default" 0.0;
4431 color: 255 255 255 64; 4465 color: 255 255 255 255;
4432 rel1.relative: 0.0 0.0; 4466 rel1.relative: 0.0 0.0;
4433 rel2.relative: 1.0 1.0; 4467 rel2.relative: 1.0 1.0;
4434 } 4468 }
@@ -4440,10 +4474,8 @@ collections {
4440 } 4474 }
4441 } 4475 }
4442 /////////////////////////////////////////////////////////////////////////////// 4476 ///////////////////////////////////////////////////////////////////////////////
4443 4477 group {
4444 4478 name: "elm/check/base/default";
4445 ///////////////////////////////////////////////////////////////////////////////
4446 group { name: "elm/check/base/default";
4447 parts { 4479 parts {
4448 part { name: "bg_check"; 4480 part { name: "bg_check";
4449 mouse_events: 0; 4481 mouse_events: 0;
@@ -4723,10 +4755,9 @@ collections {
4723 } 4755 }
4724 } 4756 }
4725 } 4757 }
4726
4727
4728 /////////////////////////////////////////////////////////////////////////////// 4758 ///////////////////////////////////////////////////////////////////////////////
4729 group { name: "elm/radio/base/default"; 4759 group {
4760 name: "elm/radio/base/default";
4730 parts { 4761 parts {
4731 part { name: "bg_radio"; 4762 part { name: "bg_radio";
4732 mouse_events: 0; 4763 mouse_events: 0;