pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r2838 - branches/pingus_sdl/src


From: plouj at BerliOS
Subject: [Pingus-CVS] r2838 - branches/pingus_sdl/src
Date: Sun, 12 Aug 2007 00:00:17 +0200

Author: plouj
Date: 2007-08-12 00:00:13 +0200 (Sun, 12 Aug 2007)
New Revision: 2838

Modified:
   branches/pingus_sdl/src/pingus_menu.cpp
   branches/pingus_sdl/src/pingus_menu.hpp
Log:
removed the main menu contrib, story, multiplayer an editor buttons for now


Modified: branches/pingus_sdl/src/pingus_menu.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_menu.cpp     2007-08-11 21:10:51 UTC (rev 
2837)
+++ branches/pingus_sdl/src/pingus_menu.cpp     2007-08-11 22:00:13 UTC (rev 
2838)
@@ -56,6 +56,7 @@
                                _("Exit"),
                                _("..:: Bye, bye ::.."));
 
+#if 0
   contrib_button = new MenuButton(this, Vector2i(Display::get_width() * 150 / 
800,
                                           Display::get_height() * 450 / 600),
                                   
Resource::load_sprite("core/menu/options_on"),
@@ -79,20 +80,24 @@
                                  Resource::load_sprite("core/menu/create_on"),
                                  _("Level Editor"),
                                  _("..:: Create your own levels ::.."));
+#endif
 }
 
 void
 PingusMenu::setup_main_menu()
 {
+#if 0
   gui_manager->remove(contrib_button);
   gui_manager->remove(story_button);
   gui_manager->remove(multiplayer_button);
   gui_manager->remove(editor_button);
+#endif
 
   gui_manager->add(quit_button, false);
   gui_manager->add(start_button, false);
 }
 
+#if 0
 void
 PingusMenu::setup_game_menu()
 {
@@ -106,6 +111,7 @@
 
   //gui_manager->add(multiplayer_button, false);
 }
+#endif
 
 void
 PingusMenu::setup_contrib_menu()
@@ -143,12 +149,13 @@
 {
   delete start_button;
   delete quit_button;
+#if 0
   delete contrib_button;
   delete story_button;
   delete multiplayer_button;
   delete editor_button;
-  if (filedialog)
-    delete filedialog;
+#endif
+  delete filedialog;
 }
 
 void
@@ -253,12 +260,14 @@
 {
   if (button == start_button)
     {
-      setup_game_menu();
+      // setup_game_menu();
+      setup_worldmap_menu();
     }
   else if (button == quit_button)
     {
       do_quit();
     }
+#if 0
   else if (button == contrib_button)
     {
       setup_contrib_menu();
@@ -275,6 +284,7 @@
     {
       do_edit();
     }
+#endif
 }
 
 /* EOF */

Modified: branches/pingus_sdl/src/pingus_menu.hpp
===================================================================
--- branches/pingus_sdl/src/pingus_menu.hpp     2007-08-11 21:10:51 UTC (rev 
2837)
+++ branches/pingus_sdl/src/pingus_menu.hpp     2007-08-11 22:00:13 UTC (rev 
2838)
@@ -47,17 +47,21 @@
   MenuButton* start_button;
   MenuButton* quit_button;
 
+#if 0
   MenuButton* contrib_button;
   MenuButton* story_button;
   MenuButton* multiplayer_button;
   MenuButton* editor_button;
+#endif
   FileDialog* filedialog;
   
   void on_resize (int w, int h);
 
   // These functions setup the different menus
   void setup_main_menu();
+#if 0
   void setup_game_menu();
+#endif
   /** Show the levels folder */
   void setup_contrib_menu();
   /** Show the worldmap folder */





reply via email to

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