comparison pyntnclick/cursor.py @ 687:6d75895477ac pyntnclick

Comment out highlight_override, not used by our widgets
author Stefano Rivera <stefano@rivera.za.net>
date Mon, 13 Feb 2012 15:53:13 +0200
parents 67373f9d2d20
children d6ded808cc33
comparison
equal deleted inserted replaced
686:48f68ae7d454 687:6d75895477ac
42 self.rect.left = pos[0] - self.pointer_x 42 self.rect.left = pos[0] - self.pointer_x
43 self.rect.top = pos[1] - self.pointer_y 43 self.rect.top = pos[1] - self.pointer_y
44 44
45 def set_highlight(self, enable): 45 def set_highlight(self, enable):
46 if enable != self.highlighted: 46 if enable != self.highlighted:
47 # Do we need this? self.load() 47 #XXX: Do we need this? self.load()
48 self.highlighted = enable 48 self.highlighted = enable
49 self.image = self.plain_image.copy() 49 self.image = self.plain_image.copy()
50 if enable: 50 if enable:
51 self.image.blit(self.highlight, self.highlight.get_rect(), 51 self.image.blit(self.highlight, self.highlight.get_rect(),
52 None, pygame.BLEND_MULT) 52 None, pygame.BLEND_MULT)
90 self._cursor_group.add(self._loaded_cursor) 90 self._cursor_group.add(self._loaded_cursor)
91 91
92 def cursor_highlight(self): 92 def cursor_highlight(self):
93 #XXX: if not Rect((0, 0), SCENE_SIZE).collidepoint(pygame.mouse.get_pos()): 93 #XXX: if not Rect((0, 0), SCENE_SIZE).collidepoint(pygame.mouse.get_pos()):
94 #XXX: return False 94 #XXX: return False
95 if self.game.highlight_override: 95 #XXX: if self.game.highlight_override:
96 # TODO: What is this? 96 #XXX: return True
97 return True
98 current_thing = self.game.current_thing 97 current_thing = self.game.current_thing
99 if current_thing: 98 if current_thing:
100 return current_thing.is_interactive() 99 return current_thing.is_interactive()
101 return False 100 return False