예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
 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()
예제 #4
0
 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()
예제 #5
0
 def show(self):
     g_appLoader.showBattle()
예제 #6
0
 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()
예제 #8
0
 def show(self):
     g_appLoader.showBattle(ARENA_GUI_TYPE.TUTORIAL)