Mercurial > boomslang
comparison gamelib/scenes/manual.py @ 566:ea9dd2b9186a pyntnclick
Hook up sound in gamelib/scenes.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 15:05:18 +0200 |
parents | 098ea4ea0d0d |
children | 4e9178215e75 |
comparison
equal
deleted
inserted
replaced
565:88cffe418201 | 566:ea9dd2b9186a |
---|---|
1 """The inside of the maintenance manual.""" | 1 """The inside of the maintenance manual.""" |
2 | 2 |
3 from albow.music import change_playlist | 3 from albow.music import change_playlist |
4 | 4 |
5 from pyntnclick.state import Scene, Thing | 5 from pyntnclick.state import Scene, Thing |
6 from pyntnclick.sound import get_current_playlist | |
7 from pyntnclick.scenewidgets import InteractNoImage, InteractImage | 6 from pyntnclick.scenewidgets import InteractNoImage, InteractImage |
8 | 7 |
9 | 8 |
10 # classes related the computer detail | 9 # classes related the computer detail |
11 | 10 |
113 self.add_thing(PagePrior()) | 112 self.add_thing(PagePrior()) |
114 self.add_thing(PageNext()) | 113 self.add_thing(PageNext()) |
115 self._scene_playlist = None | 114 self._scene_playlist = None |
116 | 115 |
117 def enter(self): | 116 def enter(self): |
118 self._scene_playlist = get_current_playlist() | 117 self._scene_playlist = self.sound.get_current_playlist() |
119 change_playlist(None) | 118 change_playlist(None) |
120 | 119 |
121 def leave(self): | 120 def leave(self): |
122 change_playlist(self._scene_playlist) | 121 change_playlist(self._scene_playlist) |
123 | 122 |