public void OnRemoveBtnClick() { if (delGoodsCount <= 0) { IsPressItemBtn = false; IsPressRemoveBtn = false; return; } delGoodsCount--; LTPartnerEquipDataManager.Instance.removeEquipUpItemNum(Data.ECid); ShowGoodsCount(); SelectEquipEven.ChooseEquipment(); }
public void OnItemBtnClick() { if (Data == null || Data.Num - delGoodsCount <= 0 || JudgeExp()) { IsPressItemBtn = false; IsPressRemoveBtn = false; return; } if (!LTResToolTipController.isOpen) { LTResToolTipController.Show(LTShowItemType.TYPE_GAMINVENTORY, Data.ECid); } delGoodsCount++; LTPartnerEquipDataManager.Instance.addEquipUpItemNum(Data.ECid); ShowGoodsCount(); SelectEquipEven.ChooseEquipment(); }
public void OnLockBtnClick() { LTPartnerEquipDataManager.Instance.RequireLock(data.Eid, !data.isLock, delegate { data = LTPartnerEquipDataManager.Instance.GetEquipmentInfoByEID(data.Eid); if (data == null) { EB.Debug.LogError("LTEquipmentFirstinfo.OnLockBtnClick data is null"); return; } LockIcon.spriteName = data.isLock ? "Equipment_Icon_Suoding" : "Equipment_Icon_Jiesuo"; Hotfix_LT.Messenger.Raise(Hotfix_LT.EventName.OnPartnerEquipChange); if (m_type == 2) { if (LTPartnerEquipDataManager.Instance.UpLevelSelectList.Contains(data.Eid)) { LTPartnerEquipDataManager.Instance.UpLevelSelectList.Remove(data.Eid); } SelectEquipEven.LockBtnClick(data.Eid); SelectEquipEven.ChooseEquipment(); mDMono.transform.parent.GetComponent <UIController>().Close(); } }); }
public void OnBagItemClick() { FusionAudio.PostEvent("UI/General/ButtonClick"); if (Data == null || string.IsNullOrEmpty(Data.ECid)) { return; } if (Data.Eid == 0 && !string.IsNullOrEmpty(Data.ECid)) { UITooltipManager.Instance.DisplayTooltipSrc(Data.ECid, EconomyConstants.System.GENERIC, "default"); return; } if (LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.LevelView) { if (LTPartnerEquipMainController.CurLevelupEid == Data.Eid) { return; } if (isEquipUpItem) { OnItemBtnClick(); return; } if (JudgeExp()) { return; } if (Data.isLock) { var ht = Johny.HashtablePool.Claim(); ht.Add("fromType", 2); ht.Add("eid", Data.Eid); ht.Add("pos", 1); GlobalMenuManager.Instance.Open("LTPartnerEquipmentInfoUI", ht); MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTPartnerEquipCellController_3844")); Johny.HashtablePool.Release(ht); return; } IsSelect = !IsSelect; SelectBG.CustomSetActive(IsSelect); if (IsSelect) { var ht = Johny.HashtablePool.Claim(); ht.Add("fromType", 2); ht.Add("eid", Data.Eid); ht.Add("pos", 1); GlobalMenuManager.Instance.Open("LTPartnerEquipmentInfoUI", ht); if (LTPartnerEquipDataManager.Instance.UpLevelSelectList.Contains(Data.Eid)) { return; } LTPartnerEquipDataManager.Instance.UpLevelSelectList.Add(Data.Eid); } else if (LTPartnerEquipDataManager.Instance.UpLevelSelectList.Contains(Data.Eid)) { LTPartnerEquipDataManager.Instance.UpLevelSelectList.Remove(Data.Eid); } SelectEquipEven.ChooseEquipment(); return; } if (LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.SynthesisView) { var ht = Johny.HashtablePool.Claim(); ht.Add("fromType", 3); ht.Add("eid", Data.Eid); ht.Add("pos", 1); GlobalMenuManager.Instance.Open("LTPartnerEquipmentInfoUI", ht); return; } bool showBelongInfo = false; if (LTPartnerEquipMainController.instance.CurrentEquipmentViewState == LTPartnerEquipMainController.EquipmentViewState.PresetEditView && LTEquipmentBelongInfoViewController.CanShow(Data.Eid)) { GlobalMenuManager.Instance.Open("LTEquipmentBelongInfoView", Data.Eid); showBelongInfo = true; } var hashTable = Johny.HashtablePool.Claim(); hashTable.Add("fromType", 0); hashTable.Add("eid", Data.Eid); hashTable.Add("pos", showBelongInfo ? 3 : 1); GlobalMenuManager.Instance.Open("LTPartnerEquipmentInfoUI", hashTable); }