public void ToggleSelectItem(List <int> items) { arrowUpDown[0].gameObject.SetActive(false); arrowUpDown[1].gameObject.SetActive(true); //ScView.enabled = false; //buyPackageHead.transform.parent.localPosition = orignalPos; //ScView.GetComponent<UIPanel>().baseClipRegion = orignalRangle; //ScView.GetComponent<UIPanel>().clipOffset = orginalOffset; //ScView.enabled = true; ScView.ResetPosition(); ScView.enabled = false; buyPackageHead.transform.parent.localPosition = orignalPos; ScView.GetComponent <UIPanel>().baseClipRegion = orignalRangle; ScView.GetComponent <UIPanel>().clipOffset = orginalOffset; ScView.enabled = true; ItemsInUserInterface.Clear(); ItemBuyList = items; ItemsInUserInterface = SortItemByPrice(items); UIShop.Instance.itemDestribe.ShowItemDestribe(items.ElementAt(0)); AutoCreateItems(ItemsInUserInterface.Count, buyPackageHead, GameDefine.GameConstDefine.BuyPackItemPath); this.OnShowItemInUserInterface(); OnButtonClickFunc(0); turnPage.Reset(); }
public override void ToggleSelectItem(ShopItemBase from, int item) { if (from == this) { return; } ItemsInUserInterface.Clear(); if (item == 0 || !ConfigReader.CombineXmlInfoDict.ContainsKey(item)) { this.OnShowItemInUserInterface(); return; } SelectSelfCloseOtherSelect(this, -1); ItemsInUserInterface.Add(item); if (item != 0 && ConfigReader.CombineXmlInfoDict[item].un32ChildID1 != 0 && ConfigReader.CombineXmlInfoDict[item].un32ChildID2 != 0) { ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[item].un32ChildID1); ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[item].un32ChildID2); ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[1]].un32ChildID1); ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[1]].un32ChildID2); ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[2]].un32ChildID1); ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[2]].un32ChildID2); } this.OnShowItemInUserInterface(); }
public override void ToggleSelectItem(ShopItemBase from, int item) { if (from == this) { return; } ItemsInUserInterface.Clear(); if (item == 0) { this.OnShowItemInUserInterface(); return; } foreach (var it in ConfigReader.CombineXmlInfoDict) { if (it.Value.un32ChildID1 == item || it.Value.un32ChildID2 == item) { ItemsInUserInterface.Add(it.Key); } } AutoCreateItems(ItemsInUserInterface.Count, afterPackHead, GameDefine.GameConstDefine.AfterPackItemPath); this.OnShowItemInUserInterface(); }