Mercurial > pyntnclick
comparison gamelib/gamescreen.py @ 54:0abd45c58bd3
Remove some parts of gamescreen menu now that menu button is working.
author | Simon Cross <simon@simonx> |
---|---|
date | Mon, 23 Aug 2010 13:23:38 +0200 |
parents | 3d460c1274ee |
children | 9048cf43f613 |
comparison
equal
deleted
inserted
replaced
53:3d460c1274ee | 54:0abd45c58bd3 |
---|---|
62 # TODO: Randomly plonk the state here for now | 62 # TODO: Randomly plonk the state here for now |
63 self.state = initial_state() | 63 self.state = initial_state() |
64 self.state_widget = StateWidget(self.state) | 64 self.state_widget = StateWidget(self.state) |
65 self.add(self.state_widget) | 65 self.add(self.state_widget) |
66 | 66 |
67 StartButton = Button('Main Menu', action = self.main_menu) | |
68 QuitButton = Button('Quit', action = shell.quit) | |
69 AddItemButton = Button('Add item', action = self.add_item) | 67 AddItemButton = Button('Add item', action = self.add_item) |
70 Title = Label('Caught! ... In SPAACE') | |
71 menu = Column([ | 68 menu = Column([ |
72 Title, | |
73 StartButton, | |
74 QuitButton, | |
75 AddItemButton, | 69 AddItemButton, |
76 Button('Use hand', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(None)), | 70 Button('Use hand', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(None)), |
77 Button('Use triangle', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(self.state.items['triangle'])), | 71 Button('Use triangle', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(self.state.items['triangle'])), |
78 Button('Use titanium_leg', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(self.state.items['titanium_leg'])), | 72 Button('Use titanium_leg', action = lambda: self.state.scenes['cryo'].things['cryo.door'].interact(self.state.items['titanium_leg'])), |
79 ], align='l', spacing=20) | 73 ], align='l', spacing=20) |