From: Ricardo Cruz Date: Tue, 19 Oct 2004 16:25:51 +0000 (+0000) Subject: Do fading for Contrib Worldmaps, as well. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4c36ffcb267a8b30031c12e777b792ad6952c0b8;p=supertux.git Do fading for Contrib Worldmaps, as well. SVN-Revision: 2032 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 6fa78367c..e339cbb8a 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -970,12 +970,11 @@ bool process_load_game_menu() if (access(slotfile.c_str(), F_OK) != 0) { + shrink_fade(Vector(screen->w/2,screen->h/2), 600); draw_intro(); } - // shrink_fade(Point((screen->w/2),(screen->h/2)), 1000); fadeout(256); - DrawingContext context; context.draw_text(white_text, "Loading...", Vector(screen->w/2, screen->h/2), CENTER_ALLIGN, LAYER_FOREGROUND1); diff --git a/src/title.cpp b/src/title.cpp index fe63a48f0..a821de88c 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -161,6 +161,13 @@ void check_levels_contrib_menu() std::string map_filename = *it; + // some fading + fadeout(256); + DrawingContext context; + context.draw_text(white_text, "Loading...", + Vector(screen->w/2, screen->h/2), CENTER_ALLIGN, LAYER_FOREGROUND1); + context.do_drawing(); + worldmap.set_map_filename(map_filename); // hack to erase the extension