Example #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()))
Example #2
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())))
Example #3
0
 def __init__(self, tooltipType, linkage):
     super(TechTreeModuleBuilder, self).__init__(tooltipType, linkage, module.ModuleBlockTooltipData(contexts.TechTreeContext()), advanced.HangarModuleAdvanced(contexts.TechTreeContext()))
Example #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())))