[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldmap manager.cxx,1.30,1.31
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldmap manager.cxx,1.30,1.31 |
Date: |
3 Apr 2003 17:03:26 -0000 |
Update of /var/lib/cvs/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv30816/worldmap
Modified Files:
manager.cxx
Log Message:
- fixed close button
- added some more soundeffects to the GUI
- some more stuff for the result screen
Index: manager.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/worldmap/manager.cxx,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- manager.cxx 2 Apr 2003 19:11:28 -0000 1.30
+++ manager.cxx 3 Apr 2003 17:03:24 -0000 1.31
@@ -40,6 +40,7 @@
WorldMapManagerCloseButton();
void on_click();
void draw (GraphicContext& gc);
+ void on_pointer_enter();
};
class WorldMapManagerEnterButton
@@ -49,6 +50,7 @@
WorldMapManagerEnterButton();
void on_click();
void draw (GraphicContext& gc);
+ void on_pointer_enter();
};
WorldMapManagerCloseButton::WorldMapManagerCloseButton()
@@ -60,6 +62,13 @@
}
void
+WorldMapManagerCloseButton::on_pointer_enter()
+{
+ SurfaceButton::on_pointer_enter();
+ PingusSound::play_sound ("tick");
+}
+
+void
WorldMapManagerCloseButton::draw (GraphicContext& gc)
{
SurfaceButton::draw(gc);
@@ -78,6 +87,16 @@
ResDescriptor("worldmap/enter_button_pressed", "core"),
ResDescriptor("worldmap/enter_button_hover", "core"))
{
+}
+
+void
+WorldMapManagerEnterButton::on_pointer_enter()
+{
+ SurfaceButton::on_pointer_enter();
+ if (!WorldMapManager::instance()->get_worldmap()->get_pingus()->is_walking())
+ {
+ PingusSound::play_sound ("tick");
+ }
}
void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldmap manager.cxx,1.30,1.31,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/gui screen_manager.cxx,1.4,1.5 screen_manager.hxx,1.2,1.3 surface_button.hxx,1.6,1.7
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/data/images Makefile.am,1.47,1.48
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/gui screen_manager.cxx,1.4,1.5 screen_manager.hxx,1.2,1.3 surface_button.hxx,1.6,1.7
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/data/images Makefile.am,1.47,1.48
- Index(es):