From e54edab54ca87738aeb430acbcf80257c4fd003c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 23 May 2013 11:48:29 +0100 Subject: [PATCH] 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 05c6881af..81f2a3dcd 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;