X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameloop.cpp;h=790b8afdb0d9a510addb5abc6fe53e1a44928ffe;hb=ff8e7dfe9011afc8bdd4ca29b6a6306737d75689;hp=0fc9978e429d9b431923f9479f9003af5f738dfe;hpb=1272f522de1d191aabb509a0bc93861f75fbd5b6;p=supertux.git diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 0fc9978e4..790b8afdb 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -20,16 +20,16 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include + +#include "SDL.h" #ifndef WIN32 #include @@ -721,14 +721,11 @@ GameSession::drawstatus(DrawingContext& context) sprintf(str, " %d", player_status.distros); context.draw_text(white_text, _("COINS"), - Vector(screen->w - white_text->get_text_width(_("COINS"))-white_text->get_text_width(str), 0), + Vector(screen->w - white_text->get_text_width(_("COINS"))-white_text->get_text_width(" 99"), 0), LAYER_FOREGROUND1); context.draw_text(gold_text, str, Vector(screen->w - gold_text->get_text_width(" 99"), 0),LAYER_FOREGROUND1); - context.draw_text(white_text, _("LIVES"), - Vector(screen->w - white_text->get_text_width(_("LIVES"))-white_text->get_text_width(str), 20), - LAYER_FOREGROUND1); if (player_status.lives >= 5) { sprintf(str, "%dx", player_status.lives); @@ -745,6 +742,18 @@ GameSession::drawstatus(DrawingContext& context) LAYER_FOREGROUND1); } + context.draw_text(white_text, _("LIVES"), + Vector(screen->w - white_text->get_text_width(_("LIVES")) - white_text->get_text_width(" 99"), 20), + LAYER_FOREGROUND1); + + if(game_pause) + { + sprintf(str, _("Playing: %s"), level->name.c_str()); + + context.draw_text(white_text, str, Vector(0,20), + LAYER_FOREGROUND1); + } + if(show_fps) { sprintf(str, "%2.1f", fps_fps);