summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-06-10 05:46:06 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-06-10 05:46:06 +0100
commit051baac680334f2185fb9bd682e25af7dde6a9fe (patch)
tree2dbb52ea94ceb956d93e3993e95562b7a99e14b1 /data
parent76090faf33d759b75d590a3cd7efdf86a7935d0d (diff)
new comp effect: grow
Diffstat (limited to 'data')
-rw-r--r--data/themes/edc/comp_effects.edc110
1 files changed, 110 insertions, 0 deletions
diff --git a/data/themes/edc/comp_effects.edc b/data/themes/edc/comp_effects.edc
index debf5746a..30eca5cf4 100644
--- a/data/themes/edc/comp_effects.edc
+++ b/data/themes/edc/comp_effects.edc
@@ -383,3 +383,113 @@ group { name: "e/comp/effects/auto/blend";
383 } 383 }
384 } 384 }
385} 385}
386
387group { name: "e/comp/effects/auto/grow";
388 inherit: "e/comp/effects/auto/pane";
389 //data.item: "noclip" "1"; //setting this prevents object from being clipped to its zone during effect
390 script {
391 public message(Msg_Type:type, id, ...) {
392 if ((type == MSG_INT_SET) && (id == 0)) {
393 /* set state */
394 new st;
395
396 st = getarg(2);
397 if (st == 1)
398 set_state(PART:"mover", "custom", 0.0);
399 else
400 set_state(PART:"mover", "default", 0.0);
401 } else if ((type == MSG_INT_SET) && (id == 1)) {
402 /* border geom[4] / screen size[2] / desk change direction[2] */
403 new dx, dy;
404 new Float:r1x = 0.0, Float:r1y = 0.0, Float:r2x = 1.0, Float:r2y = 1.0;
405
406 dx = getarg(8);
407 dy = getarg(9);
408
409 custom_state(PART:"mover", "default", 0.0);
410 if (dx == 1) r1x = 1.0;
411 else if (dx == -1) r2x = 0.0;
412 if (dy == 1) r1y = 1.0;
413 else if (dy == -1) r2y = 0.0;
414 set_state_val(PART:"mover", STATE_REL1, r1x, r1y);
415 set_state_val(PART:"mover", STATE_REL2, r2x, r2y);
416 }
417 }
418 }
419}
420
421#if 0 //this is weirdly broken with proxy visibility somehow...
422group { name: "e/comp/effects/auto/rotate";
423 inherit: "e/comp/effects/auto/pane";
424 script {
425 public message(Msg_Type:type, id, ...) {
426 if ((type == MSG_INT_SET) && (id == 0)) {
427 /* set state */
428 new st;
429
430 st = getarg(2);
431
432 if (st == 1) {
433 set_state(PART:"mover", "custom", 0.0);
434 set_state(PART:"proxy", "hidden", 0.0);
435 } else {
436 set_state(PART:"mover", "default", 0.0);
437 set_state(PART:"proxy", "default", 0.0);
438 }
439 }
440#if 0
441 else if ((type == MSG_INT_SET) && (id == 1)) {
442 /* desk change direction */
443 new Float:mx, Float:my;
444 mx = get_float(getarg(8) * 180);
445 my = get_float(getarg(9) * 180);
446 custom_state(PART:"proxy", "hidden", 0.0);
447 set_state_val(PART:"proxy", STATE_MAP_ROT_Y, mx);
448 set_state_val(PART:"proxy", STATE_MAP_ROT_X, my);
449 }
450#endif
451 }
452 }
453 parts {
454 part { name: "proxy"; type: PROXY; mouse_events: 0;
455 insert_after: "e.swallow.content";
456 description { state: "default";
457 source: "e.swallow.content";
458 map {
459 on: 1;
460 perspective_on: 1;
461 perspective: "e.swallow.content";
462 smooth: 1;
463 rotation.y: 0;
464 rotation.x: 0;
465 }
466 }
467 description { state: "hidden" 0.0;
468 inherit: "default";
469 map.rotation.y: -180;
470 map.rotation.x: -180;
471 proxy.source_visible: 0;
472 map.backface_cull: 1;
473 }
474 }
475 }
476 programs {
477 program {
478 name: "show2";
479 signal: "e,action,go";
480 source: "e";
481 action: STATE_SET "hidden" 0.0;
482 transition: DECELERATE 0.4 CURRENT;
483 target: "proxy";
484 }
485 program {
486 name: "hide2";
487 signal: "e,action,go";
488 source: "e";
489 action: STATE_SET "default" 0.0;
490 transition: DECELERATE 0.4 CURRENT;
491 target: "proxy";
492 }
493 }
494}
495#endif