trivial new desk flip animation: BLEND

This commit is contained in:
Mike Blumenkrantz 2013-05-23 11:48:29 +01:00
parent 2ce4e8190c
commit e54edab54c
1 changed files with 73 additions and 0 deletions

View 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;