Mercurial > pyntnclick
diff gamelib/cursor.py @ 114:13d8cb1d5962
Better cursor handling using draw_all() and mouse_delta().
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 14:51:22 +0200 |
parents | ab11689aec36 |
children | 5e704ee7b84b |
line wrap: on
line diff
--- a/gamelib/cursor.py Tue Aug 24 14:45:54 2010 +0200 +++ b/gamelib/cursor.py Tue Aug 24 14:51:22 2010 +0200 @@ -28,8 +28,8 @@ self._cursor_group = RenderUpdates() self._cursor_name = '' - def draw_over(self, _surface): - Widget.draw_over(self, _surface) + def draw_all(self, _surface): + Widget.draw_all(self, _surface) surface = self.get_root().surface if self.rect.collidepoint(mouse.get_pos()): cursor = self.get_sprite_cursor() @@ -45,7 +45,7 @@ self._cursor_group.update() self._cursor_group.draw(surface) - def mouse_move(self, event): + def mouse_delta(self, event): self.invalidate() def get_sprite_cursor(self):