Mercurial > boomslang
diff gamelib/popupmenu.py @ 187:fbfd8e748ac0
Remove screen reference from State.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Wed, 25 Aug 2010 16:45:06 +0200 |
parents | 97322b78d1c1 |
children |
line wrap: on
line diff
--- a/gamelib/popupmenu.py Wed Aug 25 16:24:55 2010 +0200 +++ b/gamelib/popupmenu.py Wed Aug 25 16:45:06 2010 +0200 @@ -24,9 +24,10 @@ class PopupMenu(Menu, CursorWidget): - def __init__(self, shell): - CursorWidget.__init__(self) - self.shell = shell + def __init__(self, screen): + CursorWidget.__init__(self, screen) + self.screen = screen + self.shell = screen.shell items = [ ('Resume Game', 'hide'), ('Quit Game', 'quit'),