Exemplo n.º 1
0
 def __init__(self):
     self.__colorsSchemes = {}
     self.lobby = _LobbySettings()
     self.battle = _BattleSettings()
     self.userPrefs = _makeDefUserPrefs()
     self.__isUserPrefsInited = False
     self.htmlTemplates = XMLCollection('', '')
     self.msgTemplates = MessageTemplates('', '')
     self.__messageFormatters = {}
     self.server = None
     self.__eManager = Event.EventManager()
     self.onUserPreferencesUpdated = Event.Event(self.__eManager)
     self.onColorsSchemesUpdated = Event.Event(self.__eManager)
     return
Exemplo n.º 2
0
 def __init__(self):
     self.__colorsSchemes = {
         'groups': _ColorScheme(['default']),
         'rosters': _ColorScheme(['online', 'offline']),
         'battle/player': _ColorScheme(['default', 'colorBlind']),
         'battle/message': _ColorScheme(['default', 'colorBlind']),
         'battle/receiver': _ColorScheme(['default', 'colorBlind'])
     }
     self.lobby = _LobbySettings()
     self.battle = _BattleSettings()
     self.userPrefs = _UserPrefs(1, 2, True, False, False, False)
     self.htmlTemplates = XMLCollection('', '')
     self.msgTemplates = MessageTemplates('', '')
     self.__messageFormatters = {}
     self.__eManager = Event.EventManager()
     self.onUserPreferencesUpdated = Event.Event(self.__eManager)
     self.onColorsSchemesUpdated = Event.Event(self.__eManager)