# HG changeset patch # User Neil Muller # Date 1302304135 -7200 # Node ID ca428c1451a2b95761eca0d7bc7d86d8bb24ef1a # Parent 27471c8773746fb101d026f7221adfdfb5d97ecb Hook up drawing tofu and scroll counts diff -r 27471c877374 -r ca428c1451a2 skaapsteker/levelscene.py --- a/skaapsteker/levelscene.py Sat Apr 09 01:03:37 2011 +0200 +++ b/skaapsteker/levelscene.py Sat Apr 09 01:08:55 2011 +0200 @@ -211,6 +211,22 @@ tail_pos = self._clip_rect.left + 8, self._clip_rect.top + constants.FoxHud.TAIL_POSITIONS[tail] self._level_surface.blit(self._tail, tail_pos) + # Draw scroll count + + pos = self._clip_rect.right - 20, self._clip_rect.top + 225 + count = Text("%s" % fox.scrolls, pos) + count.draw(self._level_surface) + pos = self._clip_rect.right - 55, self._clip_rect.top + 220 + self._level_surface.blit(self._scroll, pos) + + # Draw tofu count + pos = self._clip_rect.right - 20, self._clip_rect.top + 255 + count = Text("%s" % fox.tofu, pos) + count.draw(self._level_surface) + pos = self._clip_rect.right - 55, self._clip_rect.top + 250 + self._level_surface.blit(self._tofu, pos) + + def _update_clip_rect(self): cr = self._clip_rect