def getTooltipBuilders():
    return (
        DataBuilder(
            TOOLTIPS_CONSTANTS.EFFICIENCY_PARAM,
            TOOLTIPS_CONSTANTS.FINAL_STSTS_UI,
            common.EfficiencyTooltipData(contexts.FinalStatisticContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.IGR_INFO,
                    TOOLTIPS_CONSTANTS.IGR_INFO_UI,
                    common.IgrTooltipData(contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.CONTACT, TOOLTIPS_CONSTANTS.CONTACT_UI,
                    common.ContactTooltipData(contexts.ContactContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.SORTIE_DIVISION,
            TOOLTIPS_CONSTANTS.SORTIE_DIVISION_UI,
            common.SortieDivisionTooltipData(contexts.FortificationContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.MAP, TOOLTIPS_CONSTANTS.MAP_UI,
                    common.MapTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.MAP_SMALL, TOOLTIPS_CONSTANTS.MAP_SMALL_UI,
            common.MapSmallTooltipData(contexts.FortificationContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.CLAN_COMMON_INFO,
                    TOOLTIPS_CONSTANTS.CLAN_COMMON_INFO_UI,
                    common.ClanCommonInfoTooltipData(
                        contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.REF_SYS_AWARDS,
                    TOOLTIPS_CONSTANTS.REF_SYS_AWARDS_UI,
                    common.ToolTipRefSysAwards(contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.REF_SYS_DESCRIPTION,
                    TOOLTIPS_CONSTANTS.REF_SYS_DESCRIPTION_UI,
                    common.ToolTipRefSysDescription(contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.REF_SYS_XP_MULTIPLIER,
                    TOOLTIPS_CONSTANTS.REF_SYS_XP_MULTIPLIER_UI,
                    common.ToolTipRefSysXPMultiplier(
                        contexts.HangarContext())),
        DefaultFormatBuilder(
            TOOLTIPS_CONSTANTS.ACTION_PRICE, TOOLTIPS_CONSTANTS.COMPLEX_UI,
            common.ActionTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.QUESTS_VEHICLE_BONUSES,
            TOOLTIPS_CONSTANTS.COLUMN_FIELDS_UI,
            common.QuestVehiclesBonusTooltipData(contexts.QuestContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.ENVIRONMENT,
                    TOOLTIPS_CONSTANTS.ENVIRONMENT_UI,
                    common.EnvironmentTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.SQUAD_RESTRICTIONS_INFO,
            TOOLTIPS_CONSTANTS.SQUAD_RESTRICTIONS_INFO_UI,
            common.SquadRestrictionsInfo(
                contexts.SquadRestrictionContext(None))),
        DataBuilder(TOOLTIPS_CONSTANTS.MISSIONS_TOKEN,
                    TOOLTIPS_CONSTANTS.MISSIONS_TOKEN_UI,
                    common.MissionsToken(contexts.QuestContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.RESERVE_MODULE,
                    TOOLTIPS_CONSTANTS.REF_SYS_RESERVES_UI,
                    common.ReserveTooltipData(contexts.ReserveContext())),
        AdvancedHeaderMoneyAndXpBuilder(CURRENCIES_CONSTANTS.CRYSTAL,
                                        TOOLTIPS_CONSTANTS.CRYSTAL_INFO,
                                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        AdvancedHeaderMoneyAndXpBuilder(CURRENCIES_CONSTANTS.CREDITS,
                                        TOOLTIPS_CONSTANTS.CREDITS_INFO,
                                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        AdvancedHeaderMoneyAndXpBuilder(CURRENCIES_CONSTANTS.GOLD,
                                        TOOLTIPS_CONSTANTS.GOLD_INFO,
                                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        AdvancedHeaderMoneyAndXpBuilder(CURRENCIES_CONSTANTS.FREE_XP,
                                        TOOLTIPS_CONSTANTS.FREEXP_INFO,
                                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        DataBuilder(TOOLTIPS_CONSTANTS.VEHICLE_FILTER,
                    TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                    VehicleFilterTooltip(contexts.TechCustomizationContext())),
        SimpleBuilder(TOOLTIPS_CONSTANTS.RSS_NEWS,
                      TOOLTIPS_CONSTANTS.RSS_NEWS_UI),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_ELITE_BONUS,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            common.VehicleEliteBonusTooltipData(
                contexts.VehicleEliteBonusContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_HISTORICAL_REFERENCE,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            common.VehicleHistoricalReferenceTooltipData(
                contexts.VehicleHistoricalReferenceContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.BATTLE_TRAINING,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            common.BattleTraining(contexts.ToolTipContext(None)),
            advanced.BattleTraining(contexts.ToolTipContext(None))))
Ejemplo n.º 2
0
 TOOLTIPS_CONSTANTS.LADDER_REGULATIONS: {
     'tooltip': TOOLTIPS_CONSTANTS.LADDER_REGULATIONS_UI,
     'method':
     common.LadderRegulations(contexts.HangarContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.REF_SYS_AWARDS: {
     'tooltip': TOOLTIPS_CONSTANTS.REF_SYS_AWARDS_UI,
     'method':
     common.ToolTipRefSysAwards(contexts.HangarContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.REF_SYS_DESCRIPTION: {
     'tooltip': TOOLTIPS_CONSTANTS.REF_SYS_DESCRIPTION_UI,
     'method':
     common.ToolTipRefSysDescription(contexts.HangarContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.REF_SYS_XP_MULTIPLIER: {
     'tooltip': TOOLTIPS_CONSTANTS.REF_SYS_XP_MULTIPLIER_UI,
     'method': common.ToolTipRefSysXPMultiplier(
         contexts.HangarContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.ACTION_PRICE: {
     'tooltip': TOOLTIPS_CONSTANTS.COMPLEX_UI,
     'method':
     common.ActionTooltipData(contexts.HangarContext()).buildToolTip,
     'complex': lambda data: False
 },
 TOOLTIPS_CONSTANTS.SQUAD_SLOT_VEHICLE_SELECTED: {