Mercurial > boomslang
diff pyntnclick/cursor.py @ 692:d6ded808cc33 pyntnclick
Much scene management refactoring.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 14 Feb 2012 13:39:05 +0200 |
parents | 6d75895477ac |
children | c8b683dd56d3 |
line wrap: on
line diff
--- a/pyntnclick/cursor.py Tue Feb 14 13:05:10 2012 +0200 +++ b/pyntnclick/cursor.py Tue Feb 14 13:39:05 2012 +0200 @@ -3,7 +3,6 @@ # Sprite Cursor from pygame.sprite import Sprite, RenderUpdates -from pygame.rect import Rect import pygame import pygame.color import pygame.cursors @@ -90,11 +89,4 @@ self._cursor_group.add(self._loaded_cursor) def cursor_highlight(self): - #XXX: if not Rect((0, 0), SCENE_SIZE).collidepoint(pygame.mouse.get_pos()): - #XXX: return False - #XXX: if self.game.highlight_override: - #XXX: return True - current_thing = self.game.current_thing - if current_thing: - return current_thing.is_interactive() - return False + return self.container.mouseover_widget.highlight_cursor