Beispiel #1
0
 def __init__(self, tooltipType, linkage):
     super(ModuleDataBuilder, self).__init__(
         tooltipType,
         linkage,
         module.ModuleBlockTooltipData(contexts.TechMainContext()),
         advanced.HangarModuleAdvanced(contexts.TechMainContext()),
         condition=_advancedBlockCondition(contexts.TechMainContext()))
Beispiel #2
0
 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),
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.HANGAR_MODULE: {
     'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
     'method':
     module.ModuleBlockTooltipData(contexts.HangarContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.PREVIEW_MODULE: {
     'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
     'method':
     module.ModuleBlockTooltipData(contexts.PreviewContext()).buildToolTip,
     'complex': None
 },
Beispiel #3
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())))
Beispiel #4
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())))
Beispiel #5
0
                                        '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),
                                       'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                    'method': module.ModuleBlockTooltipData(contexts.HangarContext()).buildToolTip,
                                    'complex': None},
 TOOLTIPS_CONSTANTS.PREVIEW_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                     'method': module.ModuleBlockTooltipData(contexts.PreviewContext()).buildToolTip,
                                     'complex': None},
 TOOLTIPS_CONSTANTS.TECHTREE_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                      'method': module.ModuleBlockTooltipData(contexts.TechTreeContext()).buildToolTip,
                                      'complex': None},
 TOOLTIPS_CONSTANTS.VEH_COMPARE_TECHTREE_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                                  'method': module.VehCompareModuleBlockTooltipData(contexts.TechTreeContext()).buildToolTip,
                                                  'complex': None},
 TOOLTIPS_CONSTANTS.SHOP_MODULE: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                  'method': lambda intCD, inventoryCount = 0, vehicleCount = 0: module.ModuleBlockTooltipData(contexts.ShopContext()).buildToolTip(intCD),