| | |
| | | { |
| | | Snxxz.UI.ItemAttrData _attrData = (Snxxz.UI.ItemAttrData)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemAttrData)); |
| | | |
| | | gen_to_be_invoked.SetDepotTipsBtn( _attrData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | |
| | | 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), |
| | |
| | | break; |
| | | case ItemOperateType.putAway: |
| | | ItemOperateUtility.Instance.PutAway(guid); |
| | | break; |
| | | case ItemOperateType.putIn: |
| | | ItemOperateUtility.Instance.PutInWareHouse(guid); |
| | | break; |
| | | case ItemOperateType.putOut: |
| | | ItemOperateUtility.Instance.TakeOutFromWarehouse(guid); |
| | |
| | | |
| | | 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: |
| | |
| | | case ItemOperateType.putOut: |
| | | this.title.text = "取出"; |
| | | break; |
| | | case ItemOperateType.putIn: |
| | | this.title.text = "放入"; |
| | | break; |
| | | default: |
| | | this.title.text = ""; |
| | | break; |
| | |
| | | case ItemOperateType.putOut: |
| | | this.m_Title.text = "取出"; |
| | | break; |
| | | case ItemOperateType.putIn: |
| | | this.m_Title.text = "放入"; |
| | | break; |
| | | default: |
| | | this.m_Title.text = ""; |
| | | break; |
| | |
| | | }
|
| | | }
|
| | |
|
| | | /// <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;
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | /// <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>
|
| | |
| | | {
|
| | | gridCell.itemCellBtn.onceClick = (int info) =>
|
| | | {
|
| | |
|
| | | itemTipsModel.SetItemTipsModel(PackType.Item, itemModel.guid, false, true);
|
| | | itemTipsModel.SetDepotBagTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | |
|
| | | };
|
| | | gridCell.itemCellBtn.doubleClick = () =>
|
| | | {
|
| | |
| | | gridCell.itemCellBtn.onceClick = (int info) =>
|
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.Warehouse, itemModel.guid, false, true);
|
| | | itemTipsModel.SetDepotTipsBtn(itemTipsModel.curAttrData);
|
| | | itemTipsModel.ShowUICtrl();
|
| | | };
|
| | | gridCell.itemCellBtn.doubleClick = () =>
|