Пример #1
0
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
        }
    }
Пример #2
0
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
        }
    }
Пример #3
0
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
        }
    }
Пример #4
0
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
        }
    }