Esempio n. 1
0
 def _getTitle(cls, condition):
     _, relation, relationI18nType, value = getResultsData(condition)
     _, topRangeLower = condition.getMaxRange()
     if topRangeLower < TOP_RANGE_LOWEST:
         return packSimpleTitle(i18n.makeString(QUESTS.DETAILS_CONDITIONS_TOP_TITLE, value=topRangeLower))
     elif value is None:
         return super(_BattleResultsFormatter, cls)._getTitle()
     else:
         return packSimpleTitle(value) if condition.keyName == 'markOfMastery' else FormattableField(FORMATTER_IDS.RELATION, (value, relation, relationI18nType))
Esempio n. 2
0
 def getTitle(self, condition):
     """
     Gets condition's custom title if it is defined,
     else return standard conditions title
     """
     customTitle = condition.getCustomTitle()
     if customTitle is not None:
         return packSimpleTitle(customTitle)
     else:
         return self._getTitle(condition)
Esempio n. 3
0
 def _getTitle(cls, condition):
     return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_CLANKILLS_TITLE)
Esempio n. 4
0
 def _getTitle(cls, *args, **kwargs):
     return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_ACHIEVEMENTS_TITLE)
Esempio n. 5
0
 def _getTitle(cls, *args, **kwargs):
     return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_INSTALLEDCAMOUFLAGE_TITLE)
Esempio n. 6
0
 def _getTitle(cls, condition):
     return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_INSTALLEDMODULE_TITLE)
 def getTitle(self, condition):
     customTitle = condition.getCustomTitle()
     return packSimpleTitle(
         customTitle) if customTitle is not None else self._getTitle(
             condition)