Mercurial > parpg-core
diff src/parpg/settings.py @ 25:aa3d837024a3
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 | 4706e0194af3 |
children | 9d9c4ccc081e |
line wrap: on
line diff
--- a/src/parpg/settings.py Thu Jun 16 15:14:10 2011 -1000 +++ b/src/parpg/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\ """