예제 #1
0
 def update(self, *args):
     self._personalQuestID = None
     if self._currentVehicle.isPresent():
         vehicle = self._currentVehicle.item
         headerVO = {'tankType': '{}_elite'.format(vehicle.type) if vehicle.isElite else vehicle.type,
          'tankInfo': text_styles.concatStylesToMultiLine(text_styles.promoSubTitle(vehicle.shortUserName), text_styles.stats(MENU.levels_roman(vehicle.level))),
          'isPremIGR': vehicle.isPremiumIGR,
          'isVisible': True}
         headerVO.update(self.__getBattleQuestsVO(vehicle))
         headerVO.update(self.__getPersonalQuestsVO(vehicle))
     else:
         headerVO = {'isVisible': False}
     self.as_setDataS(headerVO)
     return
 def getTitleBlock(self):
     tankInfo = ''
     tankType = ''
     item = g_currentVehicle.item
     if item is not None:
         tankInfo = text_styles.concatStylesToMultiLine(text_styles.promoSubTitle(item.userName), text_styles.stats(MENU.levels_roman(item.level)))
         tankType = '../maps/icons/vehicleTypes/big/%s.png' % item.type
     return {'title': self.getTitle(),
      'tankType': tankType,
      'tankInfo': tankInfo}
 def __getHeaderData(self):
     vehicle = g_currentPreviewVehicle.item
     return {'tankType': '{}_elite'.format(vehicle.type) if vehicle.isElite else vehicle.type,
      'tankInfo': text_styles.concatStylesToMultiLine(text_styles.promoSubTitle(vehicle.shortUserName), text_styles.stats(MENU.levels_roman(vehicle.level))),
      'closeBtnLabel': VEHICLE_PREVIEW.HEADER_CLOSEBTN_LABEL,
      'backBtnLabel': VEHICLE_PREVIEW.HEADER_BACKBTN_LABEL,
      'backBtnDescrLabel': self.__getBackBtnLabel(),
      'titleText': text_styles.promoTitle(VEHICLE_PREVIEW.HEADER_TITLE),
      'isPremiumIGR': vehicle.isPremiumIGR}
예제 #4
0
 def _makeHeaderVO(self):
     if self.app.tutorialManager.hangarHeaderEnabled and self._currentVehicle.isPresent():
         vehicle = self._currentVehicle.item
         headerVO = {'tankType': '{}_elite'.format(vehicle.type) if vehicle.isElite else vehicle.type,
          'tankInfo': text_styles.concatStylesToMultiLine(text_styles.promoSubTitle(vehicle.shortUserName), text_styles.stats(MENU.levels_roman(vehicle.level))),
          'isPremIGR': vehicle.isPremiumIGR,
          'isVisible': True,
          'isBeginner': False}
         self._addQuestsToHeaderVO(headerVO, vehicle)
     else:
         headerVO = {'isVisible': False}
     return headerVO