| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220 | 
							- using UI.DressUp;
 
- using FairyGUI;
 
- using UnityEngine;
 
- using System.Collections.Generic;
 
- using System;
 
- using ET;
 
- using System.Collections;
 
- namespace GFGGame
 
- {
 
-     public class DressUpFightView : BaseView
 
-     {
 
-         private UI_DressUpFightUI _ui;
 
-         private int _fightID;
 
-         private int _levelID;
 
-         private float listType1X = 0;
 
-         private float partsListX = 0;
 
-         private DressUpListType currentListType;
 
-         private int[] _currentList2;
 
-         private GameObject _scenePrefab;
 
-         private GameObject _sceneObject;
 
-         private List<int> _currentList3 = new List<int>();
 
-         private List<int> _currentList4 = new List<int>();
 
-         private int _currentMenuType;
 
-         private int _currentSuitId;
 
-         private StoryLevelCfg _levelCfg;
 
-         private StoryFightCfg _fightCfg;
 
-         private const int SORT_BY_HIGH_SCORE = 0;
 
-         private const int SORT_BY_LOW_SCORE = 1;
 
-         private int _scoreIndex = SORT_BY_HIGH_SCORE;
 
-         private List<LongPressGesture> _listLongPress = new List<LongPressGesture>();
 
-         public override void Dispose()
 
-         {
 
-             if (_sceneObject != null)
 
-             {
 
-                 GameObject.Destroy(_sceneObject);
 
-                 _sceneObject = null;
 
-             }
 
-             for (int i = 0; i < _listLongPress.Count; i++)
 
-             {
 
-                 _listLongPress[i].Dispose();
 
-             }
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void Init()
 
-         {
 
-             base.Init();
 
-             packageName = UI_DressUpFightUI.PACKAGE_NAME;
 
-             _ui = UI_DressUpFightUI.Create();
 
-             viewCom = _ui.target;
 
-             isfullScreen = true;
 
-             _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneDressUpFight"));
 
-             _ui.m_btnClose.width = GRoot.inst.width;
 
-             _ui.m_btnClose.height = GRoot.inst.height;
 
-             _ui.m_btnClose.AddRelation(GRoot.inst, RelationType.Size);
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             _ui.m_btnClose.visible = false;
 
-             _ui.m_grpTips.visible = false;
 
-             _ui.m_btnRepeal.visible = false;
 
-             _ui.m_btnRenewal.visible = false;
 
-             _ui.m_btnSearch.visible = true;
 
-             // _ui.m_comboBox.items = new string[] { "我的套装一", "我的套装二", "我的套装三", "我的套装四", "我的套装五", "我的套装六" };
 
-             _ui.m_partsList.m_comboBoxRarity.items = new string[] { "高分优先", "低分优先" };
 
-             _ui.m_partsListSearch.m_comboBoxRarity.items = new string[] { "高分优先", "低分优先" };
 
-             InitLists();
 
-             _ui.m_partsList.m_comboBoxRarity.onChanged.Add(OnComboBoxRarityChanged);
 
-             _ui.m_partsListSearch.m_comboBoxRarity.onChanged.Add(OnSearchComboBoxRarityChanged);
 
-             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
 
-             _ui.m_btnHome.onClick.Add(OnClickBtnHome);
 
-             // _ui.m_btnClothingShop.onClick.Add(OnClickBtnClothingShop);
 
-             // _ui.m_comboBox.onChanged.Add(OnComboBoxChanged);
 
-             _ui.m_comListType1.m_listType.onClickItem.Add(OnClickListType1Item);
 
-             _ui.m_comListType2.m_listType.onClickItem.Add(OnClickListType2Item);
 
-             _ui.m_partsList.m_list.onClickItem.Add(OnClickPartsListItem);
 
-             _ui.m_partsList2.m_list.onClickItem.Add(OnClickSuitPartsListItem);
 
-             _ui.m_partsListSearch.m_list.onClickItem.Add(OnClickPartsListItem);
 
-             _ui.m_touchPad.onClick.Add(OnTouchPad);
 
-             _ui.m_btnHint.onClick.Add(OnClickBtnHint);
 
-             // _ui.m_btnGuide.onClick.Add(OnTouchPad);
 
-             _ui.m_btnClose.onClick.Add(OnClickBtnClose);
 
-             _ui.m_btnDelete.onClick.Add(OnClickBtnDelete);
 
-             _ui.m_btnNext.onClick.Add(OnClickBtnNext);
 
-             _ui.m_btnRecommend.onClick.Add(OnClickBtnRecommend);
 
-             _ui.m_btnSearch.onClick.Add(OnClickBtnSearch);
 
-             _ui.m_btnAutoPlay.onClick.Add(OnClickBtnAutoPlay);
 
-             _ui.m_compNeed.target.onClick.Add(OnClickComNeed);
 
-             _ui.m_compNeed.m_listTag.itemRenderer = RenderListTagItem;
 
-             // _ui.m_btnShow.onClick.Add(OnClickBtnShow);
 
-             // _ui.m_btnHide.onClick.Add(OnClickBtnHide);
 
-             // _ui.m_loaShow.onClick.Add(OnClickLoaShow);
 
-             // _ui.m_btnHide.visible = false;
 
-             // EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdatePartsListSort);
 
-             _ui.m_partsList2.m_comboBoxRarity.visible = false;
 
-             _ui.m_partsList2.m_imgTop.visible = true;
 
-             _ui.m_partsList.m_imgTop.visible = false;
 
-         }
 
-         protected override void AddEventListener()
 
-         {
 
-             base.AddEventListener();
 
-             EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
 
-             EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
 
-             EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
 
-             // EventAgent.AddEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             _ui.m_loaGuide.visible = true;
 
-             InstanceZonesDataManager.usedRecommend = false;
 
-             // _ui.m_comboBox.title = "我的套装";
 
-             _ui.m_txtRecommendCount.SetVar("v1", "" + GameGlobal.myNumericComponent.GetAsInt(ET.NumericType.RecommendCount)).FlushVars();
 
-             _ui.m_txtRecommendCount.SetVar("v2", GlobalCfgArray.globalCfg.recommendCount.ToString()).FlushVars();
 
-             _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex;
 
-             _ui.m_btnAutoPlay.selected = FightDataManager.Instance.autoPlay;
 
-             _ui.m_btnAutoPlay.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(ConstFunctionId.FUNCTION_AUTOPLAY_FIGHT, false);
 
-             _ui.m_btnRecommend.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(ConstFunctionId.FUNCTION_AUTOPLAY_FIGHT, false); ;
 
-             _levelID = (int)viewData;
 
-             InstanceZonesDataManager.currentLevelCfgId = _levelID;
 
-             _levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
 
-             _fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
 
-             if (_levelCfg.type == ConstInstanceZonesType.Field)
 
-             {
 
-                 _fightCfg.scoreType = FieldDataManager.Instance.fieldInfos.theme;
 
-                 _ui.m_btnAutoPlay.visible = false;
 
-             }
 
-             InstanceZonesDataManager.FightScene = _levelCfg.type;
 
-             _ui.m_compNeed.target.visible = _fightCfg.needItemId > 0 || _fightCfg.needSuitId > 0 || _fightCfg.needTagsArr.Length > 0;
 
-             if (_ui.m_compNeed.target.visible)
 
-             {
 
-                 _ui.m_compNeed.m_c1.selectedIndex = 0;
 
-                 if (_fightCfg.needItemId > 0)
 
-                 {
 
-                     _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetItemName(_fightCfg.needItemId);
 
-                     _ui.m_compNeed.target.data = _fightCfg.needItemId;
 
-                     _ui.m_compNeed.m_imgGot.visible = ItemDataManager.GetItemNum(_fightCfg.needItemId) > 0;
 
-                 }
 
-                 else if (_fightCfg.needSuitId > 0)
 
-                 {
 
-                     _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetSuitName(_fightCfg.needSuitId);
 
-                     _ui.m_compNeed.target.data = _fightCfg.needSuitId;
 
-                     _ui.m_compNeed.m_imgGot.visible = DressUpMenuSuitDataManager.CheckHaveSuit(_fightCfg.needSuitId);
 
-                 }
 
-                 else
 
-                 {
 
-                     _ui.m_compNeed.m_c1.selectedIndex = 1;
 
-                     _ui.m_compNeed.m_listTag.numItems = _fightCfg.needTagsArr.Length;
 
-                     _ui.m_compNeed.m_imgGot.visible = false;
 
-                 }
 
-             }
 
-             InstanceZonesDataManager.currentScoreType = _fightCfg.scoreType;
 
-             //一级菜单
 
-             _ui.m_comListType1.m_listType.RemoveChildrenToPool();
 
-             _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 3;
 
-             //_ui.m_comListType1.m_listType1.ResizeToFit(_ui.m_listType1.numItems);
 
-             float maxHeight = _ui.target.height - _ui.m_comListType1.m_listType.y - DressUpView.BOTTOM_BLANK;
 
-             if (_ui.m_comListType1.m_listType.height > maxHeight)
 
-             {
 
-                 _ui.m_comListType1.m_listType.height = maxHeight;
 
-             }
 
-             _ui.m_comListType1.target.x = _ui.target.width;
 
-             _ui.m_comListType2.target.x = _ui.target.width;
 
-             _ui.m_partsList.target.x = _ui.target.width;
 
-             _ui.m_partsList2.target.x = _ui.target.width;
 
-             _ui.m_scoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
 
-             this.showListType1();
 
-             if (_sceneObject == null)
 
-             {
 
-                 _sceneObject = GameObject.Instantiate(_scenePrefab);
 
-                 MyDressUpHelper.dressUpObj.setSceneObj(_sceneObject, false, false);
 
-                 MyDressUpHelper.dressUpObj.PutOnDefaultDressUpData();
 
-             }
 
-             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
 
-             UpdateScore();
 
-             SendLog();
 
-             Timers.inst.AddUpdate(CheckGuide);
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-             _ui.m_btnClose.visible = false;
 
-             _ui.m_grpTips.visible = false;
 
-             if (_sceneObject != null)
 
-             {
 
-                 GameObject.Destroy(_sceneObject);
 
-                 _sceneObject = null;
 
-             }
 
-             _fightCfg = null;
 
-             _levelCfg = null;
 
-             DressUpMenuItemDataManager.Clear();
 
-             Timers.inst.Remove(CheckGuide);
 
-         }
 
-         protected override void RemoveEventListener()
 
-         {
 
-             base.RemoveEventListener();
 
-             EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
 
-             EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdateSerch);
 
-             EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdateSerch);
 
-             // EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
 
-         }
 
-         private void OnClickBtnBack()
 
-         {
 
-             AlertUI.Show("是否确定退出?")
 
-             .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
 
-             {
 
-                 if (_levelCfg.type == ConstInstanceZonesType.Studio && _levelCfg.subType != ConstInstanceZonesSubType.Hard3)
 
-                 {
 
-                     ViewManager.Show(StudioDataManager.Instance.VIEW_NAME, StudioDataManager.Instance.PROPERTY_SELECT_INDEX, ViewManager.GetGoBackDatas(StudioDataManager.Instance.VIEW_NAME));
 
-                 }
 
-                 else if (_levelCfg.type == ConstInstanceZonesType.Studio && _levelCfg.subType == ConstInstanceZonesSubType.Hard3)
 
-                 {
 
-                     ViewManager.Show<StudioFilingView>(null, ViewManager.GetGoBackDatas(typeof(StudioFilingView).FullName));
 
-                 }
 
-                 else if (_levelCfg.type == ConstInstanceZonesType.Field)
 
-                 {
 
-                     ViewManager.GoBackFrom(ViewName.DRESS_UP_FIGHT_VIEW);
 
-                 }
 
-                 else
 
-                 {
 
-                     // ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_VIEW);
 
-                     ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, _levelCfg.chapterId);//, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW }
 
-                 }
 
-                 //MyDressUpHelper.dressUpObj.TakeOffAll();
 
-                 this.Hide();
 
-             });
 
