Beispiel #1
0
     'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
     'method': None,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.MARK_OF_MASTERY: {
     'tooltip':
     TOOLTIPS_CONSTANTS.MARK_OF_MASTERY_UI,
     'method':
     achievement.AchievementTooltipData(
         contexts.BattleResultMarkOfMasteryContext()).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.CAROUSEL_VEHICLE: {
     'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
     'method': vehicle.VehicleInfoTooltipData(
         contexts.CarouselContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.INVENTORY_VEHICLE: {
     'tooltip':
     TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
     'method':
     lambda intCD, sellPrice=0, sellCurrency=0, inventoryCount=0,
     vehicleCount=0: vehicle.VehicleInfoTooltipData(
         contexts.InventoryContext()).buildToolTip(intCD),
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE: {
     'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
     'method': vehicle.VehicleInfoTooltipData(
Beispiel #2
0
                                               'method': achievement.AchievementTooltipData(contexts.ProfileContext()).buildToolTip,
                                               'complex': None},
 TOOLTIPS_CONSTANTS.BATTLE_STATS_MARKS_ON_GUN_ACHIEVEMENT: {'tooltip': TOOLTIPS_CONSTANTS.MARKS_ON_GUN_UI,
                                                            'method': achievement.AchievementTooltipData(contexts.BattleResultMarksOnGunContext()).buildToolTip,
                                                            'complex': None},
 TOOLTIPS_CONSTANTS.GLOBAL_RATING: {'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
                                    'method': achievement.GlobalRatingTooltipData(contexts.ProfileContext()).buildToolTip,
                                    'complex': None},
 'achievementAttr': {'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
                     'method': None,
                     'complex': None},
 TOOLTIPS_CONSTANTS.MARK_OF_MASTERY: {'tooltip': TOOLTIPS_CONSTANTS.MARK_OF_MASTERY_UI,
                                      'method': achievement.AchievementTooltipData(contexts.BattleResultMarkOfMasteryContext()).buildToolTip,
                                      'complex': None},
 TOOLTIPS_CONSTANTS.CAROUSEL_VEHICLE: {'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                                       'method': vehicle.VehicleInfoTooltipData(contexts.CarouselContext()).buildToolTip,
                                       'complex': None},
 TOOLTIPS_CONSTANTS.INVENTORY_VEHICLE: {'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                                        'method': lambda intCD, sellPrice = 0, sellCurrency = 0, inventoryCount = 0, vehicleCount = 0: vehicle.VehicleInfoTooltipData(contexts.InventoryContext()).buildToolTip(intCD),
                                        'complex': None},
 TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE: {'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                                       'method': vehicle.VehicleInfoTooltipData(contexts.TechTreeContext()).buildToolTip,
                                       'complex': None},
 TOOLTIPS_CONSTANTS.SHOP_VEHICLE: {'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                                   'method': lambda intCD, inventoryCount = 0, vehicleCount = 0: vehicle.VehicleInfoTooltipData(contexts.ShopContext()).buildToolTip(intCD),
                                   'complex': None},
 TOOLTIPS_CONSTANTS.AWARD_VEHICLE: {'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                                    'method': vehicle.VehicleInfoTooltipData(contexts.AwardContext()).buildToolTip,
                                    'complex': None},
 TOOLTIPS_CONSTANTS.INVENTORY_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                       'method': lambda intCD, sellPrice = 0, sellCurrency = 0, inventoryCount = 0, vehicleCount = 0: module.ModuleBlockTooltipData(contexts.InventoryContext()).buildToolTip(intCD),
 def __init__(self, tooltipType, linkage):
     super(InventoryVehicleBuilder, self).__init__(
         tooltipType, linkage,
         vehicle.VehicleInfoTooltipData(contexts.InventoryContext()))
def getTooltipBuilders():
    return (
        DataBuilder(TOOLTIPS_CONSTANTS.CAROUSEL_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(
                        contexts.CarouselContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.FUN_RANDOM_CAROUSEL_VEHICLE,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            vehicle.VehicleInfoTooltipData(
                contexts.FunRandomCarouselContext())),
        InventoryVehicleBuilder(TOOLTIPS_CONSTANTS.INVENTORY_VEHICLE,
                                TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI),
        DataBuilder(TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(
                        contexts.TechTreeContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE_STATUS,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            vehicle.VehicleStatusTooltipData(contexts.TechTreeContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.SHOP_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.DefaultContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.AWARD_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.AwardContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.EXTENDED_AWARD_VEHICLE,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            vehicle.ExtendedVehicleInfoTooltipData(
                contexts.ExtendedAwardContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.SENIORITY_AWARD_VEHICLE,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            vehicle.ExtendedVehicleInfoTooltipData(
                contexts.SeniorityAwardContext())),
        DefaultFormatBuilder(
            TOOLTIPS_CONSTANTS.TRADE_IN, TOOLTIPS_CONSTANTS.COMPLEX_UI,
            vehicle.VehicleTradeInTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TRADE_IN_PRICE,
            TOOLTIPS_CONSTANTS.TRADE_IN_PRICE,
            vehicle.VehicleTradeInPriceTooltipData(contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.HISTORICAL_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_SIMPLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleSimpleParametersTooltipData(
                contexts.HangarParamContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.BASE_VEHICLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.BaseVehicleAdvancedParametersTooltipData(
                contexts.BaseHangarParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_CMP_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.BaseVehicleAdvancedParametersTooltipData(
                contexts.CmpParamContext()),
            advanced.VehicleParametersAdvanced(contexts.CmpParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_AVG_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAvgParameterTooltipData(
                contexts.HangarParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_ADVANCED_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.HangarParamContext()),
            advanced.VehicleParametersAdvanced(contexts.HangarParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_TANK_SETUP_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.TankSetupParamContext()),
            advanced.VehicleParametersAdvanced(
                contexts.TankSetupParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_POST_PROGRESSION_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.PostProgressionParamContext()),
            advanced.VehicleParametersAdvanced(
                contexts.PostProgressionParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_SIMPLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleSimpleParametersTooltipData(
                contexts.PreviewParamContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_AVG_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAvgParameterTooltipData(
                contexts.PreviewParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_ADVANCED_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.PreviewParamContext()),
            advanced.VehicleParametersAdvanced(contexts.PreviewParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.DEFAULT_CREW_MEMBER,
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER_UI,
            vehicle.DefaultCrewMemberTooltipData(contexts.PreviewContext()),
            advanced.TankmanPreviewTooltipAdvanced(contexts.PreviewContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER,
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER_UI,
            vehicle.VehiclePreviewCrewMemberTooltipData(
                contexts.PreviewContext()),
            advanced.TankmanPreviewTooltipAdvanced(contexts.PreviewContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE_ANNOUNCEMENT,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            vehicle.VehicleAnnouncementParametersTooltipData(
                contexts.VehicleAnnouncementContext())),
        TooltipWindowBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_ROLES, None,
            vehicle_roles.VehicleRolesTooltipContentWindowData(
                contexts.ToolTipContext(None))))
def getTooltipBuilders():
    return (
        DataBuilder(TOOLTIPS_CONSTANTS.CAROUSEL_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(
                        contexts.CarouselContext())),
        InventoryVehicleBuilder(TOOLTIPS_CONSTANTS.INVENTORY_VEHICLE,
                                TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI),
        DataBuilder(TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(
                        contexts.TechTreeContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE_STATUS,
            TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
            vehicle.VehicleStatusTooltipData(contexts.TechTreeContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.SHOP_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.DefaultContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.AWARD_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.AwardContext())),
        DefaultFormatBuilder(
            TOOLTIPS_CONSTANTS.TRADE_IN, TOOLTIPS_CONSTANTS.COMPLEX_UI,
            vehicle.VehicleTradeInTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TRADE_IN_PRICE,
            TOOLTIPS_CONSTANTS.TRADE_IN_PRICE,
            vehicle.VehicleTradeInPriceTooltipData(contexts.HangarContext())),
        DataBuilder(TOOLTIPS_CONSTANTS.HISTORICAL_VEHICLE,
                    TOOLTIPS_CONSTANTS.VEHICLE_INFO_UI,
                    vehicle.VehicleInfoTooltipData(contexts.HangarContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_SIMPLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleSimpleParametersTooltipData(
                contexts.HangarParamContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.BASE_VEHICLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.BaseVehicleAdvancedParametersTooltipData(
                contexts.BaseHangarParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_CMP_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.BaseVehicleAdvancedParametersTooltipData(
                contexts.CmpParamContext()),
            advanced.VehicleParametersAdvanced(contexts.CmpParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_AVG_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAvgParameterTooltipData(
                contexts.HangarParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_ADVANCED_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.HangarParamContext()),
            advanced.VehicleParametersAdvanced(contexts.HangarParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_TANK_SETUP_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.TankSetupParamContext()),
            advanced.VehicleParametersAdvanced(
                contexts.TankSetupParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_SIMPLE_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleSimpleParametersTooltipData(
                contexts.PreviewParamContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_AVG_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAvgParameterTooltipData(
                contexts.PreviewParamContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_ADVANCED_PARAMETERS,
            TOOLTIPS_CONSTANTS.VEHICLE_PARAMETERS_UI,
            vehicle.VehicleAdvancedParametersTooltipData(
                contexts.PreviewParamContext()),
            advanced.VehicleParametersAdvanced(contexts.PreviewParamContext()),
            condition=advanced.VehicleParametersAdvanced.readyForAdvanced),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.DEFAULT_CREW_MEMBER,
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER_UI,
            vehicle.DefaultCrewMemberTooltipData(contexts.PreviewContext()),
            advanced.TankmanPreviewTooltipAdvanced(contexts.PreviewContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER,
            TOOLTIPS_CONSTANTS.VEHICLE_PREVIEW_CREW_MEMBER_UI,
            vehicle.VehiclePreviewCrewMemberTooltipData(
                contexts.PreviewContext()),
            advanced.TankmanPreviewTooltipAdvanced(contexts.PreviewContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE_ANNOUNCEMENT,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            vehicle.VehicleAnnouncementParametersTooltipData(
                contexts.VehicleAnnouncementContext())))