From 4c36ffcb267a8b30031c12e777b792ad6952c0b8 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 19 Oct 2004 16:25:51 +0000 Subject: [PATCH] Do fading for Contrib Worldmaps, as well. SVN-Revision: 2032 --- src/gameloop.cpp | 3 +-- src/title.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.11.0