-             // ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, StoryDataManager.currentChapter);
 
-         }
 
-         private void OnClickBtnHome()
 
-         {
 
-             AlertUI.Show("是否返回?")
 
-            .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
 
-            {
 
-                //MyDressUpHelper.dressUpObj.TakeOffAll();
 
-                GameController.GoBackToMainView();
 
-            });
 
-         }
 
-         private void OnClickBtnClothingShop()
 
-         {
 
-             ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { null, _fightCfg.scoreType }, null, false, true);
 
-         }
 
-         private void OnClickListType1Item(EventContext context)
 
-         {
 
-             // GuideController.HideGuide();
 
-             GObject typeItem = context.data as GObject;
 
-             int order = (int)typeItem.data;
 
-             DressUpMenuItemCfg1 item1 = DressUpMenuItemCfg1Array.Instance.dataArray[order - 1];
 
-             if (item1.subMenusArr.Length > 0)
 
-             {
 
-                 this.showListType2(item1.subMenusArr);
 
-             }
 
-             else
 
-             {
 
-                 if (this.showListParts(item1.type) == false)
 
-                 {
 
-                     PromptController.Instance.ShowFloatTextPrompt("未获得此类部件");
 
-                     return;
 
-                 }
 
-                 this.showListParts(item1.type);
 
-             }
 
-             this.hideListType1();
 
-             UpdateListPartsSelected();
 
-         }
 
