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))
def getLevelLimitMessage4Team(teamLimits): minLevel, maxLevel = getLevelLimits(teamLimits) return i18n.makeString('#system_messages:prebattle/teamInvalid/limits/level', minLevel=minLevel, maxLevel=maxLevel)
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))
def getLevelLimitMessage4Team(teamLimits): minLevel, maxLevel = getLevelLimits(teamLimits) return i18n.makeString( '#system_messages:prebattle/teamInvalid/limits/level', minLevel=minLevel, maxLevel=maxLevel)
def getLevelLimitMessage4Vehicle(teamLimits): minLevel, maxLevel = getLevelLimits(teamLimits) return i18n.makeString("#system_messages:prebattle/vehicleInvalid/limits/level", minLevel, maxLevel)