comparison gamelib/scenes/bridge.py @ 435:19aff54b2e73

Many small fixes.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 28 Aug 2010 23:48:50 +0200
parents 860cb6144fd4
children 4136b5d931e7
comparison
equal deleted inserted replaced
434:9bcb6148fc6b 435:19aff54b2e73
318 318
319 INITIAL = 'closed' 319 INITIAL = 'closed'
320 320
321 def get_description(self): 321 def get_description(self):
322 if self.scene.get_data('ai panel') == 'closed': 322 if self.scene.get_data('ai panel') == 'closed':
323 return "The sign reads 'Warning: Authorized Techinicians Only'" 323 return "The sign reads 'Warning: Authorized Techinicians Only'."
324 324
325 def interact_without(self): 325 def interact_without(self):
326 if self.scene.get_data('ai status') == 'online': 326 if self.scene.get_data('ai status') == 'online':
327 return self.interact_default() 327 return self.interact_default()
328 elif self.scene.get_data('ai panel') == 'closed': 328 elif self.scene.get_data('ai panel') == 'closed':
452 return Result("There's no good reason to choose to go to the penal colony.") 452 return Result("There's no good reason to choose to go to the penal colony.")
453 if self.state.scenes['bridge'].get_data('ai status') == 'looping': 453 if self.state.scenes['bridge'].get_data('ai status') == 'looping':
454 return Result("You could change the destination, but when JIM recovers, it'll just get reset.") 454 return Result("You could change the destination, but when JIM recovers, it'll just get reset.")
455 if self.state.scenes['bridge'].get_data('ai status') == 'dead': 455 if self.state.scenes['bridge'].get_data('ai status') == 'dead':
456 self.state.set_current_scene('won') 456 self.state.set_current_scene('won')
457 return Result("You change the destination.", soundfile="beep550.png", close_detail=True) 457 return Result("You change the destination.", soundfile="beep550.ogg", close_detail=True)
458 458
459 class CompUpButton(Thing): 459 class CompUpButton(Thing):
460 """Up button on log screen""" 460 """Up button on log screen"""
461 461
462 NAME = 'bridge_comp.up_button' 462 NAME = 'bridge_comp.up_button'
590 elif self.get_data('tab') == 'nav': 590 elif self.get_data('tab') == 'nav':
591 self._background = self._get_nav_page() 591 self._background = self._get_nav_page()
592 super(BridgeCompDetail, self).draw_background(surface) 592 super(BridgeCompDetail, self).draw_background(surface)
593 593
594 def _clear_navigation(self): 594 def _clear_navigation(self):
595 "Remove navigation things inf nessecary" 595 "Remove navigation things if necessary"
596 for thing in self._nav_lines: 596 for thing in self._nav_lines:
597 if thing.name in self.things.keys(): 597 if thing.name in self.things.keys():
598 # Much fiddling to do the right thing when we reinsert it 598 # Much fiddling to do the right thing when we reinsert it
599 del self.things[thing.name] 599 del self.things[thing.name]
600 thing.scene = None 600 thing.scene = None