discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b974ad22b4e63d043db6089889640361cbf77aae

commit b974ad22b4e63d043db6089889640361cbf77aae
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jun 11 11:39:26 2015 -0400

    comp effects: add vertical visibility effect
---
 data/themes/edc/comp_effects.edc | 58 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/data/themes/edc/comp_effects.edc b/data/themes/edc/comp_effects.edc
index 38c6e76..ccc9dce 100644
--- a/data/themes/edc/comp_effects.edc
+++ b/data/themes/edc/comp_effects.edc
@@ -421,6 +421,64 @@ group { name: "e/comp/effects/auto/grow";
    }
 }
 
+group { name: "e/comp/effects/visibility/vertical";
+   script {
+      public message(Msg_Type:type, id, ...) {
+         if ((type == MSG_INT_SET) && (id == 0)) {
+            /* set state */
+            new st;
+
+            st = getarg(2);
+            if (st == 1)
+              set_state(PART:"clip", "hid", 0.0);
+            else
+              set_state(PART:"clip", "default", 0.0);
+         }
+      }
+   }
+   parts {
+      rect { "clip";
+        desc {}
+        desc { "hid"; rel2.relative: 1 0; }
+      }
+      swallow { "e.swallow.content"; clip: "clip"; }
+   }
+   programs {
+      program {
+         name: "show";
+         signal: "e,action,go";
+         source: "e";
+         filter: "clip" "default";
+         action: STATE_SET "hid" 0.0;
+         transition: DECELERATE COMP_EFFECT_DURATION CURRENT;
+         target: "clip";
+         after: "done";
+      }
+      program {
+         name: "hide";
+         signal: "e,action,go";
+         source: "e";
+         filter: "clip" "hid";
+         action: STATE_SET "default" 0.0;
+         transition: DECELERATE COMP_EFFECT_DURATION 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/effects/iconify/default";
    alias: "e/comp/effects/iconify/ibar";
    alias: "e/comp/effects/iconify/ibox";

-- 


Reply via email to