[Super-tux-commit] supertux/src title.cpp,1.125,1.126 gameloop.cpp,1.189,1.190
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-10-19 16:26:04
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19922/src Modified Files: title.cpp gameloop.cpp Log Message: Do fading for Contrib Worldmaps, as well. Index: title.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/title.cpp,v retrieving revision 1.125 retrieving revision 1.126 diff -u -d -r1.125 -r1.126 --- title.cpp 9 Oct 2004 22:54:58 -0000 1.125 +++ title.cpp 19 Oct 2004 16:25:50 -0000 1.126 @@ -161,6 +161,13 @@ 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 Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.189 retrieving revision 1.190 diff -u -d -r1.189 -r1.190 --- gameloop.cpp 7 Oct 2004 17:50:21 -0000 1.189 +++ gameloop.cpp 19 Oct 2004 16:25:51 -0000 1.190 @@ -970,12 +970,11 @@ 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); |