def create(self, mapName): global _V_START_POS global _V_START_ANGLES try: LOG_DEBUG('OfflineMapCreator.Create( %s )' % mapName) g_appLoader.showBattle() cfgType = 'basic' self.__loadCfg(cfgType, mapName) BigWorld.worldDrawEnabled(False) BigWorld.setWatcher('Visibility/GUI', False) self.__spaceId = BigWorld.createSpace() self.__isActive = True self.__arenaTypeID = self._arenaTypeIDByArenaName.get(mapName) self.__accountID = BigWorld.createEntity('Account', self.__spaceId, 0, _V_START_POS, (_V_START_ANGLES[2], _V_START_ANGLES[1], _V_START_ANGLES[0]), dict()) self.__spaceMappingId = BigWorld.addSpaceGeometryMapping(self.__spaceId, None, 'spaces/' + mapName) self.__vEntityId = BigWorld.createEntity('Avatar', self.__spaceId, 0, _V_START_POS, (_V_START_ANGLES[2], _V_START_ANGLES[1], _V_START_ANGLES[0]), dict()) BigWorld.player(BigWorld.entities[self.__vEntityId]) self.__setupCamera() BigWorld.worldDrawEnabled(True) except: LOG_DEBUG('OfflineMapCreator.Create( %s ): FAILED with: ' % mapName) LOG_CURRENT_EXCEPTION() self.cancel() return
def arenaLoadCompleted(self): BigWorld.wg_setReducedFpsMode(False) from messenger import MessengerEntry MessengerEntry.g_instance.onAvatarShowGUI() g_appLoader.showBattle() BigWorld.wg_clearTextureReuseList() if BattleReplay.isPlaying: BattleReplay.g_replayCtrl.onArenaLoaded()
def show(self): g_appLoader.showBattle()
def arenaLoadCompleted(self): BigWorld.wg_setReducedFpsMode(False) from messenger import MessengerEntry MessengerEntry.g_instance.onAvatarShowGUI() g_appLoader.showBattle(arenaGuiType=getArenaGuiType()) BigWorld.wg_clearTextureReuseList()
def show(self): g_appLoader.showBattle(ARENA_GUI_TYPE.TUTORIAL)