/// <summary> /// Returns the ScoreScreen award Stream of the given mvpAwardType and color /// </summary> /// <param name="mvpAwardType">Reference name of award</param> /// <param name="mvpColor">Color of icon</param> /// <param name="awardName"></param> /// <returns></returns> public Stream GetMVPScoreScreenAward(string mvpAwardType, MVPScoreScreenColor mvpColor, out string awardName) { if (MVPScoreScreenAwardByAwardType.ContainsKey(mvpAwardType)) { var award = MVPScoreScreenAwardByAwardType[mvpAwardType]; awardName = award.Item1; return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(award.Item2.Replace("{mvpColor}", mvpColor.ToString().ToLowerInvariant()))); } else { LogReferenceNameNotFound($"MVP score screen award type: {mvpAwardType}"); awardName = mvpAwardType; return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(SetImageStreamString($"{TalentFolderName}.{TalentGenericFolderName}", NoTalentIconFound))); } }
public Stream GetMapBackground(string mapRealName) { try { if (MapStringByMapRealName.ContainsKey(mapRealName)) { return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(MapStringByMapRealName[mapRealName])); } else { LogReferenceNameNotFound($"Map background: {mapRealName}"); return(null); } } catch (IOException) { LogReferenceNameNotFound($"Map background: {mapRealName}"); return(null); } }
public Stream GetHomescreen(string homescreenName) { try { if (HomescreenStringByMapName.ContainsKey(homescreenName)) { return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(HomescreenStringByMapName[homescreenName])); } else { LogReferenceNameNotFound($"Homescreen: {homescreenName}"); return(null); } } catch (IOException) { LogReferenceNameNotFound($"Homescreen: {homescreenName}"); return(null); } }
public Stream GetLeaderboardPortrait() { return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(LeaderboardPortrait)); }
public Stream GetLoadingPortrait() { return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(LoadingPortrait)); }
public Stream GetIcon() { return(HeroesIcons.GetHeroesIconsAssembly().GetManifestResourceStream(Icon)); }