Пример #1
0
 def __init__(self):
     super(BusinessHandler, self).__init__()
     g_entitiesFactories.initSettings(VIEWS_SETTINGS)
     self.__packagesHandlers = []
     self.__initPackages(VIEWS_PACKAGES)
     self.__lobbyHdlr = BusinessLobbyHandler()
     self.__dlgsHdlr = BusinessDlgsHandler()
     self._LISTENERS = {LoginEventEx.SET_LOGIN_QUEUE: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginEventEx.SET_AUTO_LOGIN: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginCreateEvent.CREATE_ACC: (self.__createAcc, EVENT_BUS_SCOPE.LOBBY),
      ShowViewEvent.SHOW_LOGIN: (self.__showLogin,),
      ShowViewEvent.SHOW_INTRO_VIDEO: (self.__showIntroVideo,),
      ShowViewEvent.SHOW_LOBBY: (self.__showLobby,),
      ShowViewEvent.SHOW_LOBBY_MENU: (self.__lobbyHdlr.showLobbyMenu, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_HANGAR: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_INVENTORY: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_SHOP: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_PROFILE: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BARRACKS: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_CUSTOMIZATION: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BATTLE_QUEUE: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BATTLE_LOADING: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_TUTORIAL_LOADING: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_TRAININGS: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_TRAINING_ROOM: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_TEST_WINDOW: (self.__showTestWindow,),
      ShowWindowEvent.SHOW_EULA: (self.__showEULA,),
      ShowWindowEvent.SHOW_ELITE_VEHICLE_WINDOW: (self.__showEliteWindow,),
      ShowWindowEvent.SHOW_RECRUIT_WINDOW: (self.__showRecruitWindow,),
      ShowWindowEvent.SHOW_EXCHANGE_WINDOW: (self.__showExchangeWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_PROFILE_WINDOW: (self.__showProfileWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_VCOIN_WINDOW: (self.__showExchangeVcoinWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_XP_WINDOW: (self.__showExchangeXPWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_FREE_TO_TANKMAN_XP_WINDOW: (self.__showExchangeFreeToTankmanXpWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_VEHICLE_BUY_WINDOW: (self.__showVehicleBuyWindow,),
      ShowWindowEvent.SHOW_NOTIFICATIONS_LIST: (self.__showNotificationsList,),
      ShowWindowEvent.SHOW_SETTINGS_WINDOW: (self.__showSettingsWindow,),
      ShowWindowEvent.SHOW_DEMONSTRATOR_WINDOW: (self.__showDemonstratorWindow,),
      ShowWindowEvent.SHOW_VEHICLE_INFO_WINDOW: (self.__showVehicleInfoWindow,),
      ShowWindowEvent.SHOW_MODULE_INFO_WINDOW: (self.__showModuleInfoWindow,),
      ShowWindowEvent.SHOW_TECHNICAL_MAINTENANCE: (self.__showTechnicalMaintenance,),
      ShowWindowEvent.SHOW_VEHICLE_SELL_DIALOG: (self.__showVehicleSellDialog,),
      ShowWindowEvent.SHOW_PREMIUM_DIALOG: (self.__lobbyHdlr.showPremiumDialog,),
      ShowWindowEvent.SHOW_TANKMAN_INFO: (self.__lobbyHdlr.showCrewTankmanInfo,),
      ShowWindowEvent.SHOW_BATTLE_RESULTS: (self.__lobbyHdlr.showBattleResults,),
      ShowWindowEvent.SHOW_QUESTS_WINDOW: (self.__lobbyHdlr.showQuestsWindow,),
      ShowWindowEvent.SHOW_TANKMAN_DROP_SKILLS_WINDOW: (self.__lobbyHdlr.showTankmanDropSkillsWindow,),
      ShowWindowEvent.SHOW_TRAINING_SETTINGS_WINDOW: (self.__lobbyHdlr.showTrainingSettingsWindow,),
      ShowWindowEvent.SHOW_BROWSER_WINDOW: (self.__lobbyHdlr.showBrowserWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowDialogEvent.SHOW_SIMPLE_DLG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_PRICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DEMOUNT_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DESTROY_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CONFIRM_MODULE: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_SYSTEM_MESSAGE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CAPTCHA_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DISMISS_TANKMAN_DIALOG: (self.__dlgsHdlr,)}
Пример #2
0
    def _loadPackage(self, path):
        if self.isPackageLoaded(path):
            return
        imported = __import__(_SF_SETTING_PATH.format(path),
                              fromlist=[_SF_SETTING_NAME])
        try:
            settings = imported.getViewSettings()
        except AttributeError:
            raise Exception, 'Package {0} does not have method getViewSettings'.format(
                path)

        aliases = g_entitiesFactories.initSettings(settings)
        handlers = imported.getBusinessHandlers()
        processed = set()
        for handler in handlers:
            if not isinstance(handler, PackageBusinessHandler):
                for handler in processed:
                    handler.fini()

                raise Exception, 'Package {0} has invalid business handler {1}'.format(
                    path, handler.__class__.__name__)
            handler.init()
            processed.add(handler)

        self._aliases[path] = aliases
        self._handlers[path] = processed
Пример #3
0
    def _loadPackage(self, path):
        if self.isPackageLoaded(path):
            return
        imported = __import__(_SF_SETTING_PATH.format(path), fromlist=[_SF_SETTING_NAME])
        try:
            settings = imported.getViewSettings()
        except AttributeError as e:
            print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', e.message
            LOG_CURRENT_EXCEPTION()
            raise Exception('Package {0} does not have method getViewSettings'.format(path))

        aliases = g_entitiesFactories.initSettings(settings)
        handlers = imported.getBusinessHandlers()
        processed = set()
        for handler in handlers:
            if not isinstance(handler, PackageBusinessHandler):
                for handler in processed:
                    handler.fini()

                raise Exception('Package {0} has invalid business handler {1}'.format(path, handler.__class__.__name__))
            handler.init()
            processed.add(handler)

        self._aliases[path] = aliases
        self._handlers[path] = processed
Пример #4
0
    def __initPackages(self, packages):
        for package in packages:
            name = '{0:>s}.sf_settings'.format(package)
            imported = __import__(name, fromlist=['sf_settings'])
            getter = getattr(imported, 'getViewSettings', None)
            if getter is None or not callable(getter):
                raise Exception, 'Package {0} does not have method getViewSettings'.format(name)
            g_entitiesFactories.initSettings(getter())
            getter = getattr(imported, 'getBusinessHandlers', None)
            if getter is not None:
                if callable(getter):
                    handlers = getter()
                    for handler in handlers:
                        if not isinstance(handler, PackageBusinessHandler):
                            raise Exception, 'Package {0} returned invalid business handler'.format(name)
                        self.__packagesHandlers.append(handler)

                else:
                    raise Exception, 'Package {0} does not have method getBusinessHandler'.format(name)
Пример #5
0
    def __initPackages(self, packages):
        for package in packages:
            name = '{0:>s}.sf_settings'.format(package)
            imported = __import__(name, fromlist=['sf_settings'])
            getter = getattr(imported, 'getViewSettings', None)
            if getter is None or not callable(getter):
                raise Exception, 'Package {0} does not have method getViewSettings'.format(
                    name)
            g_entitiesFactories.initSettings(getter())
            getter = getattr(imported, 'getBusinessHandlers', None)
            if getter is not None:
                if callable(getter):
                    handlers = getter()
                    for handler in handlers:
                        if not isinstance(handler, PackageBusinessHandler):
                            raise Exception, 'Package {0} returned invalid business handler'.format(
                                name)
                        self.__packagesHandlers.append(handler)

                else:
                    raise Exception, 'Package {0} does not have method getBusinessHandler'.format(
                        name)

        return
Пример #6
0
    def _loadPackage(self, path):
        if self.isPackageLoaded(path):
            return
        LOG_DEBUG('Tries to load GUI package', path)
        imported = importlib.import_module(path)
        try:
            settings = imported.getViewSettings()
        except AttributeError:
            LOG_CURRENT_EXCEPTION()
            raise Exception(
                'Package {0} does not have method getViewSettings'.format(
                    path))

        aliases = g_entitiesFactories.initSettings(settings)
        try:
            handlers = imported.getContextMenuHandlers()
        except AttributeError:
            LOG_CURRENT_EXCEPTION()
            raise Exception(
                'Package {0} does not have method getContextMenuHandlers'.
                format(path))

        contextMenuTypes = context_menu.registerHandlers(*handlers)
        try:
            handlers = imported.getBusinessHandlers()
        except AttributeError:
            LOG_CURRENT_EXCEPTION()
            raise Exception(
                'Package {0} does not have method getBusinessHandlers'.format(
                    path))

        processed = set()
        for handler in handlers:
            if not isinstance(handler, PackageBusinessHandler):
                for handler in processed:
                    handler.fini()

                raise Exception(
                    'Package {0} has invalid business handler {1}'.format(
                        path, handler.__class__.__name__))
            handler.init()
            processed.add(handler)

        self._aliases[path] = aliases
        self._handlers[path] = processed
        self._contextMenuTypes[path] = contextMenuTypes
    def _loadPackage(self, path, arenaGuiType, isExtention):
        if self.isPackageLoaded(path):
            return
        _logger.debug('Tries to load GUI package "%s"', path)
        imported = importlib.import_module(path)
        try:
            settings = imported.getViewSettings()
            if not isExtention:
                settings = self._getHandlesWithoutExtensionOverride(settings, arenaGuiType)
        except AttributeError:
            _logger.exception('Package "%s" can not be loaded', path)
            raise SoftException('Package {0} does not have method getViewSettings'.format(path))

        aliases = g_entitiesFactories.initSettings(settings)
        self._aliases[path] = aliases
        try:
            handlers = imported.getContextMenuHandlers()
            if not isExtention:
                handlers = self._getHandlesWithoutExtensionOverride(handlers, arenaGuiType)
        except AttributeError:
            _logger.exception('Package "%s" can not be loaded', path)
            raise SoftException('Package {0} does not have method getContextMenuHandlers'.format(path))

        contextMenuTypes = context_menu.registerHandlers(*handlers)
        self._contextMenuTypes[path] = contextMenuTypes
        try:
            handlers = imported.getBusinessHandlers()
        except AttributeError:
            _logger.exception('Package "%s" can not be loaded', path)
            raise SoftException('Package {0} does not have method getBusinessHandlers'.format(path))

        processed = set()
        for handler in handlers:
            if not isinstance(handler, PackageBusinessHandler):
                for h in processed:
                    h.fini()

                raise SoftException('Package {0} has invalid business handler {1}'.format(path, handler.__class__.__name__))
            handler.init()
            processed.add(handler)

        self._handlers[path] = processed
Пример #8
0
 def __init__(self):
     super(BusinessHandler, self).__init__()
     g_entitiesFactories.initSettings(VIEWS_SETTINGS)
     self.__packagesHandlers = []
     self.__initPackages(VIEWS_PACKAGES)
     self.__lobbyHdlr = BusinessLobbyHandler()
     self.__dlgsHdlr = BusinessDlgsHandler()
     self._LISTENERS = {LoginEventEx.SET_LOGIN_QUEUE: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginEventEx.SET_AUTO_LOGIN: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginCreateEvent.CREATE_ACC: (self.__createAcc, EVENT_BUS_SCOPE.LOBBY),
      ShowViewEvent.SHOW_LOGIN: (self.__showLogin,),
      ShowViewEvent.SHOW_INTRO_VIDEO: (self.__showIntroVideo,),
      ShowViewEvent.SHOW_LOBBY: (self.__showLobby,),
      ShowViewEvent.SHOW_LOBBY_MENU: (self.__lobbyHdlr.showLobbyMenu, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_HANGAR: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_INVENTORY: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_SHOP: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_PROFILE: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BARRACKS: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_FORTIFICATIONS: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_CUSTOMIZATION: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BATTLE_QUEUE: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_BATTLE_LOADING: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      LoadEvent.LOAD_TUTORIAL_LOADING: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_REFERRAL_REFERRALS_INTRO_WINDOW: (self.__showReferralReferralsIntroWindow,),
      ShowWindowEvent.SHOW_REFERRAL_REFERRER_INTRO_WINDOW: (self.__showReferralReferrerIntroWindow,),
      ShowWindowEvent.SHOW_FREE_X_P_INFO_WINDOW: (self.__showFreeXPInfoWindow,),
      ShowWindowEvent.SHOW_TEST_WINDOW: (self.__showTestWindow,),
      ShowWindowEvent.SHOW_EULA: (self.__showEULA,),
      ShowWindowEvent.SHOW_LEGAL_INFO_WINDOW: (self.__showLegalInfoWindow,),
      ShowWindowEvent.SHOW_ELITE_VEHICLE_WINDOW: (self.__showEliteWindow,),
      ShowWindowEvent.SHOW_RECRUIT_WINDOW: (self.__showRecruitWindow,),
      ShowWindowEvent.SHOW_EXCHANGE_WINDOW: (self.__showExchangeWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_PROFILE_WINDOW: (self.__showProfileWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_VCOIN_WINDOW: (self.__showExchangeVcoinWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_XP_WINDOW: (self.__showExchangeXPWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_EXCHANGE_FREE_TO_TANKMAN_XP_WINDOW: (self.__showExchangeFreeToTankmanXpWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowWindowEvent.SHOW_VEHICLE_BUY_WINDOW: (self.__showVehicleBuyWindow,),
      ShowPopoverEvent.SHOW_NOTIFICATIONS_LIST_POPOVER: (self.__showNotificationsList,),
      ShowPopoverEvent.SHOW_CREW_OPERATIONS_POPOVER: (self.__showCrewOperationsPopOver,),
      ShowPopoverEvent.SHOW_FORT_BUILDING_CARD_POPOVER_EVENT: (self.__showFortBuildingsPopOver,),
      ShowPopoverEvent.SHOW_FORT_ORDER_POPOVER_EVENT: (self.__showFortOrderPopover,),
      ShowPopoverEvent.SHOW_FORT_BATTLE_DIRECTION_POPOVER_EVENT: (self.__showFortBattleDirectionPopover,),
      ShowPopoverEvent.SHOW_FORT_INTELLIGENCE_CLAN_FILTER_POPOVER_EVENT: (self.__showFortIntelligenceClanFilterPopover,),
      ShowPopoverEvent.SHOW_BATTLE_TYPE_SELECT_POPOVER_EVENT: (self.__showBattleTypeSelectPopover,),
      ShowPopoverEvent.SHOW_ACCOUNT_POPOVER_EVENT: (self.__showAccountPopover,),
      ShowPopoverEvent.SHOW_FORT_SETTINGS_PERIPHERY_POPOVER_EVENT: (self.__showFortSettingsPeripheryPopover,),
      ShowPopoverEvent.SHOW_FORT_SETTINGS_DEFENCE_HOUR_POPOVER_EVENT: (self.__showFortSettingsDefenceHourPopover,),
      ShowPopoverEvent.SHOW_FORT_SETTINGS_VACATION_POPOVER_EVENT: (self.__showFortSettingsVacationPopover,),
      ShowPopoverEvent.SHOW_FORT_SETTINGS_DAYOFF_POPOVER_EVENT: (self.__showFortSettingsDayoffPopover,),
      ShowPopoverEvent.SHOW_FORT_DATE_PICKER_POPOVER_EVENT: (self.__showFortDatePickerPopover,),
      ShowWindowEvent.SHOW_RETRAIN_CREW_WINDOW: (self.__showRetrainCrewWindow,),
      ShowWindowEvent.SHOW_SETTINGS_WINDOW: (self.__showSettingsWindow,),
      ShowWindowEvent.SHOW_DEMONSTRATOR_WINDOW: (self.__showDemonstratorWindow,),
      ShowWindowEvent.SHOW_VEHICLE_INFO_WINDOW: (self.__showVehicleInfoWindow,),
      ShowWindowEvent.SHOW_MODULE_INFO_WINDOW: (self.__showModuleInfoWindow,),
      ShowWindowEvent.SHOW_TECHNICAL_MAINTENANCE: (self.__showTechnicalMaintenance,),
      ShowWindowEvent.SHOW_VEHICLE_SELL_DIALOG: (self.__showVehicleSellDialog,),
      ShowWindowEvent.SHOW_PREMIUM_DIALOG: (self.__lobbyHdlr.showPremiumDialog,),
      ShowWindowEvent.SHOW_TANKMAN_INFO: (self.__lobbyHdlr.showCrewTankmanInfo,),
      ShowWindowEvent.SHOW_BATTLE_RESULTS: (self.__lobbyHdlr.showBattleResults,),
      ShowWindowEvent.SHOW_EVENTS_WINDOW: (self.__lobbyHdlr.showEventsWindow,),
      ShowWindowEvent.SHOW_TANKMAN_DROP_SKILLS_WINDOW: (self.__lobbyHdlr.showTankmanDropSkillsWindow,),
      ShowWindowEvent.SHOW_AWARD_WINDOW: (self.__showAwardWindow,),
      ShowWindowEvent.SHOW_REFERRAL_MANAGEMENT_WINDOW: (self.__showReferralManagementWindow,),
      ShowWindowEvent.SHOW_PROMO_PREMIUM_IGR_WINDOW: (self.__showPromoPremiumIgrWindow,),
      ShowWindowEvent.SHOW_BROWSER_WINDOW: (self.__lobbyHdlr.showBrowserWindow, EVENT_BUS_SCOPE.LOBBY),
      ShowDialogEvent.SHOW_SIMPLE_DLG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_PRICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DEMOUNT_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DESTROY_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CONFIRM_MODULE: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_SYSTEM_MESSAGE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CAPTCHA_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DISMISS_TANKMAN_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_PUNISHMENT_DIALOG: (self.__dlgsHdlr,)}
Пример #9
0
 def __init__(self):
     super(BusinessHandler, self).__init__()
     g_entitiesFactories.initSettings(VIEWS_SETTINGS)
     self.__lobbyHdlr = BusinessLobbyHandler()
     self.__dlgsHdlr = BusinessDlgsHandler()
     self._LISTENERS = {LoginEventEx.SET_LOGIN_QUEUE: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginEventEx.SET_AUTO_LOGIN: (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
      LoginCreateEvent.CREATE_ACC: (self.__createAcc, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOGIN: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.INTRO_VIDEO: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_MENU: (self.__lobbyHdlr.showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_HANGAR: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_SHOP: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_INVENTORY: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_PROFILE: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_BARRACKS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORTIFICATIONS_VIEW_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.LOBBY_CUSTOMIZATION: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.BATTLE_QUEUE: (self.__lobbyHdlr.showLobbyView, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.BATTLE_LOADING: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.FALLOUT_MULTI_TEAM_BATTLE_LOADING: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.TUTORIAL_LOADING: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.REFERRAL_REFERRALS_INTRO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.REFERRAL_REFERRER_INTRO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.FREE_X_P_INFO_WINDOW: (self.__showFreeXPInfoWindow,),
      VIEW_ALIAS.EULA: (self.__showViewSimple,),
      VIEW_ALIAS.EULA_FULL: (self.__showViewSimple,),
      VIEW_ALIAS.LEGAL_INFO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.ELITE_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.RECRUIT_WINDOW: (self.__showRecruitWindow,),
      VIEW_ALIAS.QUESTS_RECRUIT_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.PROFILE_WINDOW: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.VEHICLE_BUY_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.NOTIFICATIONS_LIST: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.CREW_OPERATIONS_POPOVER: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.CREW_ABOUT_DOG_WINDOW: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_BUILDING_CARD_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_ORDER_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_BATTLE_DIRECTION_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_INTELLIGENCE_CLAN_FILTER_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.BATTLE_TYPE_SELECT_POPOVER: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.ACCOUNT_POPOVER: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_SETTINGS_PERIPHERY_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_SETTINGS_DEFENCE_HOUR_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_SETTINGS_VACATION_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_SETTINGS_DAYOFF_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_DATE_PICKER_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      FORTIFICATION_ALIASES.FORT_ORDER_SELECT_POPOVER_ALIAS: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.AWARD_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.REFERRAL_MANAGEMENT_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.BOOSTERS_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.RETRAIN_CREW: (self.__showViewSimple,),
      VIEW_ALIAS.SETTINGS_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.DEMONSTRATOR_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.VEHICLE_INFO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.MODULE_INFO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.TECHNICAL_MAINTENANCE: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.VEHICLE_SELL_DIALOG: (self.__showViewSimple,),
      VIEW_ALIAS.PREMIUM_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.PREMIUM_CONGRATULATION_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.GOLD_FISH_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.PERSONAL_CASE: (self.__showViewSimple,),
      VIEW_ALIAS.ROLE_CHANGE: (self.__showViewSimple,),
      VIEW_ALIAS.BATTLE_RESULTS: (self.__showViewSimple,),
      VIEW_ALIAS.EVENTS_WINDOW: (self.__showEventWindow,),
      VIEW_ALIAS.TANKMAN_SKILLS_DROP_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.PROMO_PREMIUM_IGR_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.QUESTS_SEASON_AWARDS_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.SQUAD_PROMO_WINDOW: (self.__showViewSimple,),
      VIEW_ALIAS.SWITCH_PERIPHERY_WINDOW: (self.__showViewSimple,),
      FALLOUT_ALIASES.FALLOUT_BATTLE_SELECTOR_WINDOW: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.BROWSER_WINDOW: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      VIEW_ALIAS.GET_PREMIUM_POPOVER: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
      ShowDialogEvent.SHOW_SIMPLE_DLG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_ICON_PRICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DEMOUNT_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DESTROY_DEVICE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CONFIRM_MODULE: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_SYSTEM_MESSAGE_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CAPTCHA_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_DISMISS_TANKMAN_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_PUNISHMENT_DIALOG: (self.__dlgsHdlr,),
      ShowDialogEvent.SHOW_CHECK_BOX_DIALOG: (self.__dlgsHdlr,)}
Пример #10
0
 def __init__(self):
     super(BusinessHandler, self).__init__()
     g_entitiesFactories.initSettings(VIEWS_SETTINGS)
     self.__lobbyHdlr = BusinessLobbyHandler()
     self.__dlgsHdlr = BusinessDlgsHandler()
     self._LISTENERS = {
         LoginEventEx.SET_LOGIN_QUEUE: (self.__showLoginQueue,
                                        EVENT_BUS_SCOPE.LOBBY),
         LoginEventEx.SET_AUTO_LOGIN: (self.__showLoginQueue,
                                       EVENT_BUS_SCOPE.LOBBY),
         LoginCreateEvent.CREATE_ACC: (self.__createAcc,
                                       EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOGIN: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.INTRO_VIDEO: (self.__showViewSimple,
                                  EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY: (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_MENU: (self.__lobbyHdlr.showViewSimple,
                                 EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_HANGAR: (self.__showViewSimple,
                                   EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_SHOP: (self.__showViewSimple,
                                 EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_INVENTORY: (self.__showViewSimple,
                                      EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_PROFILE: (self.__showViewSimple,
                                    EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_BARRACKS: (self.__showViewSimple,
                                     EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORTIFICATIONS_VIEW_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.LOBBY_CUSTOMIZATION: (self.__showViewSimple,
                                          EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.BATTLE_QUEUE: (self.__lobbyHdlr.showLobbyView,
                                   EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.BATTLE_LOADING: (self.__showViewSimple,
                                     EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.FALLOUT_MULTI_TEAM_BATTLE_LOADING:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.TUTORIAL_LOADING: (self.__showViewSimple,
                                       EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.REFERRAL_REFERRALS_INTRO_WINDOW:
         (self.__showViewSimple, ),
         VIEW_ALIAS.REFERRAL_REFERRER_INTRO_WINDOW:
         (self.__showViewSimple, ),
         VIEW_ALIAS.FREE_X_P_INFO_WINDOW: (self.__showFreeXPInfoWindow, ),
         VIEW_ALIAS.EULA: (self.__showViewSimple, ),
         VIEW_ALIAS.EULA_FULL: (self.__showViewSimple, ),
         VIEW_ALIAS.LEGAL_INFO_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.ELITE_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.RECRUIT_WINDOW: (self.__showRecruitWindow, ),
         VIEW_ALIAS.QUESTS_RECRUIT_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.PROFILE_WINDOW: (self.__showViewSimple,
                                     EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.VEHICLE_BUY_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.NOTIFICATIONS_LIST: (self.__showViewSimple,
                                         EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.CREW_OPERATIONS_POPOVER: (self.__showViewSimple,
                                              EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.CREW_ABOUT_DOG_WINDOW: (self.__showViewSimple,
                                            EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_BUILDING_CARD_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_ORDER_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_BATTLE_DIRECTION_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_INTELLIGENCE_CLAN_FILTER_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.BATTLE_TYPE_SELECT_POPOVER: (self.__showViewSimple,
                                                 EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.ACCOUNT_POPOVER: (self.__showViewSimple,
                                      EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_SETTINGS_PERIPHERY_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_SETTINGS_DEFENCE_HOUR_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_SETTINGS_VACATION_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_SETTINGS_DAYOFF_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_DATE_PICKER_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         FORTIFICATION_ALIASES.FORT_ORDER_SELECT_POPOVER_ALIAS:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.AWARD_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.REFERRAL_MANAGEMENT_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.BOOSTERS_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.RETRAIN_CREW: (self.__showViewSimple, ),
         VIEW_ALIAS.SETTINGS_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.DEMONSTRATOR_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.VEHICLE_INFO_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.MODULE_INFO_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.TECHNICAL_MAINTENANCE: (self.__showViewSimple,
                                            EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.VEHICLE_SELL_DIALOG: (self.__showViewSimple, ),
         VIEW_ALIAS.PREMIUM_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.PREMIUM_CONGRATULATION_WINDOW:
         (self.__showViewSimple, ),
         VIEW_ALIAS.GOLD_FISH_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.PERSONAL_CASE: (self.__showViewSimple, ),
         VIEW_ALIAS.ROLE_CHANGE: (self.__showViewSimple, ),
         VIEW_ALIAS.BATTLE_RESULTS: (self.__showViewSimple, ),
         VIEW_ALIAS.EVENTS_WINDOW: (self.__showEventWindow, ),
         VIEW_ALIAS.TANKMAN_SKILLS_DROP_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.PROMO_PREMIUM_IGR_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.QUESTS_SEASON_AWARDS_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.SQUAD_PROMO_WINDOW: (self.__showViewSimple, ),
         VIEW_ALIAS.SWITCH_PERIPHERY_WINDOW: (self.__showViewSimple, ),
         FALLOUT_ALIASES.FALLOUT_BATTLE_SELECTOR_WINDOW:
         (self.__showViewSimple, EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.BROWSER_WINDOW: (self.__showViewSimple,
                                     EVENT_BUS_SCOPE.LOBBY),
         VIEW_ALIAS.GET_PREMIUM_POPOVER: (self.__showViewSimple,
                                          EVENT_BUS_SCOPE.LOBBY),
         ShowDialogEvent.SHOW_SIMPLE_DLG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_ICON_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_ICON_PRICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DEMOUNT_DEVICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DESTROY_DEVICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_CONFIRM_MODULE: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_SYSTEM_MESSAGE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_CAPTCHA_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DISMISS_TANKMAN_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_PUNISHMENT_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_CHECK_BOX_DIALOG: (self.__dlgsHdlr, )
     }
Пример #11
0
class LINKAGES(object):
    UI_LINKAGE_COMMON_QUESTS = "xvm.quests_ui::UI_CommonQuestsView"


class FILTERS(object):
    HIDE_WITH_HONORS = "hideWithHonors"
    STARTED = "started"


#####################################################################
# handlers

config.VIEWS_SETTINGS += (ViewSettings(LINKAGES.UI_LINKAGE_COMMON_QUESTS, QuestsCurrentTab, None,
                                       ViewTypes.COMPONENT, None, ScopeTemplates.DEFAULT_SCOPE),)
g_entitiesFactories.initSettings(config.VIEWS_SETTINGS)

_QuestsFilter._FILTER_BY_STATE[FILTERS.HIDE_WITH_HONORS] = lambda q: not q.isFullCompleted(True)
_QuestsFilter._FILTER_BY_STATE[FILTERS.STARTED] = lambda q: q.isInProgress()


@overrideMethod(EventsWindow, '_loadView')
def EventsWindow_loadView(base, self, linkage, alias):
    ui_required = False
    if linkage == QUESTS_ALIASES.COMMON_QUESTS_VIEW_LINKAGE:
        linkage = LINKAGES.UI_LINKAGE_COMMON_QUESTS
        alias = LINKAGES.UI_LINKAGE_COMMON_QUESTS
        ui_required = True

    if ui_required:
        if not 'xvm_quests_ui.swf' in xfw_mods_info.loaded_swfs:
Пример #12
0
 def __init__(self):
     super(BusinessHandler, self).__init__()
     g_entitiesFactories.initSettings(VIEWS_SETTINGS)
     self.__packagesHandlers = []
     self.__initPackages(VIEWS_PACKAGES)
     self.__lobbyHdlr = BusinessLobbyHandler()
     self.__dlgsHdlr = BusinessDlgsHandler()
     self._LISTENERS = {
         LoginEventEx.SET_LOGIN_QUEUE:
         (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
         LoginEventEx.SET_AUTO_LOGIN:
         (self.__showLoginQueue, EVENT_BUS_SCOPE.LOBBY),
         LoginCreateEvent.CREATE_ACC: (self.__createAcc,
                                       EVENT_BUS_SCOPE.LOBBY),
         ShowViewEvent.SHOW_LOGIN: (self.__showLogin, ),
         ShowViewEvent.SHOW_INTRO_VIDEO: (self.__showIntroVideo, ),
         ShowViewEvent.SHOW_LOBBY: (self.__showLobby, ),
         ShowViewEvent.SHOW_LOBBY_MENU: (self.__lobbyHdlr.showLobbyMenu,
                                         EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_HANGAR: (self.__lobbyHdlr.showLobbyView,
                                 EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_INVENTORY: (self.__lobbyHdlr.showLobbyView,
                                    EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_SHOP: (self.__lobbyHdlr.showLobbyView,
                               EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_PROFILE: (self.__lobbyHdlr.showLobbyView,
                                  EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_BARRACKS: (self.__lobbyHdlr.showLobbyView,
                                   EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_CUSTOMIZATION: (self.__lobbyHdlr.showLobbyView,
                                        EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_BATTLE_QUEUE: (self.__lobbyHdlr.showLobbyView,
                                       EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_BATTLE_LOADING: (self.__lobbyHdlr.showLobbyView,
                                         EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_TUTORIAL_LOADING: (self.__lobbyHdlr.showLobbyView,
                                           EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_TRAININGS: (self.__lobbyHdlr.showLobbyView,
                                    EVENT_BUS_SCOPE.LOBBY),
         LoadEvent.LOAD_TRAINING_ROOM: (self.__lobbyHdlr.showLobbyView,
                                        EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_TEST_WINDOW: (self.__showTestWindow, ),
         ShowWindowEvent.SHOW_EULA: (self.__showEULA, ),
         ShowWindowEvent.SHOW_ELITE_VEHICLE_WINDOW:
         (self.__showEliteWindow, ),
         ShowWindowEvent.SHOW_RECRUIT_WINDOW: (self.__showRecruitWindow, ),
         ShowWindowEvent.SHOW_EXCHANGE_WINDOW: (self.__showExchangeWindow,
                                                EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_PROFILE_WINDOW: (self.__showProfileWindow,
                                               EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_EXCHANGE_VCOIN_WINDOW:
         (self.__showExchangeVcoinWindow, EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_EXCHANGE_XP_WINDOW:
         (self.__showExchangeXPWindow, EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_EXCHANGE_FREE_TO_TANKMAN_XP_WINDOW:
         (self.__showExchangeFreeToTankmanXpWindow, EVENT_BUS_SCOPE.LOBBY),
         ShowWindowEvent.SHOW_VEHICLE_BUY_WINDOW:
         (self.__showVehicleBuyWindow, ),
         ShowWindowEvent.SHOW_NOTIFICATIONS_LIST:
         (self.__showNotificationsList, ),
         ShowWindowEvent.SHOW_SETTINGS_WINDOW:
         (self.__showSettingsWindow, ),
         ShowWindowEvent.SHOW_DEMONSTRATOR_WINDOW:
         (self.__showDemonstratorWindow, ),
         ShowWindowEvent.SHOW_VEHICLE_INFO_WINDOW:
         (self.__showVehicleInfoWindow, ),
         ShowWindowEvent.SHOW_MODULE_INFO_WINDOW:
         (self.__showModuleInfoWindow, ),
         ShowWindowEvent.SHOW_TECHNICAL_MAINTENANCE:
         (self.__showTechnicalMaintenance, ),
         ShowWindowEvent.SHOW_VEHICLE_SELL_DIALOG:
         (self.__showVehicleSellDialog, ),
         ShowWindowEvent.SHOW_PREMIUM_DIALOG:
         (self.__lobbyHdlr.showPremiumDialog, ),
         ShowWindowEvent.SHOW_TANKMAN_INFO:
         (self.__lobbyHdlr.showCrewTankmanInfo, ),
         ShowWindowEvent.SHOW_BATTLE_RESULTS:
         (self.__lobbyHdlr.showBattleResults, ),
         ShowWindowEvent.SHOW_QUESTS_WINDOW:
         (self.__lobbyHdlr.showQuestsWindow, ),
         ShowWindowEvent.SHOW_TANKMAN_DROP_SKILLS_WINDOW:
         (self.__lobbyHdlr.showTankmanDropSkillsWindow, ),
         ShowWindowEvent.SHOW_TRAINING_SETTINGS_WINDOW:
         (self.__lobbyHdlr.showTrainingSettingsWindow, ),
         ShowWindowEvent.SHOW_BROWSER_WINDOW:
         (self.__lobbyHdlr.showBrowserWindow, EVENT_BUS_SCOPE.LOBBY),
         ShowDialogEvent.SHOW_SIMPLE_DLG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_ICON_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_ICON_PRICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DEMOUNT_DEVICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DESTROY_DEVICE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_CONFIRM_MODULE: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_SYSTEM_MESSAGE_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_CAPTCHA_DIALOG: (self.__dlgsHdlr, ),
         ShowDialogEvent.SHOW_DISMISS_TANKMAN_DIALOG: (self.__dlgsHdlr, )
     }