-         private void OnClickListType2Item(EventContext context)
 
-         {
 
-             GObject typeItem = context.data as GObject;
 
-             int order = (int)typeItem.data;
 
-             DressUpMenuItemCfg2 item2 = DressUpMenuItemCfg2Array.Instance.dataArray[order - 1];
 
-             if (this.showListParts(item2.type) == false)
 
-             {
 
-                 PromptController.Instance.ShowFloatTextPrompt("未获得此类部件");
 
-                 return;
 
-             }
 
-             this.hideListType2();
 
-         }
 
-         private void OnClickPartsListItem(EventContext context)
 
-         {
 
-             if (ViewManager.isViewOpen(typeof(DressUpItemTipsView).FullName))
 
-             {
 
-                 return;
 
-             }
 
-             GObject listItem = context.data as GObject;
 
-             int id = (int)listItem.data;
 
-             if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-             {
 
-                 this.showListParts2(id);
 
-                 this.hideListParts();
 
-                 MyDressUpHelper.dressUpObj.PutOnItemList(MyDressUpHelper.GetSuitFightItems(id));
 
-                 // MyDressUpHelper.dressUpObj.PutOnSuitCfg(id, false);
 
-             }
 
-             else
 
-             {
 
-                 bool isOrnament = DressUpMenuItemCfg1Array.Instance.CheckIsOrnamentsType(id);
 
-                 bool isDress = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
 
-                 bool isHasSame = MyDressUpHelper.dressUpObj.CheckSameTypeIsOn(id);
 
-                 bool isMaxCount = MyDressUpHelper.GetCurrentOrnamentCount() >= GlobalCfgArray.globalCfg.dressLimitCount;
 
-                 if (isOrnament && !isDress && !isHasSame && isMaxCount)
 
-                 {
 
-                     PromptController.Instance.ShowFloatTextPrompt("饰品穿戴数量已达上限");
 
-                     return;
 
-                 }
 
-                 MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
 
-             }
 
-             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
 
-             UpdateSearchListPartsSelected();
 
-             UpdateListPartsSelected();
 
-             UpdateListSuitPartsSelected();
 
-             UpdateScore();
 
-         }
 
-         private void OnClickSuitPartsListItem(EventContext context)
 
-         {
 
-             if (ViewManager.isViewOpen(typeof(DressUpItemTipsView).FullName))
 
-             {
 
-                 return;
 
-             }
 
-             GObject listItem = (GObject)context.data as GObject;
 
-             int id = (int)listItem.data;
 
-             bool isOrnament = DressUpMenuItemCfg1Array.Instance.CheckIsOrnamentsType(id);
 
-             bool isDress = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
 
-             bool isHasSame = MyDressUpHelper.dressUpObj.CheckSameTypeIsOn(id);
 
-             bool isMaxCount = MyDressUpHelper.GetCurrentOrnamentCount() >= GlobalCfgArray.globalCfg.dressLimitCount;
 
-             if (isOrnament && !isDress && !isHasSame && isMaxCount)
 
-             {
 
-                 PromptController.Instance.ShowFloatTextPrompt("饰品穿戴数量已达上限");
 
-                 return;
 
-             }
 
-             MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
 
-             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
 
-             UpdateListSuitPartsSelected();
 
-             UpdateScore();
 
-         }
 
-         private void OnLongPress(EventContext context)
 
-         {
 
-             LongPressGesture gesture = (LongPressGesture)context.sender;
 
-             int itemId = (int)gesture.host.data;
 
-             GoodsItemTipsController.ShowItemTips(itemId);
 
-         }
 
-         private void OnTouchPad()
 
-         {
 
-             if (this.currentListType == DressUpListType.List4)
 
-             {
 
-                 this.hideListParts2();
 
-                 this.showListParts(ConstDressUpItemType.TAO_ZHUANG, true);
 
-             }
 
-             else if (this.currentListType == DressUpListType.List3)
 
-             {
 
-                 if (_currentList2 != null)
 
-                 {
 
-                     this.showListType2(_currentList2);
 
-                 }
 
-                 else
 
-                 {
 
-                     this.showListType1();
 
-                 }
 
-                 this.hideListParts();
 
-             }
 
-             else if (this.currentListType == DressUpListType.List2)
 
-             {
 
-                 this.showListType1();
 
-                 this.hideListType2();
 
-             }
 
-             else if (this.currentListType == DressUpListType.List5)
 
-             {
 
-                 this.showListType1();
 
-                 this.hideSearchListType();
 
-             }
 
-         }
 
-         private void OnClickBtnHint()
 
-         {
 
-             this.ShowTaskHint();
 
-         }
 
-         private void OnClickBtnDelete()
 
-         {
 
-             MyDressUpHelper.dressUpObj.TakeOffAll();
 
-             _ui.m_partsList.m_list.numItems = _currentList3.Count;
 
-             _ui.m_partsList2.m_list.numItems = _currentList4.Count;
 
-             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
 
-             UpdateListPartsSelected();
 
-             UpdateListSuitPartsSelected();
 
-         }
 
-         private void OnClickBtnClose()
 
-         {
 
-             _ui.m_btnClose.visible = false;
 
-             _ui.m_grpTips.visible = false;
 
-         }
 
-         private void OnClickBtnNext()
 
-         {
 
-             if (!MyDressUpHelper.CheckPutOnFinish())
 
-             {
 
-                 AlertUI.Show("只有换好衣服才能出门哦!")
 
-                     .SetRightButton(true, "好的");
 
-                 return;
 
-             }
 
-             if (!CheckHasNeed())
 
-             {
 
-                 AlertUI.Show("未穿戴必需品。").SetRightButton(true, "好的");
 
-                 return;
 
-             }
 
-             var levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
 
-             if (RoleDataManager.power < levelCfg.power)
 
-             {
 
-                 ItemUtil.AddPower("体力不足", OnClickBtnPhotograph);
 
-                 return;
 
-             }
 
-             OnClickBtnPhotograph();
 
-         }
 
