Mercurial > boomslang
diff pyntnclick/gamescreen.py @ 658:2703924c8c70 pyntnclick
Custom mouse cursors return
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 12 Feb 2012 14:25:27 +0200 |
parents | 0df0c81a3d8b |
children | 363b603794f5 |
line wrap: on
line diff
--- a/pyntnclick/gamescreen.py Sun Feb 12 14:04:52 2012 +0200 +++ b/pyntnclick/gamescreen.py Sun Feb 12 14:25:27 2012 +0200 @@ -2,11 +2,11 @@ # Copyright Boomslang team, 2010 (see COPYING File) # Main menu for the game -from pygame import Rect, mouse, Surface +from pygame import Rect, Surface from pygame.color import Color from pygame.locals import MOUSEBUTTONDOWN, MOUSEMOTION, KEYDOWN, K_ESCAPE -from pyntnclick.cursor import CursorWidget +from pyntnclick.cursor import CursorScreen from pyntnclick.engine import Screen from pyntnclick.state import handle_result from pyntnclick.widgets.base import Widget, Container @@ -268,9 +268,10 @@ self.inventory.unselect() -class GameScreen(Screen): +class GameScreen(CursorScreen): def setup(self): + super(GameScreen, self).setup() self.running = False self.create_initial_state = self.gd.initial_state self.container.add_callback(KEYDOWN, self.key_pressed)