diff demos/shooter/scripts/world.py @ 496:987307d12235

Added the fife_settings.py extension. This provides a small utility class for loading and saving settings along with a dialog box for setting screen resolution and other things. Updated the shooter demo and rio_de_hola to use the new settings extension.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 12 May 2010 16:09:46 +0000
parents ae9f5383f5b1
children 96c4922c1c24
line wrap: on
line diff
--- a/demos/shooter/scripts/world.py	Tue May 11 21:30:55 2010 +0000
+++ b/demos/shooter/scripts/world.py	Wed May 12 16:09:46 2010 +0000
@@ -48,11 +48,12 @@
 	   ( by inheriting from EventlistenerBase )
 
 	"""
-	def __init__(self, app, engine):
+	def __init__(self, app, engine, setting):
 		super(World, self).__init__(engine, regKeys=True)
 
 		self._applictaion = app
 		self._engine = engine
+		self._setting = setting
 		self._timemanager = engine.getTimeManager()
 		self._eventmanager = engine.getEventManager()
 		self._model = engine.getModel()
@@ -72,7 +73,7 @@
 		
 		self._soundmanager = SoundManager(self._engine)
 		
-		self._mainmenu = MainMenu(self)
+		self._mainmenu = MainMenu(self, self._setting)
 		self.showMainMenu()
 		
 		self._hudwindow = HeadsUpDisplay(self)