private void RefreshUI_drawLine(List <List <SItemData> > s, UISprite sp) { if (s == null) { return; } for (int i = 0; i < s.Count; i++) { if (s[i] != null && s[i].Count != 0) { float num = -999999f; float num2 = 999999f; for (int j = 0; j < s[i].Count; j++) { SItemData sItemData = s[i][j]; if (sItemData != null) { ColumnType level = sItemData.Level; string iD = sItemData.ID; if (this.dicSItemCom.ContainsKey(level)) { if (this.dicSItemCom[level].ContainsKey(iD)) { BattleEquip_ShopItem2 battleEquip_ShopItem = this.dicSItemCom[level][iD]; num = Mathf.Max(battleEquip_ShopItem.PosY, num); num2 = Mathf.Min(battleEquip_ShopItem.PosY, num2); } } } } this.RefreshUI_drawLine(sp, num, num2, i); } } }
private void RefreshUI_itemCom() { Dictionary <ColumnType, Dictionary <string, SItemData> > .Enumerator enumerator = this.SItems.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <ColumnType, Dictionary <string, SItemData> > current = enumerator.Current; Dictionary <string, SItemData> .Enumerator enumerator2 = current.Value.GetEnumerator(); while (enumerator2.MoveNext()) { Dictionary <ColumnType, Dictionary <string, BattleEquip_ShopItem2> > arg_40_0 = this.dicSItemCom; KeyValuePair <ColumnType, Dictionary <string, SItemData> > current2 = enumerator.Current; if (arg_40_0.ContainsKey(current2.Key)) { Dictionary <ColumnType, Dictionary <string, BattleEquip_ShopItem2> > arg_60_0 = this.dicSItemCom; KeyValuePair <ColumnType, Dictionary <string, SItemData> > current3 = enumerator.Current; Dictionary <string, BattleEquip_ShopItem2> arg_75_0 = arg_60_0[current3.Key]; KeyValuePair <string, SItemData> current4 = enumerator2.Current; if (arg_75_0.ContainsKey(current4.Key)) { Dictionary <ColumnType, Dictionary <string, BattleEquip_ShopItem2> > arg_95_0 = this.dicSItemCom; KeyValuePair <ColumnType, Dictionary <string, SItemData> > current5 = enumerator.Current; Dictionary <string, BattleEquip_ShopItem2> arg_AA_0 = arg_95_0[current5.Key]; KeyValuePair <string, SItemData> current6 = enumerator2.Current; BattleEquip_ShopItem2 arg_BF_0 = arg_AA_0[current6.Key]; KeyValuePair <string, SItemData> current7 = enumerator2.Current; arg_BF_0.ItemData = current7.Value; } } } } }
private void Awake() { this.template_sItem = Resources.Load <BattleEquip_ShopItem2>("Prefab/UI/BattleEquipment/EquipmentItem2"); this.scrollView = base.transform.FindChild("DragPanel").GetComponent <UIScrollView>(); this.scrollView.considerInactive = false; this.template_verLine[0] = base.transform.Find("DragPanel/Line1/Line").GetComponent <UISprite>(); this.template_verLine[1] = base.transform.Find("DragPanel/Line2/Line").GetComponent <UISprite>(); this.InitMem(); this.msgs = new object[] { ClientC2V.BattleShop_shopItemsChanged, ClientC2V.BattleShop_curShopItemChanged, ClientC2V.BattleShop_curShopItemRouteChanged, ClientC2V.BattleShop_possessItemsChanged, ClientC2V.BattleShop_walletChanged }; }