-         private bool CheckHasNeed()
 
-         {
 
-             int _suitId = MyDressUpHelper.dressUpObj.suitId;
 
-             bool isNoSuit = _fightCfg.needSuitId > 0 && _suitId != _fightCfg.needSuitId;//需要套装但未穿套装
 
-             bool isDressUpItem = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(_fightCfg.needItemId);
 
-             bool isIncludeItem = _suitId > 0 && Array.IndexOf(SuitCfgArray.Instance.GetCfg(_suitId).partsArr, _fightCfg.needItemId) >= 0;
 
-             bool isNoItem = _fightCfg.needItemId > 0 && !isDressUpItem && !isIncludeItem;
 
-             if (isNoSuit || isNoItem)
 
-             {
 
-                 return false;
 
-             }
 
-             return true;
 
-         }
 
-         private void OnClickBtnPhotograph()
 
-         {
 
-             Timers.inst.StartCoroutine(ScreenShotTex());
 
-         }
 
-         private IEnumerator ScreenShotTex()
 
-         {
 
-             GameObject Role = _sceneObject.transform.Find("Role").gameObject;
 
-             GameObject CopyRoleParent = _sceneObject.transform.Find("CopyRole").gameObject;
 
-             Transform CopyRole = CopyRoleParent.transform.Find("Role");
 
-             if (CopyRole != null)
 
-             {
 
-                 GameObject.DestroyImmediate(CopyRole.gameObject);
 
-             }
 
-             Transform transform = GameObject.Instantiate(Role, CopyRoleParent.transform.position, Quaternion.identity).transform;//实例化物体
 
-             transform.parent = CopyRoleParent.transform;
 
-             transform.name = "Role";
 
-             GameObject gameObject = _sceneObject.transform.Find("FightCamera").gameObject;
 
-             Camera camera = gameObject.GetComponent<Camera>();
 
-             FightDataManager.Instance.RoleTextuex = FightDataManager.Instance.GetPrintscreenNTexture(camera);
 
-             yield return new WaitForEndOfFrame();
 
-             if (CardDataManager.GetCardListByRarity(0).Count > 0)
 
-             {
 
-                 ViewManager.Show<StoryCardChoose>(_fightCfg.scoreType);
 
-             }
 
-             else
 
-             {
 
-                 StartCalculateScore();
 
-             }
 
-         }
 
-         private void StartCalculateScore()
 
-         {
 
-             //不可移动代码位置
 
-             bool hasFightTarget = _fightCfg.targetName != null && _fightCfg.targetName.Length > 0;
 
-             if (_levelCfg.type == ConstInstanceZonesType.Field)
 
-             {
 
-                 FieldFightDataManager.Instance.CurrentCardId = InstanceZonesDataManager.currentCardId;
 
-                 FieldFightDataManager.Instance.CurrentScoreType = InstanceZonesDataManager.currentScoreType;
 
-                 FieldFightDataManager.Instance.currentLevelCfgId = InstanceZonesDataManager.currentLevelCfgId;
 
-             }
 
-             if (hasFightTarget)
 
-             {
 
-                 ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW);
 
-             }
 
-             else
 
-             {
 
-                 ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW);
 
-             }
 
-             this.Hide();
 
-         }
 
-         private void OnClickBtnRecommend()
 
-         {
 
-             if (this.currentListType == DressUpListType.List4)
 
-             {
 
-                 this.hideListParts2();
 
-                 this.showListParts(ConstDressUpItemType.TAO_ZHUANG, true);
 
-             }
 
-             InstanceZonesDataManager.usedRecommend = true;
 
-             // MyDressUpHelper.PutOnRecommendItems();
 
-             MyDressUpHelper.PutOnRecommendItems2();
 
-             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
 
-             UpdateListPartsSelected();
 
-             UpdateListSuitPartsSelected();
 
-             UpdateScore();
 
-             if (!CheckHasNeed())
 
-             {
 
-                 PromptController.Instance.ShowFloatTextPrompt("未拥有必需品");
 
-             }
 
-         }
 
-         private void InitLists()
 
-         {
 
-             _ui.m_comListType2.m_listType.itemRenderer = ListType2Item;
 
-             _ui.m_partsList.m_list.itemRenderer = ListPartsItem;
 
-             _ui.m_partsList2.m_list.itemRenderer = ListParts2Item;
 
-             _ui.m_partsListSearch.m_list.itemRenderer = ListPartsItem;
 
-             listType1X = _ui.m_comListType1.target.x;
 
-             partsListX = _ui.m_partsList.target.x - _ui.m_partsList.target.width;
 
-             //一级菜单
 
-             _ui.m_comListType1.m_listType.itemRenderer = ListType1Item;
 
-         }
 
-         private void showListType1()
 
-         {
 
-             _currentList2 = null;
 
-             currentListType = DressUpListType.List1;
 
-             _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 3;
 
-             GTween.To(_ui.target.width, listType1X, 0.5f)
 
-                 .SetTarget(_ui.m_comListType1.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_comListType1.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void hideListType1()
 
-         {
 
-             GTween.To(listType1X, _ui.target.width, 0.5f)
 
-                 .SetTarget(_ui.m_comListType1.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_comListType1.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void showListType2(int[] menuStrArr = null)
 
-         {
 
-             currentListType = DressUpListType.List2;
 
-             if (menuStrArr != null && menuStrArr.Length > 0)
 
-             {
 
-                 int len = menuStrArr.Length;
 
-                 _currentList2 = menuStrArr.Clone() as int[];
 
-                 _ui.m_comListType2.m_listType.RemoveChildrenToPool();
 
-                 _ui.m_comListType2.m_listType.numItems = len;
 
-                 //_ui.m_listType2.ResizeToFit(_ui.m_listType2.numItems);
 
-                 float maxHeight = _ui.target.height - _ui.m_comListType2.m_listType.y - DressUpView.BOTTOM_BLANK;
 
-                 if (_ui.m_comListType2.m_listType.height > maxHeight)
 
-                 {
 
-                     _ui.m_comListType2.m_listType.height = maxHeight;
 
-                 }
 
-             }
 
-             GTween.To(_ui.target.width, listType1X, 0.5f)
 
-                 .SetTarget(_ui.m_comListType2.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_comListType2.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void hideListType2()
 
-         {
 
-             GTween.To(listType1X, _ui.target.width, 0.5f)
 
-                 .SetTarget(_ui.m_comListType2.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_comListType2.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private bool showListParts(int type, bool selectItem = false)
 
-         {
 
-             _currentMenuType = type;
 
-             UpdatePartsListSort();
 
-             if (_ui.m_partsList.m_list.numItems <= 0) return false;
 
-             _ui.m_partsList.m_list.ResizeToFit(_ui.m_partsList.m_list.numItems);
 
-             float maxHeight = _ui.m_partsList.target.height - _ui.m_partsList.m_list.y;
 
-             if (_ui.m_partsList.m_list.height > maxHeight)
 
-             {
 
-                 _ui.m_partsList.m_list.height = maxHeight;
 
-             }
 
-             if (selectItem)
 
-             {
 
-                 int itemId = MyDressUpHelper.dressUpObj.GetItemIdBuyType(_currentMenuType);
 
-                 if (itemId > 0)
 
-                 {
 
-                     int index = _currentList3.IndexOf(itemId);
 
-                     if (index >= 0 && index < _ui.m_partsList.m_list.numItems)
 
-                     {
 
-                         _ui.m_partsList.m_list.ScrollToView(index);
 
-                     }
 
-                 }
 
-             }
 
-             currentListType = DressUpListType.List3;
 
-             GTween.To(_ui.target.width, partsListX, 0.5f)
 
-                 .SetTarget(_ui.m_partsList)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsList.target.x = t.value.x;
 
-                 });
 
-             UpdateListPartsSelected();
 
-             return true;
 
-         }
 
-         private void OnComboBoxRarityChanged()
 
-         {
 
-             _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex;
 
-             this.UpdatePartsListSort();
 
-         }
 
-         private void OnSearchComboBoxRarityChanged()
 
-         {
 
-             _scoreIndex = _ui.m_partsListSearch.m_comboBoxRarity.selectedIndex;
 
-             this.UpdateSearchList();
 
-         }
 
-         private void UpdatePartsListSort()
 
-         {
 
-             if (_currentMenuType == 0) return;
 
-             if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-             {
 
-                 _currentList3 = DressUpMenuSuitDataManager.GetSuitIDList();
 
-                 if (_scoreIndex == SORT_BY_HIGH_SCORE)
 
-                 {
 
-                     _currentList3 = SuitUtil.SortSuitListByHighScore(_currentList3);
 
-                 }
 
-                 else if (_scoreIndex == SORT_BY_LOW_SCORE)
 
-                 {
 
-                     _currentList3 = SuitUtil.SortSuitListByLowScore(_currentList3);
 
-                 }
 
-                 else
 
-                 {
 
-                     _currentList3.Reverse();
 
-                 }
 
-             }
 
-             else
 
-             {
 
-                 _currentList3 = DressUpMenuItemDataManager.getItemDatasByType(_currentMenuType);
 
-                 if (_scoreIndex == SORT_BY_HIGH_SCORE)
 
-                 {
 
-                     _currentList3 = DressUpMenuItemDataManager.SortItemListByHighScore(_currentList3, true);
 
-                 }
 
-                 else if (_scoreIndex == SORT_BY_LOW_SCORE)
 
-                 {
 
-                     _currentList3 = DressUpMenuItemDataManager.SortItemListByLowScore(_currentList3, true);
 
-                 }
 
-                 else
 
-                 {
 
-                     _currentList3.Reverse();
 
-                 }
 
-             }
 
-             // if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Search)
 
-             // {
 
-             //     _currentList3 = DressUpMenuItemDataManager.DressSearch(_currentList3);
 
-             // }
 
-             // else if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Filter)
 
-             // {
 
-             //     _currentList3 = DressUpMenuItemDataManager.DressFilter(_currentList3);
 
-             // }
 
-             //必穿品放在列表最前面
 
-             if (_fightCfg.needItemId > 0)
 
-             {
 
-                 int index = _currentList3.IndexOf(_fightCfg.needItemId);
 
-                 if (index >= 0)
 
-                 {
 
-                     int item = _currentList3[index];
 
-                     _currentList3.Remove(_currentList3[index]);
 
-                     _currentList3.Insert(0, item);
 
-                 }
 
-             }
 
-             else if (_fightCfg.needSuitId > 0)
 
-             {
 
-                 int index = _currentList3.IndexOf(_fightCfg.needSuitId);
 
-                 if (index >= 0)
 
-                 {
 
-                     int item = _currentList3[index];
 
-                     _currentList3.Remove(_currentList3[index]);
 
-                     _currentList3.Insert(0, item);
 
-                 }
 
-             }
 
-             _ui.m_partsList.m_list.RemoveChildrenToPool();
 
-             _ui.m_partsList.m_list.numItems = _currentList3.Count;
 
-         }
 
-         private void UpdateSuitPartsListSort()
 
-         {
 
-             if (_currentMenuType == 0) return;
 
-             _currentList4 = new List<int>(SuitCfgArray.Instance.GetSuitItems(_currentSuitId, true));
 
-             // if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Search)
 
-             // {
 
-             //     _currentList4 = DressUpMenuItemDataManager.DressSearch(_currentList4);
 
-             // }
 
-             // else if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Filter)
 
-             // {
 
-             //     _currentList4 = DressUpMenuItemDataManager.DressFilter(_currentList4);
 
-             // }
 
-             _ui.m_partsList2.m_list.RemoveChildrenToPool();
 
-             _ui.m_partsList2.m_list.numItems = _currentList4.Count;
 
-         }
 
-         private void hideListParts()
 
-         {
 
-             GTween.To(partsListX, _ui.target.width, 0.5f)
 
-                 .SetTarget(_ui.m_partsList)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsList.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void showListParts2(int suitId)
 
-         {
 
-             _currentSuitId = suitId;
 
-             _ui.m_partsList2.m_comboBoxRarity.items = new string[] { "高稀有度", "低稀有度", "最近获得" };
 
-             this.UpdateSuitPartsListSort();
 
-             _ui.m_partsList2.m_list.ResizeToFit(_ui.m_partsList2.m_list.numItems);
 
-             float maxHeight = _ui.m_partsList2.target.height - _ui.m_partsList2.m_list.y;// - DressUpView.BOTTOM_BLANK;
 
-             if (_ui.m_partsList2.m_list.height > maxHeight)
 
-             {
 
-                 _ui.m_partsList2.m_list.height = maxHeight;
 
-             }
 
-             currentListType = DressUpListType.List4;
 
-             GTween.To(_ui.target.width, partsListX, 0.5f)
 
-                 .SetTarget(_ui.m_partsList2)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsList2.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void hideListParts2()
 
-         {
 
-             _currentMenuType = ConstDressUpItemType.TAO_ZHUANG;
 
-             GTween.To(partsListX, _ui.target.width, 0.5f)
 
-                 .SetTarget(_ui.m_partsList2)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsList2.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void showSearchListType()
 
-         {
 
-             // _currentList2 = null;
 
-             currentListType = DressUpListType.List5;
 
-             GTween.To(_ui.target.width, partsListX, 0.5f)
 
-                 .SetTarget(_ui.m_partsListSearch.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsListSearch.target.x = t.value.x;
 
-                 });
 
-         }
 
-         private void hideSearchListType()
 
-         {
 
-             GTween.To(partsListX, _ui.target.width, 0.5f)
 
-                 .SetTarget(_ui.m_partsListSearch.target)
 
-                 .OnUpdate((GTweener t) =>
 
-                 {
 
-                     _ui.m_partsListSearch.target.x = t.value.x;
 
-                 });
 
-         }
 
-         /*****************************************************************************************************/
 
-         private void UpdateSerch(EventContext context)
 
-         {
 
-             if (context.data.ToString() == ConstMessage.DRESS_SEARCH)
 
-             {
 
-                 _currentList3 = DressUpMenuItemDataManager.DressSearch(false);
 
-             }
 
-             else if (context.data.ToString() == ConstMessage.DRESS_FILTER)
 
-             {
 
-                 _currentList3 = DressUpMenuItemDataManager.DressFilter(false);
 
-             }
 
-             ViewManager.Hide<ModalStatusView>();
 
-             UpdateSearchList();
 
-             if (currentListType != DressUpListType.List5)
 
-             {
 
-                 hideListParts();
 
-                 hideListParts2();
 
-                 hideListType1();
 
-                 hideListType2();
 
-                 showSearchListType();
 
-             }
 
-             _currentMenuType = 0;
 
-         }
 
-         private void UpdateSearchList()
 
-         {
 
-             if (_scoreIndex == SORT_BY_HIGH_SCORE)
 
-             {
 
-                 _currentList3 = DressUpMenuItemDataManager.SortItemListByHighScore(_currentList3, true);
 
-             }
 
-             else if (_scoreIndex == SORT_BY_LOW_SCORE)
 
-             {
 
-                 _currentList3 = DressUpMenuItemDataManager.SortItemListByLowScore(_currentList3, true);
 
-             }
 
-             _currentMenuType = 0;
 
-             _ui.m_partsListSearch.m_list.numItems = _currentList3.Count; ;
 
-         }
 
-         private void ListType1Item(int index, GObject item)
 
-         {
 
-             UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
 
-             DressUpMenuItemCfg1 item1 = DressUpMenuItemCfg1Array.Instance.dataArray[index];
 
-             typeItem.m_icon.url = "ui://DressUp/hz_fenleitu_" + item1.id;
 
-             typeItem.m_txtname.text = item1.name;
 
-             //typeItem.m_imgTitle.url = "ui://DressUp/hz_iconzi_" + item1.id;
 
-             typeItem.target.data = item1.id;
 
-             typeItem.m_imgNeed.visible = ItemUtil.CheckMenuType1(_fightCfg.needItemId, _fightCfg.needSuitId, item1.id);
 
-             typeItem.m_imgNew.visible = DressUpMenuItemDataManager.CheckIsFirstMenuNew(item1.id);
 
-             UI_TypeItem.ProxyEnd();
 
-         }
 
-         private void ListType2Item(int index, GObject item)
 
-         {
 
-             UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
 
-             DressUpMenuItemCfg2 item2 = DressUpMenuItemCfg2Array.Instance.dataArray[_currentList2[index] - 1];
 
-             typeItem.m_icon.url = "ui://DressUp/hz_fenleituej_" + item2.id;
 
-             typeItem.m_txtname.text = item2.name;
 
-             //typeItem.m_imgTitle.url = "ui://DressUp/hz_iconziej_" + item2.id;
 
-             typeItem.target.data = item2.id;
 
-             var subType = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
 
-             typeItem.m_imgNeed.visible = subType == item2.type;
 
-             typeItem.m_imgNew.visible = DressUpMenuItemDataManager.CheckIsSecondMenuNew(item2.id);
 
-             UI_TypeItem.ProxyEnd();
 
-         }
 
-         private void ListPartsItem(int index, GObject item)
 
-         {
 
-             UI_PartsListItem listItem = UI_PartsListItem.Proxy(item);
 
-             int id = (int)_currentList3[index];
 
-             string iconRes = "";
 
-             string partName = "";
 
-             string ext = "png";
 
-             if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-             {
 
-                 SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(id);
 
-                 iconRes = suitCfg.res;
 
-                 partName = suitCfg.name;
 
-                 listItem.m_iconSelected.visible = false;
 
-                 listItem.m_txtScore.text = "" + SuitUtil.GetSuitScore(id);
 
-                 RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false, true);
 
-                 listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
 
-                 listItem.m_imgNew.visible = false;
 
-             }
 
-             else
 
-             {
 
-                 ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
 
-                 iconRes = itemCfg.res;
 
-                 partName = itemCfg.name;
 
-                 listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
 
-                 listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
 
-                 listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
 
-                 bool isNew = DressUpMenuItemDataManager.CheckIsDressUpItemNew(id);
 
-                 listItem.m_imgNew.visible = isNew;
 
-                 if (isNew)
 
-                 {
 
-                     ItemProxy.ReqSetItemRead(id).Coroutine();
 
-                 }
 
-                 RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
 
-                 ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
 
-             }
 
-             if (listItem.target.data == null)
 
-             {
 
-                 LongPressGesture longPressGesture = new LongPressGesture(listItem.target);
 
-                 longPressGesture.once = true;
 
-                 longPressGesture.onAction.Add(OnLongPress);
 
-                 _listLongPress.Add(longPressGesture);
 
-             }
 
-             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
 
-             listItem.m_ScoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
 
-             listItem.m_txtTitle.text = partName;
 
-             listItem.target.data = id;
 
-             listItem.m_imgNeed.visible = _fightCfg.needItemId == id || _fightCfg.needSuitId == id;
 
-             UI_PartsListItem.ProxyEnd();
 
-         }
 
-         private void ListParts2Item(int index, GObject item)
 
-         {
 
-             UI_PartsListItem listItem = UI_PartsListItem.Proxy(item);
 
-             int id = (int)_currentList4[index];
 
-             string iconRes = "";
 
-             string partName = "";
 
-             string ext = "png";
 
-             if (listItem.target.data == null)
 
-             {
 
-                 LongPressGesture longPressGesture = new LongPressGesture(listItem.target);
 
-                 longPressGesture.once = true;
 
-                 longPressGesture.onAction.Add(OnLongPress);
 
-                 _listLongPress.Add(longPressGesture);
 
-             }
 
-             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
 
-             iconRes = itemCfg.res;
 
-             partName = itemCfg.name;
 
-             listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
 
-             listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
 
-             RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
 
-             ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
 
-             listItem.m_ScoreType.visible = true;
 
-             // int mainScore;
 
-             // int mainValuel;
 
-             // ItemDataManager.GetMainScore(id, out mainScore, out mainValuel);
 
-             listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + _fightCfg.scoreType);
 
-             listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, _fightCfg.scoreType, _fightCfg.needTagsArr);
 
-             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
 
-             listItem.m_txtTitle.text = partName;
 
-             listItem.target.data = id;
 
-             // listItem.m_txtScore.visible = false;
 
-             //listItem.m_ScoreType.visible = true;
 
-             listItem.m_imgNeed.visible = false;
 
-             bool isNew = DressUpMenuItemDataManager.CheckIsDressUpItemNew(id);
 
-             listItem.m_imgNew.visible = isNew;
 
-             if (isNew)
 
-             {
 
-                 ItemProxy.ReqSetItemRead(id).Coroutine();
 
-             }
 
-             UI_PartsListItem.ProxyEnd();
 
-         }
 
-         private void UpdateListPartsSelected()
 
-         {
 
-             int count = _ui.m_partsList.m_list.numChildren;
 
-             int suitId = MyDressUpHelper.dressUpObj.suitId;
 
-             for (int i = 0; i < count; i++)
 
-             {
 
-                 UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList.m_list.GetChildAt(i));
 
-                 int id = (int)listItem.target.data;
 
-                 if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-                 {
 
-                     listItem.m_iconSelected.visible = suitId > 0 && id == suitId;
 
-                 }
 
-                 else
 
-                 {
 
-                     bool isPutOn = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴
 
-                     var isSceneType = DressUpMenuItemCfg1Array.Instance.CheckIsSceneType(id);
 
-                     bool isSuit = !isSceneType && suitId > 0 && SuitCfgArray.Instance.GetSuitIdOfItem(id) == suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态)
 
-                     bool isSceneSuit = isSceneType && suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴
 
-                     listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit;
 
-                 }
 
-                 UI_PartsListItem.ProxyEnd();
 
-             }
 
-         }
 
-         private void UpdateSearchListPartsSelected()
 
-         {
 
-             int count = _ui.m_partsListSearch.m_list.numChildren;
 
-             int suitId = MyDressUpHelper.dressUpObj.suitId;
 
-             for (int i = 0; i < count; i++)
 
-             {
 
-                 UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsListSearch.m_list.GetChildAt(i));
 
-                 int id = (int)listItem.target.data;
 
-                 if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-                 {
 
-                     listItem.m_iconSelected.visible = suitId > 0 && id == suitId;
 
-                 }
 
-                 else
 
-                 {
 
-                     bool isPutOn = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴
 
-                     var isSceneType = DressUpMenuItemCfg1Array.Instance.CheckIsSceneType(id);
 
-                     bool isSuit = !isSceneType && suitId > 0 && SuitCfgArray.Instance.GetSuitIdOfItem(id) == suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态)
 
-                     bool isSceneSuit = isSceneType && suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴
 
-                     listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit;
 
-                 }
 
-                 UI_PartsListItem.ProxyEnd();
 
-             }
 
-         }
 
-         private void UpdateListSuitPartsSelected()
 
-         {
 
-             int count = _ui.m_partsList2.m_list.numChildren;
 
-             int suitId = MyDressUpHelper.dressUpObj.suitId;
 
-             for (int i = 0; i < count; i++)
 
-             {
 
-                 UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList2.m_list.GetChildAt(i));
 
-                 int id = (int)listItem.target.data;
 
-                 bool isPutOn = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴
 
-                 var isSceneType = DressUpMenuItemCfg1Array.Instance.CheckIsSceneType(id);
 
-                 bool isSuit = !isSceneType && suitId > 0 && SuitCfgArray.Instance.GetSuitIdOfItem(id) == suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态)
 
-                 bool isSceneSuit = isSceneType && suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴
 
-                 listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit;
 
-                 UI_PartsListItem.ProxyEnd();
 
-             }
 
