Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 595:59f1ee3f5632 pyntnclick
Remove albow.resources in a few more places.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 18:18:59 +0200 |
parents | 4e9178215e75 |
children | c0e0b3d5730c |
comparison
equal
deleted
inserted
replaced
594:a9e9a7fbdbcf | 595:59f1ee3f5632 |
---|---|
1 """Cryo room where the prisoner starts out.""" | 1 """Cryo room where the prisoner starts out.""" |
2 | 2 |
3 import random | 3 import random |
4 | |
5 from albow.resource import get_image | |
6 | 4 |
7 from pyntnclick.cursor import CursorSprite | 5 from pyntnclick.cursor import CursorSprite |
8 from pyntnclick.state import Scene, Item, CloneableItem, Thing, Result | 6 from pyntnclick.state import Scene, Item, CloneableItem, Thing, Result |
9 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion, | 7 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion, |
10 InteractImage, InteractAnimated, | 8 InteractImage, InteractAnimated, |
491 BACKGROUND_FIXED = "comp_info_detail_fixed.png" | 489 BACKGROUND_FIXED = "comp_info_detail_fixed.png" |
492 NAME = "cryo_comp_detail" | 490 NAME = "cryo_comp_detail" |
493 | 491 |
494 def __init__(self, state): | 492 def __init__(self, state): |
495 super(CryoCompDetail, self).__init__(state) | 493 super(CryoCompDetail, self).__init__(state) |
496 self._background_fixed = get_image(self.FOLDER, self.BACKGROUND_FIXED) | 494 self._background_fixed = self.get_image( |
495 self.FOLDER, self.BACKGROUND_FIXED) | |
497 | 496 |
498 def draw_background(self, surface): | 497 def draw_background(self, surface): |
499 if self.state.scenes['engine'].get_data('engine online'): | 498 if self.state.scenes['engine'].get_data('engine online'): |
500 surface.blit(self._background_fixed, self.OFFSET, None) | 499 surface.blit(self._background_fixed, self.OFFSET, None) |
501 else: | 500 else: |