[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3266 - trunk/pingus/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3266 - trunk/pingus/src |
Date: |
Sun, 30 Sep 2007 18:26:18 +0200 |
Author: grumbel
Date: 2007-09-30 18:26:18 +0200 (Sun, 30 Sep 2007)
New Revision: 3266
Added:
trunk/pingus/src/option_menu.cpp
trunk/pingus/src/option_menu.hpp
Log:
- option menu stuff
Added: trunk/pingus/src/option_menu.cpp
===================================================================
--- trunk/pingus/src/option_menu.cpp 2007-09-30 16:07:08 UTC (rev 3265)
+++ trunk/pingus/src/option_menu.cpp 2007-09-30 16:26:18 UTC (rev 3266)
@@ -0,0 +1,45 @@
+// $Id$
+//
+// Pingus - A free Lemmings clone
+// Copyright (C) 2007 Ingo Ruhnke <address@hidden>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include "screen/screen_manager.hpp"
+#include "display/drawing_context.hpp"
+#include "option_menu.hpp"
+
+OptionMenu::OptionMenu()
+{
+}
+
+OptionMenu::~OptionMenu()
+{
+}
+
+void
+OptionMenu::draw_background(DrawingContext& gc)
+{
+ gc.draw_fillrect(Rect(100, 100, 400, 400), Color(255, 0, 0));
+}
+
+void
+OptionMenu::on_escape_press()
+{
+ std::cout << "OptionMenu: poping screen" << std::endl;
+ ScreenManager::instance()->pop_screen();
+}
+
+/* EOF */
Property changes on: trunk/pingus/src/option_menu.cpp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/pingus/src/option_menu.hpp
===================================================================
--- trunk/pingus/src/option_menu.hpp 2007-09-30 16:07:08 UTC (rev 3265)
+++ trunk/pingus/src/option_menu.hpp 2007-09-30 16:26:18 UTC (rev 3266)
@@ -0,0 +1,44 @@
+// $Id$
+//
+// Pingus - A free Lemmings clone
+// Copyright (C) 2007 Ingo Ruhnke <address@hidden>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef HEADER_OPTION_MENU_HPP
+#define HEADER_OPTION_MENU_HPP
+
+#include "screen/gui_screen.hpp"
+
+/** */
+class OptionMenu : public GUIScreen
+{
+private:
+public:
+ OptionMenu();
+ ~OptionMenu();
+
+ void draw_background (DrawingContext& gc);
+
+ void on_escape_press ();
+
+private:
+ OptionMenu (const OptionMenu&);
+ OptionMenu& operator= (const OptionMenu&);
+};
+
+#endif
+
+/* EOF */
Property changes on: trunk/pingus/src/option_menu.hpp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3266 - trunk/pingus/src,
grumbel at BerliOS <=