changeset 433:6b7b08d67233

Hook up fixed ETA screen
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 23:45:11 +0200
parents e64f32e13b90
children 9bcb6148fc6b
files gamelib/scenes/cryo.py
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/scenes/cryo.py	Sat Aug 28 23:44:59 2010 +0200
+++ b/gamelib/scenes/cryo.py	Sat Aug 28 23:45:11 2010 +0200
@@ -1,7 +1,9 @@
 """Cryo room where the prisoner starts out."""
 
 import random
+
 from albow.music import change_playlist, get_music, PlayList
+from albow.resource import get_image
 
 from gamelib import speech
 from gamelib.sound import get_sound
@@ -482,12 +484,20 @@
 
     FOLDER = "cryo"
     BACKGROUND = "comp_info_detail.png"
+    BACKGROUND_FIXED = "comp_info_detail_fixed.png"
     NAME = "cryo_comp_detail"
 
     SIZE = (640, 400)
 
     def __init__(self, state):
         super(CryoCompDetail, self).__init__(state)
+        self._background_fixed = get_image(self.FOLDER, self.BACKGROUND_FIXED)
+
+    def draw_background(self, surface):
+        if self.state.scenes['engine'].get_data('engine online'):
+            surface.blit(self._background_fixed, self.OFFSET, None)
+        else:
+            surface.blit(self._background, self.OFFSET, None)
 
 
 class CryoUnitWithCorpse(Scene):