Added background-zoom-fade edc
authorMinJeong Kim <minjjj.kim@samsung.com>
Thu, 27 Apr 2017 13:34:38 +0000 (22:34 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 18 May 2017 11:37:53 +0000 (20:37 +0900)
Change-Id: Ib9a8889b1db33a6c6bd0f05a6426a8696bb500d9
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
data/effect.edc
data/group/background-zoom-fade.edc [new file with mode: 0644]

index 235d0f78b2360ca4d3e27aa22281acfe09ecd542..f227fb089b336147bf8cc554113da3bffead0b5e 100644 (file)
@@ -27,5 +27,10 @@ collections {
    /* group "e/comp/effects/background-zoom"              */
    /*-----------------------------------------------------*/
    #include "group/background-zoom.edc"
+
+   /*-----------------------------------------------------*/
+   /* group "e/comp/effects/background-zoom-fade"         */
+   /*-----------------------------------------------------*/
+   #include "group/background-zoom-fade.edc"
 }
 
diff --git a/data/group/background-zoom-fade.edc b/data/group/background-zoom-fade.edc
new file mode 100644 (file)
index 0000000..fe04e47
--- /dev/null
@@ -0,0 +1,144 @@
+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";
+     }
+    }
+}