# HG changeset patch # User Jeremy Thurgood # Date 1282932498 -7200 # Node ID 80cb577e38f218a04f7bb8cda180cb8286cde5e2 # Parent 88a77875878e43c26a1d3c3207d96d2bc21e946c Non-interactive things no longer highlight the cursor. diff -r 88a77875878e -r 80cb577e38f2 gamelib/scenes/scene_widgets.py --- a/gamelib/scenes/scene_widgets.py Fri Aug 27 20:06:44 2010 +0200 +++ b/gamelib/scenes/scene_widgets.py Fri Aug 27 20:08:18 2010 +0200 @@ -135,6 +135,9 @@ def get_description(self): return self.description + def is_interactive(self): + return False + class Door(Thing): """A door somewhere""" diff -r 88a77875878e -r 80cb577e38f2 gamelib/state.py --- a/gamelib/state.py Fri Aug 27 20:06:44 2010 +0200 +++ b/gamelib/state.py Fri Aug 27 20:08:18 2010 +0200 @@ -323,7 +323,7 @@ """ if self._current_thing is not None: if self._current_thing.contains(pos): - screen.cursor_highlight(True) + screen.cursor_highlight(self._current_thing.is_interactive()) return else: self._current_thing.leave() @@ -408,7 +408,7 @@ return None def is_interactive(self): - return self.current_interact is not None + return True def enter(self, item): """Called when the cursor enters the Thing."""