-         }
 
-         private void ShowTaskHint()
 
-         {
 
-             _ui.m_btnClose.visible = true;
 
-             _ui.m_grpTips.visible = true;
 
-             _ui.m_txtHint.text = _levelCfg.hint;
 
-             if (this._ui.m_txtHint.textHeight > this._ui.m_txtHint.textFormat.size * 2)
 
-             {
 
-                 this._ui.m_txtHint.align = AlignType.Left;
 
-             }
 
-             else
 
-             {
 
-                 this._ui.m_txtHint.align = AlignType.Center;
 
-             }
 
-         }
 
-         private void UpdateScore()
 
-         {
 
-             _ui.m_txtScore.text = "" + FightDataManager.Instance.GetScore(InstanceZonesDataManager.roleData).ToString();
 
-             // GuideController.TryGuideDressUpFightViewBtnNext(_ui.m_btnNext);
 
-         }
 
-         private void OnClickBtnSearch()
 
-         {
 
-             ViewManager.Show<DressFilterView>(false, new object[] { ViewName.DRESS_UP_VIEW });
 
-         }
 
-         private void OnClickBtnAutoPlay()
 
-         {
 
-             FightDataManager.Instance.autoPlay = _ui.m_btnAutoPlay.selected;
 
-         }
 
-         private void OnClickComNeed()
 
