예제 #1
0
 def __paramsChangeHandler(self, selectedNationID, selectedVehClass,
                           selectedVehicle, selectedTmanRole):
     selectedNationID = int(selectedNationID)
     nationName = nations.NAMES[selectedNationID]
     if self.__currentSelectedNationID != selectedNationID:
         firstNameID, lastNameID, iconID = self.eventsCache.personalMissions.getNextTankwomanIDs(
             selectedNationID, self.__isPremium, int(self.__fnGroup),
             int(self.__lnGroup), int(self.__iGroupID))
         rankID = Tankman.calculateRankID(tankmen.MAX_SKILL_LEVEL,
                                          self.__freeXpValue)
         faceIcon = Tankman.getBigIconPath(selectedNationID, iconID)
         self.as_setInitDataS({
             'windowTitle':
             _ms(DIALOGS.RECRUITWINDOW_TITLE),
             'applyButtonLabel':
             _ms(DIALOGS.RECRUITWINDOW_SUBMIT),
             'cancelButtonLabel':
             _ms(DIALOGS.RECRUITWINDOW_CANCEL),
             'name':
             Tankman.getFullUserName(selectedNationID, firstNameID,
                                     lastNameID),
             'nation':
             nationName,
             'rank':
             Tankman.getRankUserName(selectedNationID, rankID),
             'backAnimationData':
             self.__getBackAnimationData(faceIcon)
         })
     self.__currentSelectedNationID = selectedNationID
예제 #2
0
 def __paramsChangeHandler(self, selectedNationID, selectedVehClass,
                           selectedVehicle, selectedTmanRole):
     selectedNationID = int(selectedNationID)
     nationName = nations.NAMES[selectedNationID]
     if self.__currentSelectedNationID != selectedNationID:
         firstNameID, lastNameID, iconID = g_eventsCache.potapov.getNextTankwomanIDs(
             selectedNationID, self.__isPremium, int(self.__fnGroup),
             int(self.__lnGroup), int(self.__iGroupID))
         rankID = Tankman.calculateRankID(tankmen.MAX_SKILL_LEVEL,
                                          self.__freeXpValue)
         self.as_setInitDataS({
             'name':
             Tankman.getFullUserName(selectedNationID, firstNameID,
                                     lastNameID),
             'nation':
             nationName,
             'rank':
             Tankman.getRankUserName(selectedNationID, rankID),
             'vehicle':
             '',
             'faceIcon':
             Tankman.getBigIconPath(selectedNationID, iconID),
             'rankIcon':
             Tankman.getRankBigIconPath(selectedNationID, rankID)
         })
     self.__currentSelectedNationID = selectedNationID
예제 #3
0
 def getRankID(self):
     return Tankman.calculateRankID(
         tankmen.MAX_SKILL_LEVEL,
         self._freeXP,
         skills=self._getSkillsForDescr(),
         freeSkills=self._getFreeSkillsForDescr(),
         lastSkillLevel=self._lastSkillLevel)
예제 #4
0
 def __paramsChangeHandler(self, selectedNationID, selectedVehClass, selectedVehicle, selectedTmanRole):
     selectedNationID = int(selectedNationID)
     nationName = nations.NAMES[selectedNationID]
     if self.__currentSelectedNationID != selectedNationID:
         firstNameID, lastNameID, iconID = g_eventsCache.potapov.getNextTankwomanIDs(selectedNationID, self.__isPremium, int(self.__fnGroup), int(self.__lnGroup), int(self.__iGroupID))
         rankID = Tankman.calculateRankID(tankmen.MAX_SKILL_LEVEL, self.__freeXpValue)
         self.as_setInitDataS({'name': Tankman.getFullUserName(selectedNationID, firstNameID, lastNameID),
          'nation': nationName,
          'rank': Tankman.getRankUserName(selectedNationID, rankID),
          'vehicle': '',
          'faceIcon': Tankman.getBigIconPath(selectedNationID, iconID),
          'rankIcon': Tankman.getRankBigIconPath(selectedNationID, rankID)})
     self.__currentSelectedNationID = selectedNationID
 def getRankID(self):
     return Tankman.calculateRankID(tankmen.MAX_SKILL_LEVEL, self._freeXP)