public override void Dispose() { Talents.ForEach((talentImage) => talentImage.Dispose()); Talents.Clear(); TalentNames.Clear(); TalentShortTooltips.Clear(); TalentFullTooltips.Clear(); TalentSubInfo.Clear(); base.Dispose(); }
public void SetTalents(ReplayMatchPlayerTalent playerTalentList) { HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName1); var talent1 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName1); var talent4 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName4); var talent7 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName7); var talent10 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName10); var talent13 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName13); var talent16 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName16); var talent20 = HeroesIcons.HeroBuilds().GetHeroInfo(playerTalentList.Character).GetTalent(playerTalentList.TalentName20); Talents.Add(talent1.GetIcon()); Talents.Add(talent4.GetIcon()); Talents.Add(talent7.GetIcon()); Talents.Add(talent10.GetIcon()); Talents.Add(talent13.GetIcon()); Talents.Add(talent16.GetIcon()); Talents.Add(talent20.GetIcon()); TalentNames.Add(talent1.Name); TalentNames.Add(talent4.Name); TalentNames.Add(talent7.Name); TalentNames.Add(talent10.Name); TalentNames.Add(talent13.Name); TalentNames.Add(talent16.Name); TalentNames.Add(talent20.Name); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent1.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent4.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent7.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent10.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent13.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent16.Name}:</c> {talent1.Tooltip.Short}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent20.Name}:</c> {talent1.Tooltip.Short}"); TalentFullTooltips.Add(talent1.Tooltip.Full); TalentFullTooltips.Add(talent4.Tooltip.Full); TalentFullTooltips.Add(talent7.Tooltip.Full); TalentFullTooltips.Add(talent10.Tooltip.Full); TalentFullTooltips.Add(talent13.Tooltip.Full); TalentFullTooltips.Add(talent16.Tooltip.Full); TalentFullTooltips.Add(talent20.Tooltip.Full); TalentSubInfo.Add(talent1.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent4.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent7.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent10.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent13.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent16.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent20.Tooltip.GetTalentSubInfo()); }
public void SetTalents(ReplayMatchPlayerTalent playerTalentList) { Talent talent1 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName1); Talent talent4 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName4); Talent talent7 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName7); Talent talent10 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName10); Talent talent13 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName13); Talent talent16 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName16); Talent talent20 = HeroesIcons.HeroesData(Build).HeroData(playerTalentList.Character).GetTalent(playerTalentList.TalentName20); Talents.Add(talent1.AbilityTalentImage()); Talents.Add(talent4.AbilityTalentImage()); Talents.Add(talent7.AbilityTalentImage()); Talents.Add(talent10.AbilityTalentImage()); Talents.Add(talent13.AbilityTalentImage()); Talents.Add(talent16.AbilityTalentImage()); Talents.Add(talent20.AbilityTalentImage()); TalentNames.Add(talent1.Name); TalentNames.Add(talent4.Name); TalentNames.Add(talent7.Name); TalentNames.Add(talent10.Name); TalentNames.Add(talent13.Name); TalentNames.Add(talent16.Name); TalentNames.Add(talent20.Name); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent1.Name}:</c> {talent1.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent4.Name}:</c> {talent4.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent7.Name}:</c> {talent7.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent10.Name}:</c> {talent10.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent13.Name}:</c> {talent13.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent16.Name}:</c> {talent16.Tooltip?.ShortTooltip?.ColoredText}"); TalentShortTooltips.Add($"<c val=\"FFFFFF\">{talent20.Name}:</c> {talent20.Tooltip?.ShortTooltip?.ColoredText}"); TalentFullTooltips.Add(talent1.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent4.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent7.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent10.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent13.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent16.Tooltip?.FullTooltip?.ColoredText); TalentFullTooltips.Add(talent20.Tooltip?.FullTooltip?.ColoredText); TalentSubInfo.Add(talent1.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent4.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent7.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent10.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent13.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent16.Tooltip.GetTalentSubInfo()); TalentSubInfo.Add(talent20.Tooltip.GetTalentSubInfo()); }