--- /dev/null
+group { name: "e/comp/effects/background-zoom-fade";
+ script {
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_INT_SET) && (id == 0)) {
+ /*set state */
+ new st;
+ st = getarg(2);
+ if (st == 0)
+ {
+ set_state(PART:"e.swallow.content", "zoom-in", 0.0);
+ set_state(PART:"clipper", "zoom-in", 0.0);
+ }
+ else if (st == 1)
+ {
+ set_state(PART:"e.swallow.content", "zoom-out", 0.0);
+ set_state(PART:"clipper", "zoom-out", 0.0);
+ }
+ } else if ((type == MSG_INT_SET) && (id == 1))
+ {
+ }
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ rel1.relative: -1.0 -1.0;
+ rel1.offset: -9999 -9999;
+ rel2.relative: 2.0 2.0;
+ rel2.offset: 9999 9999;
+ visible: 1;
+ }
+ description { state: "zoom-in" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "zoom-in" 1.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "zoom-out" 0.0;
+ inherit: "default" 0.0;
+ color: 50 50 50 50;
+ }
+ description { state: "zoom-out" 1.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "shower";
+ type: SPACER;
+ description { state: "default" 0.0;
+ rel1.relative: 0 0;
+ rel2.relative: 1 1;
+ }
+ }
+ part { name: "e.swallow.content"; type: SWALLOW;
+ type: SWALLOW;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1.to: "shower";
+ rel2.to: "shower";
+ map.on : 0;
+ }
+ description { state: "zoom-in" 0.0;
+ rel1.to: "shower";
+ rel2.to: "shower";
+ map {
+ on: 1;
+ smooth: 1;
+ zoom.x: 1;
+ zoom.y: 1;
+ }
+ }
+ description { state: "zoom-in" 1.0;
+ rel1.to: "shower";
+ rel2.to: "shower";
+ map {
+ on: 1;
+ smooth: 1;
+ zoom.x: 1.7;
+ zoom.y: 1.7;
+ }
+ }
+ description { state: "zoom-out" 0.0;
+ rel1.to: "shower";
+ rel2.to: "shower";
+ map {
+ on: 1;
+ smooth: 1;
+ zoom.x: 1.7;
+ zoom.y: 1.7;
+ }
+ }
+ description { state: "zoom-out" 1.0;
+ rel1.to: "shower";
+ rel2.to: "shower";
+ map {
+ on: 1;
+ smooth: 1;
+ zoom.x: 1;
+ zoom.y: 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "zoom-in1";
+ signal: "e,action,go";
+ source: "e";
+ filter: "e.swallow.content" "zoom-in";
+ action: STATE_SET "zoom-in" 1.0;
+ transition: DECEL_FAC 0.11 0.8;
+ target: "clipper";
+ target: "e.swallow.content";
+ after: "zoom-in2";
+ }
+ program { name: "zoom-in2";
+ action: STATE_SET "default" 0.0;
+ target: "e.swallow.content";
+ after: "done";
+ }
+ program { name: "zoom-out1";
+ signal: "e,action,go";
+ source: "e";
+ filter: "e.swallow.content" "zoom-out";
+ action: STATE_SET "zoom-out" 1.0;
+ transition: ACCEL_FAC 0.21 1.5;
+ target: "clipper";
+ target: "e.swallow.content";
+ after: "zoom-out2";
+ }
+ program { name: "zoom-out2";
+ action: STATE_SET "default" 0.0;
+ target: "e.swallow.content";
+ after: "done";
+ }
+ program { name: "done";
+ action: SIGNAL_EMIT "e,action,done" "e";
+ }
+ }
+}