diff orpg/tools/orpg_settings.py @ 26:65c5cb9be59c traipse_dev

This patch fixes the known issue with users not being able to set their name in the settings menu. This version also cleans up the themes settings in main.py and preps for Ornery Orc. Some cleaning was done with orpg_settings.py also
author sirebral
date Fri, 31 Jul 2009 00:44:10 -0500
parents 69149263026d
children 4840657c23c5
line wrap: on
line diff
--- a/orpg/tools/orpg_settings.py	Thu Jul 30 00:32:05 2009 -0500
+++ b/orpg/tools/orpg_settings.py	Fri Jul 31 00:44:10 2009 -0500
@@ -273,13 +273,6 @@
             if (self.changes[i][0][:3] == 'Tab' and self.changes[i][1][:6] == 'custom') or\
                 (self.changes[i][0][:3] == 'Tab' and self.settings.get_setting('TabTheme')[:6] == 'custom'):
 
-                """ Old code.  Can be removed, staying in for Dev purposes.
-                if (self.changes[i][0] == 'TabTheme' and (self.changes[i][1] == 'customflat' or self.changes[i][1] == 'customslant')) or\
-                (self.changes[i][0] == 'TabTextColor' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')) or\
-                (self.changes[i][0] == 'TabGradientFrom' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')) or\
-                (self.changes[i][0] == 'TabGradientTo' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')):
-                """
-
                 gfrom = self.settings.get_setting('TabGradientFrom')
                 (fred, fgreen, fblue) = rgbconvert.rgb_tuple(gfrom)
 
@@ -288,6 +281,7 @@
 
                 tabtext = self.settings.get_setting('TabTextColor')
                 (tred, tgreen, tblue) = rgbconvert.rgb_tuple(tabtext)
+
                 for wnd in tabbedwindows:
                     style = wnd.GetWindowStyleFlag()
                     # remove old tabs style