diff options
author | Mateu Batle <mateu.batle@collabora.co.uk> | 2010-11-23 15:33:31 (GMT) |
---|---|---|
committer | Mateu Batle <mateu.batle@collabora.co.uk> | 2010-11-23 15:33:31 (GMT) |
commit | 62eae792b0b392cf111dc95aab3ee520ca9c58f1 (patch) | |
tree | fa127cb3032c67057cd115743142c60b595f0e4e /usmpgames/menustate.py | |
parent | 9069351549ac97cebc4816030de42759d6466c25 (diff) |
Implemented cookie system to avoid creation of many objects
Diffstat (limited to 'usmpgames/menustate.py')
-rwxr-xr-x | usmpgames/menustate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usmpgames/menustate.py b/usmpgames/menustate.py index 325e4a4..fa20ad0 100755 --- a/usmpgames/menustate.py +++ b/usmpgames/menustate.py @@ -7,8 +7,8 @@ from infostate import * class MenuState(InfoState): - def __init__(self, background = None): - InfoState.__init__(self, None, background) + def __init__(self, background = None, cookie = None): + InfoState.__init__(self, None, background, cookie) self._menu_options = [] self._menu_states = [] self.pos = ('center', 'center') @@ -41,5 +41,5 @@ class MenuState(InfoState): def input(self, ms): pass - def entering_state(self, fromStack): - ApplicationState.entering_state(self, fromStack) + def entering_state(self, fromStack, cookie): + ApplicationState.entering_state(self, fromStack, cookie) |