trivial new desk flip animation: BLEND
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Thu, 23 May 2013 10:48:29 +0000 (11:48 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Thu, 23 May 2013 12:16:05 +0000 (13:16 +0100)
data/themes/edc/comp.edc

index 05c6881..81f2a3d 100644 (file)
@@ -553,6 +553,79 @@ group { name: "e/comp/effects/auto/zoom";
    }
 }
 
+group { name: "e/comp/effects/auto/blend";
+   //data.item: "noclip" "1"; //setting this prevents object from being clipped to its zone during effect
+   script {
+      public message(Msg_Type:type, id, ...) {
+         if ((type == MSG_INT_SET) && (id == 0)) {
+            /* set state */
+            new st;
+
+            st = getarg(2);
+            if (st == 1) {
+              /* starting from hidden */
+              set_state(PART:"clip", "hidden", 0.0);
+            } else {
+              set_state(PART:"clip", "default", 0.0);
+            }
+         }
+      }
+   }
+   parts {
+      part { name: "clip"; type: RECT; mouse_events: 0;
+         description { state: "default";
+            rel1.to: "e.swallow.content";
+            rel1.offset: -20 -20;
+            rel2.to: "e.swallow.content";
+            rel2.offset: 20 20;
+            color: 255 255 255 255;
+         }
+         description { state: "hidden";
+            color: 255 255 255 0;
+         }
+      }
+      part { name: "e.swallow.content"; type: SWALLOW;
+        clip_to: "clip";
+        description { state: "default" 0.0;
+        }
+      }
+   }
+   programs {
+      program {
+         name: "show";
+         signal: "e,action,go";
+         source: "e";
+         filter: "clip" "default";
+         action: STATE_SET "hidden" 0.0;
+         transition: LINEAR 0.4 CURRENT;
+         target: "clip";
+         after: "done";
+      }
+      program {
+         name: "hide";
+         signal: "e,action,go";
+         source: "e";
+         filter: "clip" "hidden";
+         action: STATE_SET "default" 0.0;
+         transition: LINEAR 0.4 CURRENT;
+         target: "clip";
+         after: "done";
+      }
+      program {
+         name: "stop";
+         signal: "e,action,stop";
+         source: "e";
+         action: ACTION_STOP;
+         target: "show";
+         target: "hide";
+      }
+      program {
+         name: "done";
+         action: SIGNAL_EMIT "e,action,done" "e";
+      }
+   }
+}
+
 group { name: "e/comp/border/default";
    images.image: "win_shadow.png" COMP;
    images.image: "win_glow.png" COMP;