/// <summary> /// 设置升级侠客信息 /// </summary> void SetLevelUpSwordsMan(SwordsMan oSwordsMan, SwordsManToolTipsLogic.SwordsMan_ShowType ShowType) { m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.ORANGE; m_bClearAllSelect = false; m_SwordsManGuid = oSwordsMan.Guid; if (null == oSwordsMan) { LogModule.ErrorLog("SetLevelUpSwordsMan::oSwordsMan is null"); return; } if (SwordsManToolTipsLogic.SwordsMan_ShowType.Equiped == ShowType) { m_PackType = SwordsManContainer.PACK_TYPE.TYPE_EQUIPPACK; } else if (SwordsManToolTipsLogic.SwordsMan_ShowType.UnEquiped == ShowType) { m_PackType = SwordsManContainer.PACK_TYPE.TYPE_BACKPACK; } else { LogModule.ErrorLog("SetLevelUpSwordsMan::ShowType invalid"); return; } if (m_LabelTips != null) { m_LabelTips.text = StrDictionary.GetClientDictionaryString("#{2719}"); } UpdateSwordsManBackPack(); UpdateSwordsManInfo(); }
//强化 智能选择 弹出列表选择 public void OnXiakeChoose() { if (null == m_SwordsMan_ChooseList) { return; } if (null == m_GridTranForm) { LogModule.ErrorLog("OnXiakeChoose::m_GridTranForm is null"); return; } m_bClearAllSelect = false; m_nEatExp = 0; if (m_SwordsMan_ChooseList.value == StrDictionary.GetClientDictionaryString("#{1208}")) { m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.WHITE; } else if (m_SwordsMan_ChooseList.value == StrDictionary.GetClientDictionaryString("#{1209}")) { m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.GREEN; } else if (m_SwordsMan_ChooseList.value == StrDictionary.GetClientDictionaryString("#{1210}")) { m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.BLUE; } else if (m_SwordsMan_ChooseList.value == StrDictionary.GetClientDictionaryString("#{1211}")) { m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.PURPLE; } else if (m_SwordsMan_ChooseList.value == StrDictionary.GetClientDictionaryString("#{2716}")) { //全部 m_curChooseQuality = SwordsMan.SWORDSMANQUALITY.ORANGE; } else { m_bClearAllSelect = true; } if (m_bClearAllSelect) { for (int i = 0; i < m_GridTranForm.childCount; i++) { SwordsManItem oItem = m_GridTranForm.GetChild(i).GetComponent <SwordsManItem>(); if (oItem == null || oItem.m_oSwordsMan == null) { continue; } if (oItem.IsSelect()) { oItem.OnSelectSwordsMan(); } } } else { UpdateSwordsManBackPack(); } ShowSwordsManExp(); //for (int i = 0; i < m_GridTranForm.childCount; i++) //{ // SwordsManItem oItem = m_GridTranForm.GetChild(i).GetComponent<SwordsManItem>(); // if (oItem == null || oItem.m_oSwordsMan == null) // { // continue; // } // if (oItem.m_oSwordsMan.Quality > (int)m_curChooseQuality) // { // oItem.gameObject.SetActive(false); // continue; // } // oItem.gameObject.SetActive(true); // if (m_bClearAllSelect) // { // if (oItem.IsSelect()) // { // oItem.OnSelectSwordsMan(); // } // continue; // } // if (oItem.m_oSwordsMan.Guid == m_oSwordsMan.Guid) // { // if (oItem.IsSelect()) // { // oItem.OnSelectSwordsMan(); // } // continue; // } // if (oItem.m_oSwordsMan.Locked) // { // if (oItem.IsSelect()) // { // oItem.OnSelectSwordsMan(); // } // continue; // } // if (oItem.m_oSwordsMan.Quality > m_oSwordsMan.Quality) // { // if (oItem.IsSelect()) // { // oItem.OnSelectSwordsMan(); // } // continue; // } // if (oItem.IsSelect() == false) // { // oItem.OnSelectSwordsMan(); // } // m_nEatExp += oItem.m_oSwordsMan.GetEatExp(); //} //m_SwordsManGrid.GetComponent<UIGrid>().repositionNow = true; //ShowSwordsManExp(); }