[ease] Started working on "Open Door" transition.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] Started working on "Open Door" transition.
- Date: Thu, 20 May 2010 07:48:08 +0000 (UTC)
commit c39b207b7b98d9ece807b9396cf5165aea39b1bb
Author: Nate Stedman <natesm gmail com>
Date: Thu May 20 03:03:47 2010 -0400
Started working on "Open Door" transition.
src/libease/SlideActor.vala | 11 +++++++++++
src/libease/Transitions.vala | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libease/SlideActor.vala b/src/libease/SlideActor.vala
index 2a7c40b..60e0361 100644
--- a/src/libease/SlideActor.vala
+++ b/src/libease/SlideActor.vala
@@ -59,6 +59,7 @@ public class Ease.SlideActor : Clutter.Group
public const float FLIP_DEPTH = -400;
public const float ZOOM_OUT_SCALE = 0.75f;
+ private const float OPEN_DEPTH = -2000;
public SlideActor.from_slide(Document document, Slide s, bool clip,
ActorContext ctx)
@@ -270,6 +271,16 @@ public class Ease.SlideActor : Clutter.Group
xpos, ypos, 0);
});
break;
+
+ case "Open Door":
+ // zoom the new slide in
+ new_slide.depth = OPEN_DEPTH;
+ new_slide.animate(Clutter.AnimationMode.EASE_OUT_SINE,
+ length, "depth", 0);
+
+ animate(Clutter.AnimationMode.LINEAR, length / 2, "opacity", 0);
+
+ break;
case "Flip":
new_slide.opacity = 0;
diff --git a/src/libease/Transitions.vala b/src/libease/Transitions.vala
index 481b87b..7e0dfa5 100644
--- a/src/libease/Transitions.vala
+++ b/src/libease/Transitions.vala
@@ -43,6 +43,7 @@ public static class Ease.Transitions : GLib.Object
add_transition("Flip", { "Top to Bottom", "Bottom to Top", "Left to Right", "Right to Left" }, 4);
add_transition("Revolving Door", { "Top", "Bottom", "Left", "Right" }, 4);
add_transition("Fall", {}, 0);
+ add_transition("Open Door", {}, 0);
add_transition("Zoom", { "Center", "Top Left", "Top Right", "Bottom Left", "Bottom Right" }, 5);
add_transition("Panel", { "Up", "Down", "Left", "Right" }, 4);
add_transition("Spin Contents", { "Left", "Right" }, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]