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))
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)
def _getTitle(cls, condition): return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_CLANKILLS_TITLE)
def _getTitle(cls, *args, **kwargs): return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_ACHIEVEMENTS_TITLE)
def _getTitle(cls, *args, **kwargs): return packSimpleTitle(QUESTS.DETAILS_CONDITIONS_INSTALLEDCAMOUFLAGE_TITLE)
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)