comparison gamelib/state.py @ 311:00eb7ea2b7ea

Make self._interact_hilight_colour = None disable rect (matches comments)
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 08:56:12 +0200
parents 75783238f73d
children 40dd77f71e11
comparison
equal deleted inserted replaced
310:d5dea97f9a02 311:00eb7ea2b7ea
459 old_rect = self.current_interact.rect 459 old_rect = self.current_interact.rect
460 if old_rect: 460 if old_rect:
461 self.current_interact.rect = old_rect.move(self.scene.OFFSET) 461 self.current_interact.rect = old_rect.move(self.scene.OFFSET)
462 self.current_interact.draw(surface) 462 self.current_interact.draw(surface)
463 self.current_interact.rect = old_rect 463 self.current_interact.rect = old_rect
464 if DEBUG_RECTS: 464 if DEBUG_RECTS and self._interact_hilight_color:
465 if hasattr(self.rect, 'collidepoint'): 465 if hasattr(self.rect, 'collidepoint'):
466 frame_rect(surface, self._interact_hilight_color, 466 frame_rect(surface, self._interact_hilight_color,
467 self.rect.inflate(1, 1), 1) 467 self.rect.inflate(1, 1), 1)
468 else: 468 else:
469 for rect in self.rect: 469 for rect in self.rect: