Exemplo n.º 1
0
 def __init__(self, tooltipType, linkage):
     super(InventoryModuleBuilder, self).__init__(
         tooltipType,
         linkage,
         module.ModuleBlockTooltipData(contexts.InventoryContext()),
         advanced.HangarModuleAdvanced(contexts.InventoryContext()),
         condition=_advancedBlockCondition(contexts.InventoryContext()))
Exemplo n.º 2
0
def getTooltipBuilders():
    return (DataBuilder(
        TOOLTIPS_CONSTANTS.BATTLE_ROYALE_MODULES_HANGAR,
        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
        BattleRoyaleModulesTooltip(_BattleRoyaleHangarVehInfoContext())),
            DataBuilder(TOOLTIPS_CONSTANTS.BATTLE_ROYALE_VEHICLE,
                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                        VehicleTooltipData(contexts.InventoryContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_ROYALE_BATTLE_PROGRESSION,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                BattleProgressionTooltipData(contexts.ToolTipContext(None))),
            DataBuilder(TOOLTIPS_CONSTANTS.BATTLE_ROYALE_EQUIPMENT,
                        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                        EquipmentsTooltipData(contexts.ToolTipContext(None))),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_ROYALE_PERF_SIMPLE,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                PerfAttentionSimpleTooltip(contexts.ToolTipContext(None))),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_ROYALE_PERF_ADVANCED,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                PerfAttentionAdvancedTooltip(contexts.ToolTipContext(None))),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_ROYALE_SELECTOR_INFO,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                EventProgressionSelectorTooltip(
                    contexts.ToolTipContext(None))))
Exemplo n.º 3
0
     '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),
Exemplo n.º 4
0
def getTooltipBuilders():
    return (InventoryModuleBuilder(TOOLTIPS_CONSTANTS.INVENTORY_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
     ShopModuleBuilder(TOOLTIPS_CONSTANTS.SHOP_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
     TechTreeModuleBuilder(TOOLTIPS_CONSTANTS.TECHTREE_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
     ModuleDataBuilder(TOOLTIPS_CONSTANTS.TECH_MAIN_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
     AdvancedDataBuilder(TOOLTIPS_CONSTANTS.HANGAR_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, module.ModuleBlockTooltipData(contexts.HangarContext()), advanced.HangarModuleAdvanced(contexts.HangarContext())),
     AdvancedDataBuilder(TOOLTIPS_CONSTANTS.COMPARE_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, module.ModuleBlockTooltipData(contexts.VehCmpConfigurationContext()), advanced.HangarModuleAdvanced(contexts.VehCmpConfigurationContext())),
     DataBuilder(TOOLTIPS_CONSTANTS.VEH_COMPARE_TECHTREE_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, module.ModuleBlockTooltipData(contexts.VehCmpModulesContext())),
     AdvancedDataBuilder(TOOLTIPS_CONSTANTS.PREVIEW_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, module.ModuleBlockTooltipData(contexts.PreviewContext()), advanced.HangarModuleAdvanced(contexts.PreviewContext())),
     AdvancedDataBuilder(TOOLTIPS_CONSTANTS.AWARD_MODULE, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, module.ModuleBlockTooltipData(contexts.AwardContext()), advanced.HangarModuleAdvanced(contexts.AwardContext())),
     AdvancedShellBuilder(TOOLTIPS_CONSTANTS.SHOP_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.ShopContext()), advanced.HangarShellAdvanced(contexts.ShopContext())),
     ShellBuilder(TOOLTIPS_CONSTANTS.AWARD_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.AwardContext())),
     AdvancedDataBuilder(TOOLTIPS_CONSTANTS.HANGAR_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.HangarContext()), advanced.HangarShellAdvanced(contexts.HangarContext())),
     AdvancedShellBuilder(TOOLTIPS_CONSTANTS.COMPARE_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.VehCmpConfigurationContext(), basicDataAllowed=False), advanced.HangarShellAdvanced(contexts.VehCmpConfigurationContext())),
     AdvancedShellBuilder(TOOLTIPS_CONSTANTS.INVENTORY_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.InventoryContext()), advanced.HangarShellAdvanced(contexts.TechMainContext())),
     AdvancedShellBuilder(TOOLTIPS_CONSTANTS.TECH_MAIN_SHELL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, shell.ShellBlockToolTipData(contexts.TechMainContext()), advanced.HangarShellAdvanced(contexts.TechMainContext())))
