Mercurial > parpg-source
diff charactercreationcontroller.py @ 8:708a6f651c31
Modifications to use the grease manager and modes
author | KarstenBock@gmx.net |
---|---|
date | Tue, 12 Jul 2011 12:31:53 +0200 |
parents | 06145a6ee387 |
children | 7b31de1dc964 |
line wrap: on
line diff
--- a/charactercreationcontroller.py Tue Jul 12 12:30:41 2011 +0200 +++ b/charactercreationcontroller.py Tue Jul 12 12:31:53 2011 +0200 @@ -144,7 +144,7 @@ controller = GameSceneController(self.engine, view, self.model, self.application) self.application.view = view - self.application.switchController(controller) + self.application.swap_modes(controller) start_map = self.settings.parpg.Map self.model.changeMap(start_map) @@ -159,9 +159,9 @@ controller = MainMenuController(self.engine, view, self.model, self.application) self.application.view = view - self.application.switchController(controller) + self.application.activate_mode(controller) - def onStop(self): + def on_deactivate(self): """Called when the controller is removed from the list. @return: None""" self.view.hide()