diff demos/shooter/run.py @ 515:520bd1621644

Added a loadSettings function. Added the ability to set the valid screen resolutions. Fixed a problem with the settings dialog that kept the settings you selected even though you pressed cancel. When you press the "defaults" button it now applies the defaults and prompts the user to restart the game. Updated the shooter demo to display one valid screen resolution in its settings dialog.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 25 May 2010 15:02:16 +0000
parents ee65aa323457
children 90d369c788c0
line wrap: on
line diff
--- a/demos/shooter/run.py	Tue May 25 13:21:48 2010 +0000
+++ b/demos/shooter/run.py	Tue May 25 15:02:16 2010 +0000
@@ -44,6 +44,8 @@
 TDS = Setting(app_name="shooter", 
               settings_file="./settings.xml", 
               settings_gui_xml="")
+              
+TDS.setAvailableScreenResolutions(["1024x768"])
 
 class ApplicationListener(eventlistenerbase.EventListenerBase):
 	def __init__(self, engine, world):