Animation

This commit is contained in:
9and3r
2015-07-14 01:41:58 +02:00
parent 9828f10c31
commit 194d6fa071
11 changed files with 324 additions and 172 deletions

View File

@@ -18,11 +18,17 @@ class PlaylistScreen(BaseScreen):
self.playlists_loaded()
def should_update(self):
return self.list_view.should_update()
if self.list_view.should_update():
return BaseScreen.update_partial
else:
return BaseScreen.no_update
def update(self, screen, update_type, rects):
def set_update_rects(self, rects):
self.list_view.set_update_rects(rects)
def update(self, screen, update_type):
update_all = (update_type == BaseScreen.update_all)
self.list_view.render(screen, update_all, rects)
self.list.render(screen, update_all)
def playlists_loaded(self):
self.selected_playlist = None