示例#1
0
     '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,
     'method': None,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.MARK_OF_MASTERY: {
     'tooltip':
     TOOLTIPS_CONSTANTS.MARK_OF_MASTERY_UI,
     'method':
     achievement.AchievementTooltipData(
         contexts.BattleResultMarkOfMasteryContext()).buildToolTip,
     'complex':
     None
def getTooltipBuilders():
    return (builders.DataBuilder(TOOLTIPS_CONSTANTS.BATTLE_STATS_ACHIEVS, TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI, achievement.AchievementTooltipData(contexts.BattleResultContext())),
     builders.DataBuilder(TOOLTIPS_CONSTANTS.BATTLE_STATS_MARKS_ON_GUN_ACHIEVEMENT, TOOLTIPS_CONSTANTS.MARKS_ON_GUN_UI, achievement.AchievementTooltipData(contexts.BattleResultMarksOnGunContext())),
     builders.DataBuilder(TOOLTIPS_CONSTANTS.ACHIEVEMENT, TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI, achievement.AchievementTooltipData(contexts.ProfileContext())),
     builders.DataBuilder(TOOLTIPS_CONSTANTS.MARKS_ON_GUN_ACHIEVEMENT, TOOLTIPS_CONSTANTS.MARKS_ON_GUN_UI, achievement.AchievementTooltipData(contexts.ProfileContext())),
     builders.DataBuilder(TOOLTIPS_CONSTANTS.GLOBAL_RATING, TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI, achievement.GlobalRatingTooltipData(contexts.ProfileContext())),
     builders.DataBuilder(TOOLTIPS_CONSTANTS.MARK_OF_MASTERY, TOOLTIPS_CONSTANTS.MARK_OF_MASTERY_UI, achievement.AchievementTooltipData(contexts.BattleResultMarkOfMasteryContext(fieldsToExclude=('showCondSeparator',)))),
     builders.SimpleBuilder('achievementAttr', TOOLTIPS_CONSTANTS.ACHIEVEMENT_UI))