pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2745 - branches/pingus_sdl/src/worldmap


From: nehalmistry
Subject: [Pingus-CVS] r2745 - branches/pingus_sdl/src/worldmap
Date: Tue, 17 Jul 2007 09:15:07 +0200

Author: nehalmistry
Date: 2007-07-17 09:15:02 +0200 (Tue, 17 Jul 2007)
New Revision: 2745

Modified:
   branches/pingus_sdl/src/worldmap/manager.cpp
Log:
enable show story button on the worldmap and cleanup text offsets.

Modified: branches/pingus_sdl/src/worldmap/manager.cpp
===================================================================
--- branches/pingus_sdl/src/worldmap/manager.cpp        2007-07-17 07:04:43 UTC 
(rev 2744)
+++ branches/pingus_sdl/src/worldmap/manager.cpp        2007-07-17 07:15:02 UTC 
(rev 2745)
@@ -134,16 +134,14 @@
 WorldMapManagerStoryButton::draw (DrawingContext& gc)
 {
   SurfaceButton::draw(gc);
-  gc.print_left(Fonts::chalk_small, 10, 5, _("Show Story?"));
+  gc.print_left(Fonts::chalk_small, 14, 5, _("Show Story?"));
 }
 
 void
 WorldMapManagerStoryButton::on_click()
 {
-#if 0
   ScreenManager::instance()->replace_screen
     (new 
StoryScreen(WorldMapNS::WorldMapManager::instance()->get_worldmap()->get_intro_story()),
 true);
-#endif
 }
 
 WorldMapManagerCloseButton::WorldMapManagerCloseButton()
@@ -165,7 +163,7 @@
 WorldMapManagerCloseButton::draw (DrawingContext& gc)
 {
   SurfaceButton::draw(gc);
-  gc.print_left(Fonts::chalk_small, 10, (float)Display::get_height() - 20, 
_("Leave?"));
+  gc.print_left(Fonts::chalk_small, 20, (float)Display::get_height() - 24, 
_("Leave?"));
 }
 
 void
@@ -202,9 +200,9 @@
   else
     {
       SurfaceButton::draw(gc);
-      gc.print_left(Fonts::chalk_small,
-                    (float)Display::get_width() - 100,
-                    (float)Display::get_height() - 20,
+      gc.print_right(Fonts::chalk_small,
+                    (float)Display::get_width() - 40,
+                    (float)Display::get_height() - 24,
                     _("Enter?"));
     }
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]