diff 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
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.py
+++ b/pytouhou/ui/gamerunner.py
@@ -195,6 +195,9 @@ class GameRunner(pyglet.window.Window, G
             # Redraw only changed labels
             labels = [label for label in labels if label.changed]
 
+        if self.game.boss:
+            self.render_elements(interface.boss_items)
+
         self.render_elements(labels)
         self.render_elements(chain(*(label.objects() for label in labels)))
         for label in labels: