def show(self, selectedID, vehsList, cooldowns, limits=0):
     self.__carousel.resetFilters()
     self.__updateSlotData(vehsList, cooldowns, limits)
     BigWorld.wg_enableGUIBackground(True, False)
     if self.__battleCtx:
         BigWorld.wg_setGUIBackground(
             self.__battleCtx.getArenaRespawnIcon())
 def show(self, selectedID, vehs, cooldowns, limits=0):
     self.__ammunitionPanel.show(selectedID, vehs, cooldowns, limits=0)
     self.__updateSlotData(vehs, cooldowns, limits)
     self.__carousel.show()
     BigWorld.wg_enableGUIBackground(True, False)
     if self.__battleCtx:
         BigWorld.wg_setGUIBackground(
             self.__battleCtx.getArenaRespawnIcon())
Example #3
0
 def __addArenaTypeData(self):
     arena = getClientArena()
     if arena:
         arenaType = arena.arenaType
         self.as_setMapNameS(arenaType.name)
         self.as_setMapBGS('none')
         BigWorld.wg_setGUIBackground(BattleLoading.MAP_BG_SOURCE % arenaType.geometryName)
     self.as_setTipS(tips.getTip())
Example #4
0
    def create(self, isPremium, onSpaceLoadedCallback=None):
        global _CFG
        BigWorld.worldDrawEnabled(False)
        BigWorld.wg_setSpecialFPSMode()
        self.__onLoadedCallback = onSpaceLoadedCallback
        self.__spaceId = BigWorld.createSpace()
        isIGR = self.igrCtrl.getRoomType() == constants.IGR_TYPE.PREMIUM
        spacePath = _getHangarPath(isPremium, isIGR)
        spaceType = _getHangarType(isPremium)
        spaceVisibilityMask = _getHangarVisibilityMask(isPremium)
        LOG_DEBUG(
            'load hangar: hangar type = <{0:>s}>, space = <{1:>s}>'.format(
                spaceType, spacePath))
        safeSpacePath = _getDefaultHangarPath(False)
        if ResMgr.openSection(spacePath) is None:
            LOG_ERROR(
                'Failed to load hangar from path: %s; default hangar will be loaded instead'
                % spacePath)
            spacePath = safeSpacePath
        try:
            self.__spaceMappingId = BigWorld.addSpaceGeometryMapping(
                self.__spaceId, None, spacePath, spaceVisibilityMask)
            BigWorld.enableLowFrequencyAnimation(self.__spaceId, True)
        except Exception:
            try:
                LOG_CURRENT_EXCEPTION()
                spacePath = safeSpacePath
                self.__spaceMappingId = BigWorld.addSpaceGeometryMapping(
                    self.__spaceId, None, spacePath, spaceVisibilityMask)
                BigWorld.enableLowFrequencyAnimation(self.__spaceId, True)
            except Exception:
                BigWorld.releaseSpace(self.__spaceId)
                self.__spaceMappingId = None
                self.__spaceId = None
                LOG_CURRENT_EXCEPTION()
                return

        self.__spacePath = spacePath
        self.__spaceVisibilityMask = spaceVisibilityMask
        spaceKey = _getHangarKey(spacePath)
        _CFG = copy.deepcopy(_HANGAR_CFGS[spaceKey])
        self.turretAndGunAngles.init()
        self.__vEntityId = BigWorld.createEntity(
            'HangarVehicle', self.__spaceId, 0, _CFG['v_start_pos'],
            (_CFG['v_start_angles'][2], _CFG['v_start_angles'][1],
             _CFG['v_start_angles'][0]), dict())
        self.__cameraManager = HangarCameraManager(self.__spaceId)
        self.__cameraManager.init()
        self.__waitCallback = BigWorld.callback(0.1, self.__waitLoadingSpace)
        BigWorld.wg_enableGUIBackground(True, False)
        BigWorld.wg_setGUIBackground(_LOGIN_BLACK_BG_IMG)
        self.mapActivities.generateOfflineActivities(spacePath)
        BigWorld.pauseDRRAutoscaling(True)
        vsePlans = _CFG.get('vse_plans', None)
        if vsePlans is not None:
            self._vsePlans.load(vsePlans)
            self._vsePlans.start()
        return
Example #5
0
 def __addArenaTypeData(self):
     arena = getClientArena()
     if arena:
         arenaType = arena.arenaType
         mapBG = arenaType.geometryName
         if arena.guiType != constants.ARENA_GUI_TYPE.EVENT_BATTLES:
             self.as_setMapNameS(arenaType.name)
         elif arenaType.gameplayName in ('fallout', 'fallout2'):
             mapBG += '_fallout'
         BigWorld.wg_setGUIBackground(BattleLoading.MAP_BG_SOURCE % mapBG)
Example #6
0
 def _addArenaTypeData(self):
     arenaType = arena_info.getArenaType()
     if arenaType:
         self.as_setMapIconS(BattleLoading.SMALL_MAP_SOURCE % arenaType.geometryName)
     BigWorld.wg_setGUIBackground(arena_info.getArenaIcon(BattleLoading.MAP_BG_SOURCE))
Example #7
0
 def _addArenaTypeData(self):
     self.as_setMapIconS(SMALL_MAP_IMAGE_SF_PATH % self._arenaVisitor.type.getGeometryName())
     BigWorld.wg_setGUIBackground(self._battleCtx.getArenaScreenIcon())
Example #8
0
 def _addArenaTypeData(self):
     self.as_setMapIconS(SMALL_MAP_IMAGE_SF_PATH % self._arenaVisitor.type.getGeometryName())
     BigWorld.wg_setGUIBackground(self._battleCtx.getArenaScreenIcon())
Example #9
0
 def _addArenaTypeData(self):
     BigWorld.wg_setGUIBackground(getArenaIcon(BattleLoading.MAP_BG_SOURCE))
Example #10
0
 def _addArenaTypeData(self):
     BigWorld.wg_setGUIBackground(getArenaIcon(BattleLoading.MAP_BG_SOURCE))
 def startControl(self, battleCtx, arenaVisitor):
     self.__arenaVisitor = arenaVisitor
     BigWorld.wg_updateColorGrading()
     BigWorld.wg_enableGUIBackground(True, False)
     BigWorld.wg_setGUIBackground(battleCtx.getArenaScreenIcon())
Example #12
0
 def _addArenaTypeData(self):
     arenaType = arena_info.getArenaType()
     if arenaType is not None:
         self.as_setMapIconS(SMALL_MAP_IMAGE_SF_PATH % arenaType.geometryName)
     BigWorld.wg_setGUIBackground(self._battleCtx.getArenaScreenIcon())
     return