using System; using System.Collections.Generic; using System.Linq; using MoleMole.Config; using UnityEngine; using UnityEngine.UI; using proto; namespace MoleMole { public class StorageEvoPageContext : BasePageContext { public const int MAX_SELECT_NUM = 5; public readonly StorageDataItemBase storageItem; public readonly StorageDataItemBase targetItem; private List _resourceList; private Dictionary _resourceDict; private StorageDataItemBase _beforeEvoItemData; public AvatarDataItem uiEquipOwner; public StorageEvoPageContext(StorageDataItemBase storageItem) { config = new ContextPattern { contextName = "StorageItemDetailPageContext", viewPrefabPath = "UI/Menus/Page/Storage/WeaponEvoPage" }; if (storageItem is StigmataDataItem) { config.viewPrefabPath = "UI/Menus/Page/Storage/StigmataEvoPage"; } this.storageItem = storageItem; targetItem = storageItem.GetEvoStorageItem(); } public override bool OnNotify(Notify ntf) { return false; } public override bool OnPacket(NetPacketV1 pkt) { ushort cmdId = pkt.getCmdId(); if (cmdId == 38) { return OnEquipmenEvoRsp(pkt.getData()); } return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("ActionBtns/OkBtn").GetComponent