예제 #1
0
    public void DoSmelt()
    {
        if (this.SmeltEquips.Count == 0)
        {
            return;
        }
        List <long> list = new List <long>();

        for (int i = 0; i < this.SmeltEquips.Count; i++)
        {
            BackpackObservableItem backpackObservableItem = this.SmeltEquips[i];
            if (backpackObservableItem.GetIsSelected())
            {
                list.Add(backpackObservableItem.id);
            }
        }
        if (list.get_Count() > 0)
        {
            this.ShowSmeltWillReturn(list);
        }
        else
        {
            UIManagerControl.Instance.ShowToastText("请选择要熔炼的装备");
        }
    }
예제 #2
0
 private void BackpackObservableItemClick(BackpackObservableItem item)
 {
     if (item.ItemRootNullOn)
     {
         return;
     }
     for (int i = 0; i < this.SmeltEquips.Count; i++)
     {
         BackpackObservableItem item2 = this.SmeltEquips.GetItem(i);
         if (item == item2)
         {
             item2.SetIsSelected(!item.GetIsSelected());
         }
     }
 }