[gnome-games/gnibbles-clutter] Small fade-out effect on splash screen when the game begin



commit 818b7f483eda6996e9fae14a65230ea5a3da88b2
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Wed Jul 15 18:27:20 2009 -0400

    Small fade-out effect on splash screen when the game begin

 gnibbles/main.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gnibbles/main.c b/gnibbles/main.c
index 8ba26df..3230684 100644
--- a/gnibbles/main.c
+++ b/gnibbles/main.c
@@ -904,12 +904,19 @@ render_logo (void)
   clutter_container_add_actor (CLUTTER_CONTAINER (stage), 
                          CLUTTER_ACTOR (logo));
 }
+static void
+on_hide_logo_completed (ClutterAnimation *animation, ClutterActor *actor)
+{
+  clutter_actor_hide (actor);
+}
 
 static void
 hide_logo (void)
 {
-  clutter_actor_hide (logo);
-  //clutter_actor_queue_redraw (CLUTTER_ACTOR (logo));
+  clutter_actor_animate (logo, CLUTTER_EASE_IN_QUAD, 100,
+                         "opacity", 0,
+                         "signal::completed", on_hide_logo_completed, logo,
+                         NULL);
 }
 
 int



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]