コード例 #1
0
def getTooltipBuilders():
    return (DataBuilder(
        TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES,
        TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES_UI,
        tutorial.CustomizationTypesPacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_SKILLS,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_SKILLS_UI,
                tutorial.PersonalCaseSkillsPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_PERKS,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_PERKS_UI,
                tutorial.PersonalCasePerksPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_ADDITIONAL,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_ADDITIONAL_UI,
                tutorial.PersonalCaseAdditionalPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_AMMUNITION,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_AMMUNITION_UI,
                tutorial.AmmunitionPacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_EQUPMENT,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_EQUPMENT_UI,
                tutorial.EquipmentPacker(contexts.HangarTutorialContext())))
コード例 #2
0
ファイル: tooltips.py プロジェクト: webiumsk/WOT-0.9.17-CT
     )).buildToolTip(intCD, slotIdx, eqs),
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.EFFICIENCY_PARAM: {
     'tooltip': TOOLTIPS_CONSTANTS.FINAL_STSTS_UI,
     'method': common.EfficiencyTooltipData(
         contexts.FinalStatisticContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO: {
     'tooltip':
     TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO_UI,
     'method':
     tutorial.ResearchVehicleInfoPacker(
         contexts.HangarTutorialContext()).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM: {
     'tooltip':
     TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM_UI,
     'method':
     tutorial.ResearchModulesPacker(
         contexts.HangarTutorialContext()).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES: {
     'tooltip':
     TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_UI,
コード例 #3
0
                                  'method': lambda intCD, inventoryCount = 0, vehicleCount = 0: shell.ShellBlockToolTipData(contexts.AwardContext()).buildToolTip(intCD),
                                  'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_SHELL: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                   'method': lambda intCD, historicalBattleID = -1: shell.ShellBlockToolTipData(contexts.HangarContext()).buildToolTip(intCD, historicalBattleID=historicalBattleID),
                                   'complex': None},
 TOOLTIPS_CONSTANTS.INVENTORY_SHELL: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                      'method': lambda intCD, sellPrice = 0, sellCurrency = 0, inventoryCount = 0, vehicleCount = 0: shell.ShellBlockToolTipData(contexts.InventoryContext()).buildToolTip(intCD),
                                      'complex': None},
 TOOLTIPS_CONSTANTS.TECH_MAIN_SHELL: {'tooltip': TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                      'method': lambda intCD, buyPrice = None, inventoryCount = 0, vehicleCount = 0, slotIdx = 0, eqs = None: shell.ShellBlockToolTipData(contexts.TechMainContext()).buildToolTip(intCD, slotIdx, eqs),
                                      'complex': None},
 TOOLTIPS_CONSTANTS.EFFICIENCY_PARAM: {'tooltip': TOOLTIPS_CONSTANTS.FINAL_STSTS_UI,
                                       'method': common.EfficiencyTooltipData(contexts.FinalStatisticContext()).buildToolTip,
                                       'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO_UI,
                                                            'method': tutorial.ResearchVehicleInfoPacker(contexts.HangarTutorialContext()).buildToolTip,
                                                            'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM_UI,
                                                               'method': tutorial.ResearchModulesPacker(contexts.HangarTutorialContext()).buildToolTip,
                                                               'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_UI,
                                                       'method': tutorial.ResearchModulesPackerEx(contexts.HangarTutorialContext()).buildToolTip,
                                                       'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES_UI,
                                                          'method': tutorial.CustomizationTypesPacker(contexts.HangarTutorialContext()).buildToolTip,
                                                          'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_NATIONS: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_NATIONS_UI,
                                              'method': tutorial.NationsPacker(contexts.HangarTutorialContext()).buildToolTip,
                                              'complex': None},
 TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_TREE: {'tooltip': TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_TREE_UI,
                                                    'method': tutorial.ResearchTreePacker(contexts.HangarTutorialContext()).buildToolTip,
コード例 #4
0
def getTooltipBuilders():
    return (DataBuilder(
        TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO,
        TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_VEHICLE_INFO_UI,
        tutorial.ResearchVehicleInfoPacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_PREMIUM_UI,
                tutorial.ResearchModulesPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_MODULES_UI,
                tutorial.ResearchModulesPackerEx(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_CUSTOMIZATION_TYPES_UI,
                tutorial.CustomizationTypesPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_NATIONS,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_NATIONS_UI,
                tutorial.NationsPacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_TREE,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_RESEARCH_TREE_UI,
                tutorial.ResearchTreePacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_SKILLS,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_SKILLS_UI,
                tutorial.PersonalCaseSkillsPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_PERKS,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_PERKS_UI,
                tutorial.PersonalCasePerksPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_ADDITIONAL,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_PERSONAL_CASE_ADDITIONAL_UI,
                tutorial.PersonalCaseAdditionalPacker(
                    contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_AMMUNITION,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_AMMUNITION_UI,
                tutorial.AmmunitionPacker(contexts.HangarTutorialContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_EQUPMENT,
                TOOLTIPS_CONSTANTS.HANGAR_TUTORIAL_EQUPMENT_UI,
                tutorial.EquipmentPacker(contexts.HangarTutorialContext())))