Пример #1
0
def getLevelInvalidTooltip(teamLimits, restriction):
    minLevel, maxLevel = getLevelLimits(teamLimits)
    return makeTooltip(
        i18n.makeString(
            '#tooltips:redButton/disabled/{0:>s}/header'.format(restriction)),
        i18n.makeString(
            '#tooltips:redButton/disabled/{0:>s}/body'.format(restriction),
            minLevel, maxLevel))
Пример #2
0
def getLevelLimitMessage4Team(teamLimits):
    minLevel, maxLevel = getLevelLimits(teamLimits)
    return i18n.makeString('#system_messages:prebattle/teamInvalid/limits/level', minLevel=minLevel, maxLevel=maxLevel)
Пример #3
0
def getLevelInvalidTooltip(teamLimits, restriction):
    minLevel, maxLevel = getLevelLimits(teamLimits)
    return makeTooltip(i18n.makeString('#tooltips:redButton/disabled/{0:>s}/header'.format(restriction)), i18n.makeString('#tooltips:redButton/disabled/{0:>s}/body'.format(restriction), minLevel, maxLevel))
Пример #4
0
def getLevelLimitMessage4Team(teamLimits):
    minLevel, maxLevel = getLevelLimits(teamLimits)
    return i18n.makeString(
        '#system_messages:prebattle/teamInvalid/limits/level',
        minLevel=minLevel,
        maxLevel=maxLevel)
Пример #5
0
def getLevelLimitMessage4Vehicle(teamLimits):
    minLevel, maxLevel = getLevelLimits(teamLimits)
    return i18n.makeString("#system_messages:prebattle/vehicleInvalid/limits/level", minLevel, maxLevel)