diff gamelib/state.py @ 135:b43599b7f8a2

Cursor highlights
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 24 Aug 2010 20:33:20 +0200
parents 0530547a131f
children d264850806dc
line wrap: on
line diff
--- a/gamelib/state.py	Tue Aug 24 20:21:07 2010 +0200
+++ b/gamelib/state.py	Tue Aug 24 20:33:20 2010 +0200
@@ -494,11 +494,11 @@
 
     def enter(self, item):
         """Called when the cursor enters the Thing."""
-        pass
+        self.state.screen.cursor_highlight(True)
 
     def leave(self):
         """Called when the cursr leaves the Thing."""
-        pass
+        self.state.screen.cursor_highlight(False)
 
     def interact(self, item):
         if not self.is_interactive():