public void TrySet14CheckInImage(Image img) { if (this.m_BannerImage == null || img == null) { return; } string text = null; for (int i = 0; i < this.m_BannerImage.ImageListCount; i++) { ResBannerImage resImgInfo = this.m_BannerImage.m_ImageInfoList[i].resImgInfo; if (resImgInfo.dwBannerType == 11u) { text = string.Format("{0}{1}", BannerImageSys.GlobalLoadPath, resImgInfo.szImgUrl); break; } } if (!string.IsNullOrEmpty(text)) { base.StartCoroutine(MonoSingleton <IDIPSys> .GetInstance().DownloadImageByTag(text, 0, delegate(Texture2D text2D, int imageIndex) { if (img == null || text2D == null) { return; } img.SetSprite(Sprite.Create(text2D, new Rect(0f, 0f, (float)text2D.width, (float)text2D.height), new Vector2(0.5f, 0.5f)), ImageAlphaTexLayout.None); }, MonoSingleton <BannerImageSys> .GetInstance().GlobalBannerImagePath, 0)); } }
public void LoadConfigServer() { this.ClearSeverData(); int count = GameDataMgr.svr2BannerImageDict.Count; if (count > 0) { this.m_BannerImage = new BannerImageSys.BannerImage(); this.m_BannerImage.verisoncode = 0; this.m_BannerImage.ImageListCount = count; this.m_BannerImage.m_ImageInfoList = new BannerImageSys.BannerImageInfo[count]; DictionaryView <uint, ResBannerImage> .Enumerator enumerator = GameDataMgr.svr2BannerImageDict.GetEnumerator(); int num = 0; while (enumerator.MoveNext()) { KeyValuePair <uint, ResBannerImage> current = enumerator.Current; ResBannerImage value = current.get_Value(); this.m_BannerImage.m_ImageInfoList[num] = new BannerImageSys.BannerImageInfo(); this.m_BannerImage.m_ImageInfoList[num].resImgInfo = value; this.m_BannerImage.m_ImageInfoList[num].imgLoadSucc = false; num++; } } if (this.m_BannerImage != null) { this.PreloadBannerImage(); } }
private void ProcessNetACC(ResBannerImage resImgInfo) { }
public BannerImageInfo() { this.resImgInfo = new ResBannerImage(); this.imgLoadSucc = false; }