def packMissionClassProgress(groupByKey, current, total): return { 'progressLabel': formatters.minimizedTitleCumulativeFormat(current, total), 'vTypeIcon': '../maps/icons/filters/tanks/%s.png' % groupByKey, 'vTypeLabel': i18n.makeString('#quests:classes/small/%s' % groupByKey), 'progress': { 'maxValue': total, 'value': current } }
def packMissionNationProgress(groupByKey, current, total): return { 'progressLabel': formatters.minimizedTitleCumulativeFormat(current, total), 'nationIcon': '../maps/icons/filters/nations/%s.png' % groupByKey, 'nationName': i18n.makeString('#menu:nations/%s' % groupByKey), 'progress': { 'maxValue': total, 'value': current } }
def packMissionLevelProgress(groupByKey, current, total): levelValue = int(groupByKey.replace('level ', '')) return { 'progressLabel': formatters.minimizedTitleCumulativeFormat(current, total), 'level': levelValue, 'levelLabel': i18n.makeString(QUESTS.MISSIONDETAILS_CONDITIONS_LEVEL), 'progress': { 'maxValue': total, 'value': current } }
def packMissionVehicleProgress(groupByKey, current, total): itemsCache = dependency.instance(IItemsCache) vehicle = itemsCache.items.getItemByCD(groupByKey) return { 'progressLabel': formatters.minimizedTitleCumulativeFormat(current, total), 'nationIcon': '../maps/icons/filters/nations/%s.png' % vehicle.nationName, 'vehicleIcon': vehicle.iconSmall, 'vehicleName': vehicle.shortUserName, 'vTypeIcon': '../maps/icons/filters/tanks/%s.png' % vehicle.type, 'level': vehicle.level, 'progress': { 'maxValue': total, 'value': current } }