diff settings.py @ 4:bf1dd9c24a7e

Scrolling by keyboard is now possible. * Patch by DomtronVox. * Added scrolling with the arrow keys. * Added a slider bar in the settings menu to allow players to set the scrolling speed. * Fixed an error that occurred when the ok button in settings was pressed. * There is some kind of focus issue where opening the settings menu in-game causes scrolling to be disabled. Workaround is to change the scroll speed setting whenever you open the settings menu.
author DomtronVox
date Fri, 17 Jun 2011 14:49:48 -1000
parents 4912a6f97c52
children 76041ed90a5d
line wrap: on
line diff
--- a/settings.py	Fri Jun 10 11:29:38 2011 -1000
+++ b/settings.py	Fri Jun 17 14:49:48 2011 -1000
@@ -267,6 +267,7 @@
                                     'user{0}'.format(self.suffix))
 
         for section in self.sections:
+
             if '[{0}]\n'.format(section) not in self.settings_file:
                 self.settings_file.append('\n[{0}]\n'.format(section))
                 for option, value in getattr(self, section).options.iteritems():
@@ -309,6 +310,7 @@
         sections.pop(sections.index('settings_file'))
         sections.pop(sections.index('paths'))
         sections.pop(sections.index('suffix'))
+        sections.pop(sections.index('filename'))
         
         return sections
 
@@ -452,6 +454,9 @@
 # File to use for left cursor (filename)
 CursorLeft = cursor_left.png
 
+# how many pixles to move the camera per time frame (digit)
+ScrollSpeed = 1.0
+
 # Player walk speed (digit)
 PCSpeed = 3\
 """