def getTooltipBuilders(): return (TankmanTooltipBuilder(TOOLTIPS_CONSTANTS.TANKMAN, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI), NotRecruitedTankmanTooltipBuilder( TOOLTIPS_CONSTANTS.TANKMAN_NOT_RECRUITED, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI), BattleRoyaleTankmanTooltipBuilder( TOOLTIPS_CONSTANTS.BATTLE_ROYALE_TANKMAN, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI), AdvancedDataBuilder( TOOLTIPS_CONSTANTS.TANKMAN_SKILL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, skill.SkillTooltipDataBlock( contexts.PersonalCaseContext(fieldsToExclude=('count', ))), advanced.SkillTooltipAdvanced( contexts.PersonalCaseContext(fieldsToExclude=('count', ))), condition=_advancedBlockCondition( contexts.PersonalCaseContext( fieldsToExclude=('count', )))), TankmanNewSkillTooltipBuilder( TOOLTIPS_CONSTANTS.TANKMAN_NEW_SKILL, TOOLTIPS_CONSTANTS.TANKMEN_BUY_SKILL_UI), AdvancedDataBuilder( TOOLTIPS_CONSTANTS.PREVIEW_CREW_SKILL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, skill.SkillTooltipDataBlock(contexts.PreviewCaseContext()), advanced.SkillTooltipAdvanced(contexts.PreviewCaseContext())), AdvancedDataBuilder( TOOLTIPS_CONSTANTS.TANKMAN_SKILL_EXTENDED, TOOLTIPS_CONSTANTS.TANKMAN_SKILL_EXTENDED_UI, skill.TankmanSkillTooltipData(contexts.HangarParamContext()), advanced.SkillExtendedTooltipAdvanced( contexts.HangarParamContext())))
def getTooltipBuilders(): return (TankmanTooltipBuilder(TOOLTIPS_CONSTANTS.TANKMAN, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI), AdvancedDataBuilder( TOOLTIPS_CONSTANTS.TANKMAN_SKILL, TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI, skill.SkillTooltipDataBlock( contexts.PersonalCaseContext(fieldsToExclude=('count', ))), advanced.SkillTooltipAdvanced( contexts.PersonalCaseContext( fieldsToExclude=('count', )))), TankmanNewSkillTooltipBuilder( TOOLTIPS_CONSTANTS.TANKMAN_NEW_SKILL, TOOLTIPS_CONSTANTS.TANKMEN_BUY_SKILL_UI), AdvancedDataBuilder( TOOLTIPS_CONSTANTS.TANKMAN_SKILL_EXTENDED, TOOLTIPS_CONSTANTS.TANKMAN_SKILL_EXTENDED_UI, skill.TankmanSkillTooltipData(contexts.HangarParamContext()), advanced.SkillExtendedTooltipAdvanced( contexts.HangarParamContext())))
TOOLTIPS = { TOOLTIPS_CONSTANTS.TANKMAN: { 'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_UI, 'method': lambda invID, isCurrentVehicle=None: tankman.TankmanTooltipData( contexts.TankmanHangarContext()).buildToolTip(invID), 'complex': None }, TOOLTIPS_CONSTANTS.TANKMAN_SKILL: { 'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_SKILL_UI, 'method': skill.SkillTooltipData( contexts.PersonalCaseContext( fieldsToExclude=('count', ))).buildToolTip, 'complex': None }, TOOLTIPS_CONSTANTS.TANKMAN_NEW_SKILL: { 'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_BUY_SKILL_UI, 'method': skill.BuySkillTooltipData(contexts.NewSkillContext()).buildToolTip, 'complex': lambda tooltipData: tooltipData['count'] > 1 or tooltipData['level'] > 0 }, TOOLTIPS_CONSTANTS.BATTLE_STATS_ACHIEVS: { 'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI,
# Embedded file name: scripts/client/gui/Scaleform/daapi/settings/tooltips.py from gui.shared.tooltips import vehicle, tankman, skill, shell, module, achievement, cybersport, common, contexts, battle_consumable, potapovquests, tutorial, fortifications, clans, boosters from gui.Scaleform.daapi.view.lobby.customization.tooltips import BonusTooltip as CustomizationBonusTooltip from gui.Scaleform.daapi.view.lobby.customization.tooltips import ElementTooltip as CustomizationElementTooltip, QuestElementTooltip as CustomizationQuestElementTooltip from gui.Scaleform.genConsts.TOOLTIPS_CONSTANTS import TOOLTIPS_CONSTANTS from gui.shared.tooltips.filter import VehicleFilterTooltip TOOLTIPS = {TOOLTIPS_CONSTANTS.TANKMAN: {'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_UI, 'method': lambda invID, isCurrentVehicle = None: tankman.TankmanTooltipData(contexts.TankmanHangarContext()).buildToolTip(invID), 'complex': None}, TOOLTIPS_CONSTANTS.TANKMAN_SKILL: {'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_SKILL_UI, 'method': skill.SkillTooltipData(contexts.PersonalCaseContext(fieldsToExclude=('count',))).buildToolTip, 'complex': None}, TOOLTIPS_CONSTANTS.TANKMAN_NEW_SKILL: {'tooltip': TOOLTIPS_CONSTANTS.TANKMEN_BUY_SKILL_UI, 'method': skill.BuySkillTooltipData(contexts.NewSkillContext()).buildToolTip, 'complex': lambda tooltipData: tooltipData['count'] > 1 or tooltipData['level'] > 0}, TOOLTIPS_CONSTANTS.BATTLE_STATS_ACHIEVS: {'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI, 'method': achievement.AchievementTooltipData(contexts.BattleResultContext()).buildToolTip, 'complex': None}, TOOLTIPS_CONSTANTS.ACHIEVEMENT: {'tooltip': TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI, 'method': achievement.AchievementTooltipData(contexts.ProfileContext()).buildToolTip, 'complex': None}, TOOLTIPS_CONSTANTS.MARKS_ON_GUN_ACHIEVEMENT: {'tooltip': TOOLTIPS_CONSTANTS.MARKS_ON_GUN_UI, '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,