Mercurial > pyntnclick
comparison gamelib/scenes/engine.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 | 3ce19d33b51f |
comparison
equal
deleted
inserted
replaced
594:a9e9a7fbdbcf | 595:59f1ee3f5632 |
---|---|
1 """Engine room where things need to be repaired.""" | 1 """Engine room where things need to be repaired.""" |
2 | 2 |
3 from albow.resource import get_image | |
4 from pyntnclick.cursor import CursorSprite | 3 from pyntnclick.cursor import CursorSprite |
5 from pyntnclick.state import Scene, Item, Thing, Result | 4 from pyntnclick.state import Scene, Item, Thing, Result |
6 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion, | 5 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion, |
7 InteractImage, InteractAnimated, | 6 InteractImage, InteractAnimated, |
8 GenericDescThing) | 7 GenericDescThing) |
537 ALERT_SPACING = 4 | 536 ALERT_SPACING = 4 |
538 | 537 |
539 def setup(self): | 538 def setup(self): |
540 self._alert_messages = {} | 539 self._alert_messages = {} |
541 for key, name in self.ALERTS.iteritems(): | 540 for key, name in self.ALERTS.iteritems(): |
542 self._alert_messages[key] = get_image(self.FOLDER, name) | 541 self._alert_messages[key] = self.get_image(self.FOLDER, name) |
543 | 542 |
544 def _draw_alerts(self, surface): | 543 def _draw_alerts(self, surface): |
545 xpos, ypos = self.ALERT_OFFSET | 544 xpos, ypos = self.ALERT_OFFSET |
546 engine = self.state.scenes['engine'] | 545 engine = self.state.scenes['engine'] |
547 if not engine.things['engine.cracked_pipe'].get_data('fixed'): | 546 if not engine.things['engine.cracked_pipe'].get_data('fixed'): |