Mercurial > touhou
comparison pytouhou/ui/anmrenderer.py @ 288:d95beee0087a
Make anmviewer work with newest anmwrapper.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 13 Feb 2012 12:00:57 +0100 |
parents | dd2bd7283bec |
children | f3099ebf4f61 |
comparison
equal
deleted
inserted
replaced
287:981d1893d564 | 288:d95beee0087a |
---|---|
147 | 147 |
148 | 148 |
149 def index_items(self): | 149 def index_items(self): |
150 self.items = {} | 150 self.items = {} |
151 if self.sprites: | 151 if self.sprites: |
152 for anm in self._anm_wrapper.anm_files: | 152 self.items = self._anm_wrapper.sprites |
153 self.items.update(anm.sprites) | |
154 else: | 153 else: |
155 for anm in self._anm_wrapper.anm_files: | 154 self.items = self._anm_wrapper.scripts |
156 self.items.update(anm.scripts) | |
157 | 155 |
158 | 156 |
159 def toggle_sprites(self): | 157 def toggle_sprites(self): |
160 self.sprites = not(self.sprites) | 158 self.sprites = not(self.sprites) |
161 self.index_items() | 159 self.index_items() |