From: Ingo Ruhnke Date: Mon, 5 May 2008 19:03:41 +0000 (+0000) Subject: Added experimental frame to the main menu X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3e4c1285ee74547ce0b970835b15453e4a4e4f7d;p=supertux.git Added experimental frame to the main menu SVN-Revision: 5419 --- diff --git a/data/images/engine/menu/frame.png b/data/images/engine/menu/frame.png new file mode 100644 index 000000000..9eede6f7c Binary files /dev/null and b/data/images/engine/menu/frame.png differ diff --git a/src/title.cpp b/src/title.cpp index b43e09c9a..612766380 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -373,6 +373,8 @@ TitleScreen::TitleScreen() player->set_speedlimit(230); //MAX_WALK_XM generate_main_menu(); + + frame = std::auto_ptr(new Surface("images/engine/menu/frame.png")); } void @@ -420,6 +422,9 @@ TitleScreen::draw(DrawingContext& context) Sector* sector = titlesession->get_current_sector(); sector->draw(context); + // FIXME: Add something to scale the frame to the resolution of the screen + context.draw_surface(frame.get(), Vector(0,0),LAYER_FOREGROUND1); + context.draw_text(white_small_text, "SuperTux " PACKAGE_VERSION "\n", Vector(5, SCREEN_HEIGHT - 50), ALIGN_LEFT, LAYER_FOREGROUND1); context.draw_text(white_small_text, diff --git a/src/title.hpp b/src/title.hpp index 75d34301b..25d68821c 100644 --- a/src/title.hpp +++ b/src/title.hpp @@ -72,6 +72,7 @@ private: std::vector installed_addons; /**< list of currently installed Add-ons */ World* current_world; + std::auto_ptr frame; std::auto_ptr controller; std::auto_ptr titlesession; };