# HG changeset patch # User KarstenBock@gmx.net # Date 1319626909 -7200 # Node ID 76041ed90a5d46f891128bcc7f63df0db678f7b3 # Parent 4c11d9d8b19d42b24913b42f2c7de64ccbe52bca Updated settings to use the MouseSensitivity, MouseAcceleration, GLUseNPOT and GLUseFramebuffer options. diff -r 4c11d9d8b19d -r 76041ed90a5d application.py --- a/application.py Fri Oct 21 13:39:40 2011 +0200 +++ b/application.py Wed Oct 26 13:01:49 2011 +0200 @@ -168,6 +168,7 @@ """ engineSetting = self.engine.getSettings() + assert(isinstance(engineSetting, fife.EngineSettings)) engineSetting.setDefaultFontGlyphs(self._setting.fife.FontGlyphs) engineSetting.setDefaultFontPath( '{0}/fonts/{1}'.format(self._setting.parpg.DataPath, @@ -179,6 +180,8 @@ engineSetting.setSDLRemoveFakeAlpha( self._setting.fife.SDLRemoveFakeAlpha ) + engineSetting.setGLUseFramebuffer(self._setting.fife.GLUseFramebuffer) + engineSetting.setGLUseNPOT(self._setting.fife.GLUseNPOT) engineSetting.setScreenWidth(self._setting.fife.ScreenWidth) engineSetting.setScreenHeight(self._setting.fife.ScreenHeight) engineSetting.setRenderBackend(self._setting.fife.RenderBackend) @@ -186,7 +189,11 @@ engineSetting.setVideoDriver(self._setting.fife.VideoDriver) engineSetting.setLightingModel(self._setting.fife.Lighting) engineSetting.setColorKeyEnabled(self._setting.fife.ColorKeyEnabled) - + engineSetting.setMouseSensitivity(self._setting.fife.MouseSensitivity) + engineSetting.setMouseAcceleration( + self._setting.fife.MouseAcceleration + ) + engineSetting.setColorKey(*[int(digit) for digit in self._setting.fife.ColorKey]) diff -r 4c11d9d8b19d -r 76041ed90a5d settings.py --- a/settings.py Fri Oct 21 13:39:40 2011 +0200 +++ b/settings.py Wed Oct 26 13:01:49 2011 +0200 @@ -340,16 +340,18 @@ # Video driver to use. (?) VideoDriver = "" -# Backend to use for graphics (OpenGL|SDL) +# Backend to use for graphics (OpenGL|OpenGLe|SDL) RenderBackend = OpenGL # Run the game in fullscreen mode or not. (True|False) FullScreen = False -# Screen Resolution's width. Not used if FullScreen is set to False (800|1024|etc) +# Screen Resolution's width. Not used if FullScreen is set to False +# (800|1024|etc) ScreenWidth = 1024 -# Screen Resolution's height. Not used if FullScreen is set to False (600|768|etc) +# Screen Resolution's height. Not used if FullScreen is set to False +# (600|768|etc) ScreenHeight = 768 # Screen DPI? (?) @@ -358,6 +360,18 @@ # ? (?) SDLRemoveFakeAlpha = 1 +# Use Framebuffer Objects (True|False) +GLUseFramebuffer = True + +# Use NPOT textures (True|False) +GLUseNPOT = True + +# The Sensitivity of the mouse. (-0.99 to 10.0) +MouseSensitivity = 0.0 + +# Sets whether the mouse should be accelerated. (True|False) +MouseAcceleration = False + # Subdirectory to load icons from (path) IconsPath = icons