private void RefreshInfo() { CMD_ClearingHouse.exchangeResultInfo = ClassSingleton <ExchangeWebAPI> .Instance.EventExchangeInfoList.SingleOrDefault((GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result x) => x.eventExchangeId == CMD_ClearingHouse.exchangeResultInfo.eventExchangeId); if (CMD_ClearingHouse.exchangeResultInfo == null) { base.SetCloseAction(delegate(int i) { CMD_ClearingHouseTop.instance.Rebuild(); }); this.ClosePanel(true); return; } this.exchangeItemDataList.Clear(); Dictionary <string, string> dictionary = new Dictionary <string, string>(); for (int l = 0; l < CMD_ClearingHouse.exchangeResultInfo.detail.Length; l++) { string assetCategoryId = CMD_ClearingHouse.exchangeResultInfo.detail[l].item.assetCategoryId; string assetValue = CMD_ClearingHouse.exchangeResultInfo.detail[l].item.assetValue; string key = assetCategoryId + assetValue; if (!dictionary.ContainsKey(key) || (dictionary.ContainsKey(key) && dictionary[key] != assetValue)) { dictionary.Add(key, assetValue); this.exchangeItemDataList.Add(CMD_ClearingHouse.exchangeResultInfo.detail[l].item); } } for (int j = 0; j < this.exchangeItemDataList.Count; j++) { if (this.exchangeBaseObject.Count <= j) { break; } this.exchangeConsumeItemNumLabel[j].text = this.exchangeItemDataList[j].count.ToString(); } for (int k = 0; k < this.exchangeItemList.Count; k++) { this.exchangeItemList[k].ResetNum(CMD_ClearingHouse.exchangeResultInfo.detail[k]); this.exchangeItemList[k].SetButton(CMD_ClearingHouse.exchangeResultInfo.detail[k]); } GUIExchangeMenu.instance.ReloadResultInfo(); }
public void ReloadInfo(GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result info) { this.bannerInfo = info; }
public void Init(GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result info) { this.bannerInfo = info; this.ShowGUI(); }