comparison application.py @ 152:76041ed90a5d

Updated settings to use the MouseSensitivity, MouseAcceleration, GLUseNPOT and GLUseFramebuffer options.
author KarstenBock@gmx.net
date Wed, 26 Oct 2011 13:01:49 +0200
parents 80672955ab70
children b3b82c2aebee
comparison
equal deleted inserted replaced
151:4c11d9d8b19d 152:76041ed90a5d
166 Load the settings from a python file and load them into the engine. 166 Load the settings from a python file and load them into the engine.
167 Called in the ApplicationBase constructor. 167 Called in the ApplicationBase constructor.
168 """ 168 """
169 169
170 engineSetting = self.engine.getSettings() 170 engineSetting = self.engine.getSettings()
171 assert(isinstance(engineSetting, fife.EngineSettings))
171 engineSetting.setDefaultFontGlyphs(self._setting.fife.FontGlyphs) 172 engineSetting.setDefaultFontGlyphs(self._setting.fife.FontGlyphs)
172 engineSetting.setDefaultFontPath( 173 engineSetting.setDefaultFontPath(
173 '{0}/fonts/{1}'.format(self._setting.parpg.DataPath, 174 '{0}/fonts/{1}'.format(self._setting.parpg.DataPath,
174 self._setting.fife.Font) 175 self._setting.fife.Font)
175 ) 176 )
177 engineSetting.setBitsPerPixel(self._setting.fife.BitsPerPixel) 178 engineSetting.setBitsPerPixel(self._setting.fife.BitsPerPixel)
178 engineSetting.setInitialVolume(self._setting.fife.InitialVolume) 179 engineSetting.setInitialVolume(self._setting.fife.InitialVolume)
179 engineSetting.setSDLRemoveFakeAlpha( 180 engineSetting.setSDLRemoveFakeAlpha(
180 self._setting.fife.SDLRemoveFakeAlpha 181 self._setting.fife.SDLRemoveFakeAlpha
181 ) 182 )
183 engineSetting.setGLUseFramebuffer(self._setting.fife.GLUseFramebuffer)
184 engineSetting.setGLUseNPOT(self._setting.fife.GLUseNPOT)
182 engineSetting.setScreenWidth(self._setting.fife.ScreenWidth) 185 engineSetting.setScreenWidth(self._setting.fife.ScreenWidth)
183 engineSetting.setScreenHeight(self._setting.fife.ScreenHeight) 186 engineSetting.setScreenHeight(self._setting.fife.ScreenHeight)
184 engineSetting.setRenderBackend(self._setting.fife.RenderBackend) 187 engineSetting.setRenderBackend(self._setting.fife.RenderBackend)
185 engineSetting.setFullScreen(self._setting.fife.FullScreen) 188 engineSetting.setFullScreen(self._setting.fife.FullScreen)
186 engineSetting.setVideoDriver(self._setting.fife.VideoDriver) 189 engineSetting.setVideoDriver(self._setting.fife.VideoDriver)
187 engineSetting.setLightingModel(self._setting.fife.Lighting) 190 engineSetting.setLightingModel(self._setting.fife.Lighting)
188 engineSetting.setColorKeyEnabled(self._setting.fife.ColorKeyEnabled) 191 engineSetting.setColorKeyEnabled(self._setting.fife.ColorKeyEnabled)
189 192 engineSetting.setMouseSensitivity(self._setting.fife.MouseSensitivity)
193 engineSetting.setMouseAcceleration(
194 self._setting.fife.MouseAcceleration
195 )
196
190 engineSetting.setColorKey(*[int(digit) 197 engineSetting.setColorKey(*[int(digit)
191 for digit in self._setting.fife.ColorKey]) 198 for digit in self._setting.fife.ColorKey])
192 199
193 engineSetting.setWindowTitle(self._setting.fife.WindowTitle) 200 engineSetting.setWindowTitle(self._setting.fife.WindowTitle)
194 engineSetting.setWindowIcon( 201 engineSetting.setWindowIcon(