comparison pytouhou/ui/gamerunner.py @ 345:2c4589370cc6

Display a boss remaining lives and timeout.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Jul 2012 00:11:19 +0200
parents 94fdb6c782c1
children 451bee1d2cec
comparison
equal deleted inserted replaced
344:eab591728abf 345:2c4589370cc6
193 self.render_elements(items) 193 self.render_elements(items)
194 else: 194 else:
195 # Redraw only changed labels 195 # Redraw only changed labels
196 labels = [label for label in labels if label.changed] 196 labels = [label for label in labels if label.changed]
197 197
198 if self.game.boss:
199 self.render_elements(interface.boss_items)
200
198 self.render_elements(labels) 201 self.render_elements(labels)
199 self.render_elements(chain(*(label.objects() for label in labels))) 202 self.render_elements(chain(*(label.objects() for label in labels)))
200 for label in labels: 203 for label in labels:
201 label.changed = False 204 label.changed = False
202 205