-         {
 
-             if (_fightCfg.needItemId <= 0 && _fightCfg.needSuitId <= 0)
 
-             {
 
-                 return;
 
-             }
 
-             if (_fightCfg.needSuitId > 0)
 
-             {
 
-                 ViewManager.Show<SuitPartsDetailView>(_fightCfg.needSuitId, new object[] { typeof(DressUpFightView).FullName, this.viewData });
 
-             }
 
-             else
 
-             {
 
-                 int itemId = (int)_ui.m_compNeed.target.data;
 
-                 object[] sourceDatas = new object[] { itemId, new object[] { ViewName.DRESS_UP_FIGHT_VIEW, this.viewData }, 1 };
 
-                 GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
 
-             }
 
-         }
 
-         private void RenderListTagItem(int index, GObject obj)
 
-         {
 
-             UI.CommonGame.UI_ComTag item = UI.CommonGame.UI_ComTag.Proxy(obj);
 
-             string tag = _fightCfg.needTagsArr[index];
 
-             int tagType = TagCfgArray.Instance.GetCfg(tag).type;
 
-             item.m_txtTag.text = tag;
 
-             item.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tagType);
 
-             UI.CommonGame.UI_ComTag.ProxyEnd();
 
-         }
 
-         private bool CheckListCount(int type)
 