Exemplo n.º 5
0
def getTooltipBuilders():
    return (
        InventoryModuleBuilder(TOOLTIPS_CONSTANTS.INVENTORY_MODULE,
                               TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        ShopModuleBuilder(TOOLTIPS_CONSTANTS.DEFAULT_MODULE,
                          TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        TechTreeModuleBuilder(TOOLTIPS_CONSTANTS.TECHTREE_MODULE,
                              TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        ModuleDataBuilder(TOOLTIPS_CONSTANTS.TECH_MAIN_MODULE,
                          TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.HANGAR_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.HangarContext()),
            advanced.HangarModuleAdvanced(contexts.HangarContext()),
            condition=_advancedBlockCondition(contexts.HangarContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.HANGAR_CARD_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.HangarCardContext()),
            advanced.HangarModuleAdvanced(contexts.HangarCardContext()),
            condition=_advancedBlockCondition(contexts.HangarCardContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.HANGAR_SLOT_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.HangarSlotContext()),
            advanced.HangarModuleAdvanced(contexts.HangarSlotContext()),
            condition=_advancedBlockCondition(contexts.HangarSlotContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.HANGAR_SLOT_SPEC,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.AmmunitionSlotSpecTooltipData(
                contexts.ToolTipContext(TOOLTIP_COMPONENT.HANGAR))),
        AdvancedComplexBuilder(
            TOOLTIPS_CONSTANTS.OPT_DEVICE_EMPTY_SLOT,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.OptDeviceEmptyBlockTooltipData(
                contexts.EmptyOptDeviceSlotContext(TOOLTIP_COMPONENT.HANGAR))),
        AdvancedComplexBuilder(
            TOOLTIPS_CONSTANTS.AMMUNITION_EMPTY_SLOT,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.AmmunitionEmptyBlockTooltipData(
                contexts.ToolTipContext(TOOLTIP_COMPONENT.HANGAR))),
        AdvancedDataBuilder(TOOLTIPS_CONSTANTS.NATION_CHANGE_HANGAR_MODULE,
                            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                            module.ModuleBlockTooltipData(
                                contexts.NationChangeHangarContext()),
                            advanced.HangarModuleAdvanced(
                                contexts.NationChangeHangarContext()),
                            condition=_advancedBlockCondition(
                                contexts.NationChangeHangarContext())),
        AdvancedDataBuilder(TOOLTIPS_CONSTANTS.COMPARE_MODULE,
                            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                            module.ModuleBlockTooltipData(
                                contexts.VehCmpConfigurationContext()),
                            advanced.HangarModuleAdvanced(
                                contexts.VehCmpConfigurationContext()),
                            condition=_advancedBlockCondition(
                                contexts.VehCmpConfigurationContext())),
        AdvancedDataBuilder(TOOLTIPS_CONSTANTS.COMPARE_SLOT_MODULE,
                            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                            module.ModuleBlockTooltipData(
                                contexts.VehCmpConfigurationSlotContext()),
                            advanced.HangarModuleAdvanced(
                                contexts.VehCmpConfigurationSlotContext()),
                            condition=_advancedBlockCondition(
                                contexts.VehCmpConfigurationSlotContext())),
        DataBuilder(
            TOOLTIPS_CONSTANTS.VEH_COMPARE_TECHTREE_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.VehCmpModulesContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.PREVIEW_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.PreviewContext()),
            advanced.HangarModuleAdvanced(contexts.PreviewContext()),
            condition=_advancedBlockCondition(contexts.PreviewContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.AWARD_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.AwardContext()),
            advanced.HangarModuleAdvanced(contexts.AwardContext()),
            condition=_advancedBlockCondition(contexts.AwardContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.SHOP_MODULE,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            module.ModuleBlockTooltipData(contexts.ShopContext()),
            advanced.HangarModuleAdvanced(contexts.ShopContext()),
            condition=_advancedBlockCondition(contexts.ShopContext())),
        ShellBuilder(TOOLTIPS_CONSTANTS.SHOP_SHELL,
                     TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                     shell.ShellBlockToolTipData(contexts.ShopContext())),
        AdvancedShellBuilder(
            TOOLTIPS_CONSTANTS.DEFAULT_SHELL,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            shell.ShellBlockToolTipData(contexts.DefaultContext()),
            advanced.HangarShellAdvanced(contexts.DefaultContext()),
            condition=_shellAdvancedBlockCondition(contexts.DefaultContext())),
        ShellBuilder(TOOLTIPS_CONSTANTS.AWARD_SHELL,
                     TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                     shell.ShellBlockToolTipData(contexts.AwardContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.HANGAR_SHELL,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            shell.ShellBlockToolTipData(contexts.HangarContext()),
            advanced.HangarShellAdvanced(contexts.HangarContext()),
            condition=_shellAdvancedBlockCondition(contexts.HangarContext())),
        AdvancedDataBuilder(
            TOOLTIPS_CONSTANTS.NATION_CHANGE_HANGAR_SHELL,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            shell.ShellBlockToolTipData(contexts.NationChangeHangarContext()),
            advanced.HangarShellAdvanced(contexts.NationChangeHangarContext()),
            condition=_nationChangeShellAdvancedBlockCondition(
                contexts.NationChangeHangarContext())),
        AdvancedShellBuilder(TOOLTIPS_CONSTANTS.COMPARE_SHELL,
                             TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                             shell.ShellBlockToolTipData(
                                 contexts.VehCmpConfigurationContext()),
                             advanced.HangarShellAdvanced(
                                 contexts.VehCmpConfigurationContext()),
                             condition=_shellAdvancedBlockCondition(
                                 contexts.VehCmpConfigurationContext())),
        AdvancedShellBuilder(
            TOOLTIPS_CONSTANTS.INVENTORY_SHELL,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            shell.ShellBlockToolTipData(contexts.InventoryContext()),
            advanced.HangarShellAdvanced(contexts.TechMainContext()),
            condition=_shellAdvancedBlockCondition(
                contexts.TechMainContext())),
        AdvancedShellBuilder(
            TOOLTIPS_CONSTANTS.TECH_MAIN_SHELL,
            TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
            shell.ShellBlockToolTipData(contexts.TechMainContext()),
            advanced.HangarShellAdvanced(contexts.TechMainContext()),
            condition=_shellAdvancedBlockCondition(
                contexts.TechMainContext())))
Exemplo n.º 6
0
         contexts.BattleResultMarkOfMasteryContext()).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.CAROUSEL_VEHICLE: {
     'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_UI,
     'method':
     vehicle.VehicleTooltipData(contexts.CarouselContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.INVENTORY_VEHICLE: {
     'tooltip':
     TOOLTIPS_CONSTANTS.VEHICLE_UI,
     'method':
     lambda intCD, sellPrice=0, sellCurrency=0, inventoryCount=0,
     vehicleCount=0: vehicle.VehicleTooltipData(contexts.InventoryContext()
                                                ).buildToolTip(intCD),
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.TECHTREE_VEHICLE: {
     'tooltip': TOOLTIPS_CONSTANTS.VEHICLE_UI,
     'method':
     vehicle.VehicleTooltipData(contexts.TechTreeContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.SHOP_VEHICLE: {
     'tooltip':
     TOOLTIPS_CONSTANTS.VEHICLE_UI,
     'method':
     lambda intCD, inventoryCount=0, vehicleCount=0: vehicle.
Exemplo n.º 7
0
                                                            '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),
                                       'complex': None},
 TOOLTIPS_CONSTANTS.TECH_MAIN_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                       'method': lambda intCD, buyPrice = None, inventoryCount = 0, vehicleCount = 0, slotIdx = 0, eqs = None: module.ModuleBlockTooltipData(contexts.TechMainContext()).buildToolTip(intCD, slotIdx, eqs),
 def __init__(self, tooltipType, linkage):
     super(InventoryVehicleBuilder, self).__init__(
         tooltipType, linkage,
         vehicle.VehicleInfoTooltipData(contexts.InventoryContext()))