discomfitor pushed a commit to branch master.

commit e54edab54ca87738aeb430acbcf80257c4fd003c
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu May 23 11:48:29 2013 +0100

    trivial new desk flip animation: BLEND
---
 data/themes/edc/comp.edc | 73 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/data/themes/edc/comp.edc b/data/themes/edc/comp.edc
index 05c6881..81f2a3d 100644
--- a/data/themes/edc/comp.edc
+++ b/data/themes/edc/comp.edc
@@ -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;

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to