Mercurial > fife-parpg
diff demos/rio_de_hola/run.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 | e29853880e87 |
children | 3dff106b945b |
line wrap: on
line diff
--- a/demos/rio_de_hola/run.py Tue May 11 21:30:55 2010 +0000 +++ b/demos/rio_de_hola/run.py Wed May 12 16:09:46 2010 +0000 @@ -39,10 +39,10 @@ from fife.extensions.basicapplication import ApplicationBase from fife.extensions import pychan from fife.extensions.pychan import widgets -from settings import Setting +from fife.extensions.fife_settings import Setting from fife.extensions.fife_utils import getUserDataDirectory -TDS = Setting() +TDS = Setting(app_name="rio_de_hola") class ApplicationListener(eventlistenerbase.EventListenerBase): def __init__(self, engine, world): @@ -128,8 +128,6 @@ Load the settings from a python file and load them into the engine. Called in the ApplicationBase constructor. """ - import settings - self.settings = settings engineSetting = self.engine.getSettings() engineSetting.setDefaultFontGlyphs(str(TDS.readSetting("FontGlyphs", strip=False)))