-         {
 
-             if (type == (int)ConstDressUpItemType.TAO_ZHUANG)
 
-             {
 
-                 return DressUpMenuSuitDataManager.GetSuitIDList().Count > 0;
 
-             }
 
-             else
 
-             {
 
-                 return DressUpMenuItemDataManager.getItemDatasByType(type).Count > 0;
 
-             }
 
-         }
 
-         private void SendLog()
 
-         {
 
-             var levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
 
-             switch (levelCfg.type)
 
-             {
 
-                 case ConstInstanceZonesType.Story:
 
-                     LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 2);
 
-                     break;
 
-                 case ConstInstanceZonesType.Studio:
 
-                     StudioCfg studioCfg = StudioCfgArray.Instance.GetCfg(levelCfg.chapterId);
 
-                     if (studioCfg.funId == typeof(StudioMetalView).Name)
 
-                     {
 
-                         LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.JIN_SHU_XIU_FU, 2);
 
-                     }
 
-                     else if (studioCfg.funId == typeof(StudioFabricView).Name)
 
-                     {
 
-                         LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZHI_WU_XIU_FU, 2);
 
-                     }
 
-                     else if (studioCfg.funId == typeof(StudioPropertyView).Name)
 
-                     {
 
-                         LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHU_HUA_XIU_FU, 2);
 
-                     }
 
-                     break;
 
-             }
 
-         }
 
-         private void CheckGuide(object param)
 
-         {
 
-             if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0
 
-              || GuideDataManager.IsGuideFinish(ConstGuideId.START_FIGHT) <= 0
 
-              || GuideDataManager.IsGuideFinish(ConstGuideId.AUTOPLAY_FIGHT) <= 0)
 
-             {
 
-                 UpdateToCheckGuide(null);
 
-             }
 
-             else
 
-             {
 
-                 Timers.inst.Remove(CheckGuide);
 
-             }
 
-             _ui.m_loaGuide.visible = false;
 
-         }
 
-         protected override void UpdateToCheckGuide(object param)
 
-         {
 
-             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
 
-             int buyClothingIndex = 0;
 
-             int buyClothingSubIndex = 0;
 
-             int taozhuangIndex = 0;
 
-             int len = _ui.m_comListType1.m_listType.numChildren;
 
-             for (int i = 0; i < len; i++)
 
-             {
 
-                 UI_TypeItem item = UI_TypeItem.Proxy(_ui.m_comListType1.m_listType.GetChildAt(i));
 
-                 if (item != null)
 
-                 {
 
-                     int menuID = (int)item.target.data;
 
-                     DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
 
-                     if (GuideDataManager.IsGuideFinish(ConstGuideId.START_FIGHT) <= 0 && dressUpMenuItemCfg1.type == ConstDressUpItemType.TAO_ZHUANG)
 
-                     {
 
-                         taozhuangIndex = i;
 
-                         break;
 
-                     }
 
-                     if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0 && _fightCfg.needItemId > 0 && ItemUtil.CheckMenuType1(_fightCfg.needItemId, _fightCfg.needSuitId, dressUpMenuItemCfg1.id))
 
-                     {
 
-                         buyClothingIndex = i;
 
-                         break;
 
-                     }
 
-                 }
 
-                 UI_TypeItem.ProxyEnd();
 
-             }
 
-             buyClothingSubIndex = _currentList3.IndexOf(_fightCfg.needItemId);
 
-             GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.START_FIGHT, 3, "点击相应的分类,可以快速找到服饰。", taozhuangIndex);
 
-             GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.START_FIGHT, 4, "", 0);
 
-             GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.START_FIGHT, 5, "穿着完毕,来验证一下,换上的服饰是否符合需求。");
 
-             // GuideController.TryCompleteGuide(ConstGuideId.START_FIGHT, 5);
 
-             GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 3, "当提示有“必需品”时,需要穿上对应物品才能通关。");
 
-             GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.BUY_CLOTHING, 7, "按照指示就可以找到必需品啦,点击换上吧。", buyClothingIndex);
 
-             GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 8, "", buyClothingSubIndex);
 
-             GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 8);
 
-             GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.FIGHT_TIPS, 1, "这次换装需要获得别人的认可呢。");
 
-             GuideController.TryCompleteGuide(ConstGuideId.FIGHT_TIPS, 1);
 
-             GuideController.TryGuide(_ui.m_btnRecommend, ConstGuideId.AUTOPLAY_FIGHT, 1, "衣服太多难以选择,可以点击这里。");
 
-             GuideController.TryGuide(_ui.m_btnAutoPlay, ConstGuideId.AUTOPLAY_FIGHT, 2, "勾选后,自动进行比拼哦~~");
 
-             GuideController.TryCompleteGuide(ConstGuideId.AUTOPLAY_FIGHT, 2);
 
-         }
 
-         protected override void TryCompleteGuide()
 
-         {
 
-             base.TryCompleteGuide();
 
-             // GuideController.TryCompleteGuide(ConstGuideId.START_FIGHT, 5);
 
-         }
 
-     }
 
- }
 
 
  |