少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-08 1a337e7d194dcd090c65159079b9a1d28da30f98
3335 代码整理
7个文件已修改
59 ■■■■■ 已修改文件
Lua/Gen/SnxxzUIItemTipsModelWrap.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/EquipTipUtility.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/EquipTipWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/ItemTipWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/BagWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/DepotWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUIItemTipsModelWrap.cs
@@ -528,10 +528,6 @@
                {
                    Snxxz.UI.ItemAttrData _attrData = (Snxxz.UI.ItemAttrData)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemAttrData));
                    
                    gen_to_be_invoked.SetDepotTipsBtn( _attrData );
                    return 0;
                }
                
System/ItemTip/EquipTipUtility.cs
@@ -229,7 +229,7 @@
                baseInfo = GetBaseInfo(guid),
                baseProperty = GetBaseProperty(guid),
                legendProperty = GetLegendProperty(guid),
                skillInfo=GetSkillInfo(item.itemId),
                skillInfo = GetSkillInfo(item.itemId),
                suitInfo = GetSuitInfo(guid),
                starInfo = GetStarInfo(item.itemId),
                strengthenProperty = GetStrengthenProperty(guid),
@@ -317,6 +317,9 @@
                    break;
                case ItemOperateType.putAway:
                    ItemOperateUtility.Instance.PutAway(guid);
                    break;
                case ItemOperateType.putIn:
                    ItemOperateUtility.Instance.PutInWareHouse(guid);
                    break;
                case ItemOperateType.putOut:
                    ItemOperateUtility.Instance.TakeOutFromWarehouse(guid);
@@ -775,6 +778,22 @@
            var operates = new List<ItemOperateType>();
            var packType = item.packType;
            if (WindowCenter.Instance.IsOpen("DepotWin"))
            {
                switch (packType)
                {
                    case PackType.Warehouse:
                        operates.Add(ItemOperateType.putOut);
                        break;
                    default:
                        operates.Add(ItemOperateType.putIn);
                        break;
                }
                return operates;
            }
            switch (packType)
            {
                case PackType.Equip:
System/ItemTip/EquipTipWin.cs
@@ -282,6 +282,9 @@
                    case ItemOperateType.putOut:
                        this.title.text = "取出";
                        break;
                    case ItemOperateType.putIn:
                        this.title.text = "放入";
                        break;
                    default:
                        this.title.text = "";
                        break;
System/ItemTip/ItemTipWin.cs
@@ -173,6 +173,9 @@
                    case ItemOperateType.putOut:
                        this.m_Title.text = "取出";
                        break;
                    case ItemOperateType.putIn:
                        this.m_Title.text = "放入";
                        break;
                    default:
                        this.m_Title.text = "";
                        break;
System/KnapSack/Logic/ItemTipsModel.cs
@@ -655,17 +655,6 @@
            }
        }
        /// <summary>
        /// 设置仓库弹框按钮
        /// </summary>
        /// <param name="attrData"></param>
        public void SetDepotTipsBtn(ItemAttrData attrData)
        {
            if (attrData == null) return;
            attrData.SetTipsFuncBtn(ItemOperateType.putOut, (ItemWinBtnType, ItemAttrData) => { ItemOperateUtility.Instance.TakeOutFromWarehouse( attrData.guid); });
        }
        public void SetDogzItemBtn(ItemAttrData attrData)
        {
            if (attrData == null) return;
@@ -709,19 +698,6 @@
                });
            }
        }
        /// <summary>
        /// 设置仓库弹框按钮
        /// </summary>
        /// <param name="attrData"></param>
        public void SetDepotBagTipsBtn(ItemAttrData attrData)
        {
            if (attrData == null) return;
            attrData.SetTipsFuncBtn(ItemOperateType.putIn,
                (ItemWinBtnType, ItemAttrData) => { ItemOperateUtility.Instance.PutInWareHouse(attrData.guid); }
                );
        }
        /// <summary>
System/KnapSack/New/BagWin.cs
@@ -252,11 +252,8 @@
                    {
                        gridCell.itemCellBtn.onceClick = (int info) =>
                        {
                            itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
                            itemTipsModel.SetDepotBagTipsBtn(itemTipsModel.curAttrData);
                            itemTipsModel.ShowUICtrl();
                        };
                        gridCell.itemCellBtn.doubleClick = () =>
                          {
System/KnapSack/New/DepotWin.cs
@@ -184,7 +184,6 @@
                    gridCell.itemCellBtn.onceClick = (int info) =>
                      {
                          itemTipsModel.SetItemTipsModel(PackType.Warehouse, itemModel.guid, false, true);
                          itemTipsModel.SetDepotTipsBtn(itemTipsModel.curAttrData);
                          itemTipsModel.ShowUICtrl();
                      };
                    gridCell.itemCellBtn.doubleClick = () =>