def activate(self): g_playerEvents.onAvatarReady += self.onAvatarReady g_playerEvents.onAvatarBecomePlayer += self.onAvatarBecomePlayer g_bootcampEvents.onIntroVideoStop += self.__onBCIntroVideoStop g_bootcampEvents.onBootcampGoNext += self.__onBootcampGoNext g_bootcampEvents.onArenaLoadCompleted += self.onArenaLoadCompleted self.__spaceLoadDelayed = False weave(self.__weaver, self) if self.isVideoPlayingLesson: self.__isIntroVideoFinished = False self.__oldSpaceEnv = self.soundController.setEnvForSpace(GuiGlobalSpaceID.BATTLE_LOADING, BCBattleLoadingSpaceEnv) self._soundFilter.start()
def activate(self): g_playerEvents.onAvatarReady += self.onAvatarReady g_playerEvents.onAvatarBecomePlayer += self.onAvatarBecomePlayer g_bootcampEvents.onIntroVideoStop += self.__onBCIntroVideoStop g_bootcampEvents.onBootcampGoNext += self.__onBootcampGoNext g_bootcampEvents.onArenaLoadCompleted += self.onArenaLoadCompleted self.__spaceLoadDelayed = False weave(self.__weaver, self) if self.isVideoPlayingLesson: self.__isIntroVideoFinished = False BigWorld.delaySpaceLoad(True) self.__oldSpaceEnv = self.soundController.setEnvForSpace( app_settings.GUI_GLOBAL_SPACE_ID.BATTLE_LOADING, BCBattleLoadingSpaceEnv)