Index: src/ActionButton.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/ActionButton.cc,v
retrieving revision 1.20
diff -u -r1.20 ActionButton.cc
--- ActionButton.cc	2001/08/04 12:46:21	1.20
+++ ActionButton.cc	2001/12/04 06:30:31
@@ -90,6 +90,7 @@
 
   font = PingusResource::load_font("Fonts/courier_small", "fonts");
   font_h = PingusResource::load_font("Fonts/smallfont","fonts");
+  font_b = PingusResource::load_font("Fonts/pingus","fonts");
 
   if (str != "empty") 
     {
@@ -191,6 +192,15 @@
       }
       font->print_center(x_pos + 25, y_pos + 5, str.c_str ());
     }
+
+  // print the action name under the button, when mouse pointer is 
+  // on the button.
+  if(CL_Mouse::get_x() > x_pos && CL_Mouse::get_x() < x_pos + 37
+     && CL_Mouse::get_y() < y_pos + 55 && CL_Mouse::get_y() > y_pos) 
+  {
+	font_b->print_left( x_pos, y_pos + 56, name.c_str());
+  }
+
   surface.put_screen(x_pos + 3, y_pos + 20, action_c);
 }
 
@@ -252,6 +262,15 @@
       }
       font->print_center(x_pos + 50, y_pos + 16, str.c_str ());
     }
+
+  // print the action name next to the button, when mouse pointer is on
+  // the button.
+  if(CL_Mouse::get_x() > x_pos && CL_Mouse::get_x() < x_pos + 60
+     && CL_Mouse::get_y() < y_pos + 35 && CL_Mouse::get_y() > y_pos) 
+  {
+	font_b->print_left (61, y_pos, name.c_str());
+  }
+
   surface.put_screen(x_pos + 3, y_pos + 1, action_c);
 }
 
Index: src/ActionButton.hh
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/ActionButton.hh,v
retrieving revision 1.17
diff -u -r1.17 ActionButton.hh
--- ActionButton.hh	2001/08/16 22:00:50	1.17
+++ ActionButton.hh	2001/12/04 06:30:31
@@ -150,6 +150,8 @@
   CL_Font*    font;
   ///
   CL_Font*    font_h;
+  // Added for printing action names next to the button.
+  CL_Font*    font_b;
 
   /// The x and y position of the button
   std::string name;
