Mercurial > traipse_dev
comparison 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 |
comparison
equal
deleted
inserted
replaced
25:69149263026d | 26:65c5cb9be59c |
---|---|
271 if self.changes[i][0] == 'player': self.session.name = str(self.changes[i][1]) | 271 if self.changes[i][0] == 'player': self.session.name = str(self.changes[i][1]) |
272 | 272 |
273 if (self.changes[i][0][:3] == 'Tab' and self.changes[i][1][:6] == 'custom') or\ | 273 if (self.changes[i][0][:3] == 'Tab' and self.changes[i][1][:6] == 'custom') or\ |
274 (self.changes[i][0][:3] == 'Tab' and self.settings.get_setting('TabTheme')[:6] == 'custom'): | 274 (self.changes[i][0][:3] == 'Tab' and self.settings.get_setting('TabTheme')[:6] == 'custom'): |
275 | 275 |
276 """ Old code. Can be removed, staying in for Dev purposes. | |
277 if (self.changes[i][0] == 'TabTheme' and (self.changes[i][1] == 'customflat' or self.changes[i][1] == 'customslant')) or\ | |
278 (self.changes[i][0] == 'TabTextColor' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')) or\ | |
279 (self.changes[i][0] == 'TabGradientFrom' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')) or\ | |
280 (self.changes[i][0] == 'TabGradientTo' and (self.settings.get_setting('TabTheme') == 'customflat' or self.settings.get_setting('TabTheme') == 'customslant')): | |
281 """ | |
282 | |
283 gfrom = self.settings.get_setting('TabGradientFrom') | 276 gfrom = self.settings.get_setting('TabGradientFrom') |
284 (fred, fgreen, fblue) = rgbconvert.rgb_tuple(gfrom) | 277 (fred, fgreen, fblue) = rgbconvert.rgb_tuple(gfrom) |
285 | 278 |
286 gto = self.settings.get_setting('TabGradientTo') | 279 gto = self.settings.get_setting('TabGradientTo') |
287 (tored, togreen, toblue) = rgbconvert.rgb_tuple(gto) | 280 (tored, togreen, toblue) = rgbconvert.rgb_tuple(gto) |
288 | 281 |
289 tabtext = self.settings.get_setting('TabTextColor') | 282 tabtext = self.settings.get_setting('TabTextColor') |
290 (tred, tgreen, tblue) = rgbconvert.rgb_tuple(tabtext) | 283 (tred, tgreen, tblue) = rgbconvert.rgb_tuple(tabtext) |
284 | |
291 for wnd in tabbedwindows: | 285 for wnd in tabbedwindows: |
292 style = wnd.GetWindowStyleFlag() | 286 style = wnd.GetWindowStyleFlag() |
293 # remove old tabs style | 287 # remove old tabs style |
294 mirror = ~(FNB.FNB_VC71 | FNB.FNB_VC8 | FNB.FNB_FANCY_TABS | FNB.FNB_COLORFUL_TABS) | 288 mirror = ~(FNB.FNB_VC71 | FNB.FNB_VC8 | FNB.FNB_FANCY_TABS | FNB.FNB_COLORFUL_TABS) |
295 style &= mirror | 289 style &= mirror |