using UI.DressUp; using FairyGUI; using UnityEngine; using System.Collections.Generic; namespace GFGGame { public class DressUpFightView : BaseView { private UI_DressUpFightUI _ui; private int _fightID; private string _levelID; private float listType1X = 0; private float partsListX = 0; private DressUpListType currentListType; private int[] _currentList2; private GameObject _scenePrefab; private GameObject _sceneObject; private List _currentList3; private int _currentMenuType; 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 bool _guideMenu; private UI_TypeItem listTypeItem_SingleFight; private UI_TypeItem listTypeItem_BuyClothing; public override void Dispose() { if (_scenePrefab != null) { GameObject.Destroy(_scenePrefab); _scenePrefab = null; } UI_TypeItem.ClearProxy(); UI_PartsListItem.ClearProxy(); 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(ResPathUtil.GetPrefabPath("SceneDressUp")); _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_groupTaskHint.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[] { "高分优先", "低分优先" }; InitLists(); _ui.m_partsList.m_comboBoxRarity.onChanged.Add(OnComboBoxRarityChanged); _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_touchPad.onClick.Add(OnTouchPad); _ui.m_btnHint.onClick.Add(OnClickBtnHint); _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_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; _ui.m_loaShow.visible = false; _ui.m_btnShow.visible = false; EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort); EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort); // EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdatePartsListSort); EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore); } protected override void OnShown() { base.OnShown(); StoryDataManager.usedRecommend = false; // _ui.m_comboBox.title = "我的套装"; _ui.m_txtRecommendCount.SetVar("v1", "" + StoryDataManager.recommendCount).FlushVars(); _ui.m_btnRecommend.enabled = StoryDataManager.recommendCount > 0; _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex; _levelID = (string)viewData; _levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID); _fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID); if (!string.IsNullOrEmpty(_fightCfg.music)) { MusicManager.Instance.Play(ResPathUtil.GetMusicPath(_fightCfg.music, "mp3")); } _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; } else if (_fightCfg.needSuitId > 0) { _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetSuitName(_fightCfg.needSuitId); _ui.m_compNeed.target.data = _fightCfg.needSuitId; } else { _ui.m_compNeed.m_c1.selectedIndex = 1; _ui.m_compNeed.m_listTag.numItems = _fightCfg.needTagsArr.Length; } } StoryDataManager.currentScoreType = _fightCfg.scoreType; //一级菜单 _ui.m_comListType1.m_listType.RemoveChildrenToPool(); _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 1; //_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_scoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType; this.showListType1(); if (_sceneObject == null) { _sceneObject = GameObject.Instantiate(_scenePrefab); EquipDataCache.cacher.setSceneObj(_sceneObject); EquipDataCache.cacher.PutOnDefaultSuitSaved(); } UpdateScore(); EventAgent.AddEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore); } protected override void OnHide() { base.OnHide(); if (_sceneObject != null) { GameObject.Destroy(_sceneObject); _sceneObject = null; } EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore); _fightCfg = null; _levelCfg = null; listTypeItem_SingleFight = null; listTypeItem_BuyClothing = null; } private void OnClickBtnBack() { this.Hide(); // ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, StoryDataManager.currentChapter); ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_VIEW); } private void OnClickBtnHome() { 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 { 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]; this.showListParts(item2.type); this.hideListType2(); } private void OnClickPartsListItem(EventContext context) { GObject listItem = context.data as GObject; int id = (int)listItem.data; if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG) { EquipDataCache.cacher.PutOnSuitCfg(id, false, true); } else { EquipDataCache.cacher.TryCancelSuit(id); EquipDataCache.cacher.AddOrRemove(id, true); } UpdateListPartsSelected(); } private void OnTouchPad() { if (this.currentListType == DressUpListType.List3) { if (_currentList2 != null) { this.showListType2(); } else { this.showListType1(); } this.hideListParts(); } else if (this.currentListType == DressUpListType.List2) { this.showListType1(); this.hideListType2(); } } private void OnClickBtnHint() { this.ShowTaskHint(); } private void OnClickBtnDelete() { EquipDataCache.cacher.TakeOffAll(); } private void OnClickBtnClose() { _ui.m_groupTaskHint.visible = false; } private void OnClickBtnNext() { if (EquipDataCache.cacher.score <= 0) { Alert.Show("只有换好衣服才能出门哦~") .SetRightButton(true, "好的"); return; } if (CardDataManager.GetCardDicByRarity(0) != null) { ViewManager.Show(_fightCfg.scoreType); } else { StartCalculateScore(); } } private void StartCalculateScore() { //不可移动代码位置 bool hasFightTarget = _fightCfg.targetName != null && _fightCfg.targetName.Length > 0; this.Hide(); if (hasFightTarget) { ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW); } else { ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW); } } private void OnClickBtnRecommend() { StoryDataManager.usedRecommend = true; EquipDataCache.cacher.PutOnRecommendItems(); } private void InitLists() { _ui.m_comListType2.m_listType.itemRenderer = ListType2Item; _ui.m_partsList.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; 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 void showListParts(int type) { _currentMenuType = type; UpdatePartsListSort(); _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; } 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; }); } private void OnComboBoxRarityChanged() { _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex; this.UpdatePartsListSort(); } 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); } else if (_scoreIndex == SORT_BY_LOW_SCORE) { _currentList3 = DressUpMenuItemDataManager.SortItemListByLowScore(_currentList3); } else { _currentList3.Reverse(); } } if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Search) { _currentList3 = DressUpMenuItemDataManager.DressSearch(_currentList3, _currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG); } else if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Filter) { _currentList3 = DressUpMenuItemDataManager.DressFilter(_currentList3, _currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG); } //必穿品放在列表最前面 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 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 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_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); } 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_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; } 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); } else { ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id); iconRes = itemCfg.res; partName = itemCfg.name; listItem.m_iconSelected.visible = EquipDataCache.cacher.CheckDressUpItemIsOn(id); listItem.m_txtScore.text = "" + DressUpMenuItemDataManager.GetItemScore(id); RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false); ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType); } 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; } private void UpdateListPartsSelected() { int count = _ui.m_partsList.m_list.numChildren; 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 = EquipDataCache.cacher.suitId > 0 && id == EquipDataCache.cacher.suitId; } else { bool isPutOn = EquipDataCache.cacher.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴 bool isSuit = !DressUpMenuItemDataManager.CheckIsSceneType(id) && EquipDataCache.cacher.suitId > 0 && SuitCfgManager.Instance.GetItemSuitId(id) == EquipDataCache.cacher.suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态) bool isSceneSuit = DressUpMenuItemDataManager.CheckIsSceneType(id) && EquipDataCache.cacher.suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴 listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit; } } } private void ShowTaskHint() { _ui.m_groupTaskHint.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 = "" + EquipDataCache.cacher.score; // GuideController.TryGuideDressUpFightViewBtnNext(_ui.m_btnNext); } private void OnClickBtnSearch() { ViewManager.Show(false, new object[] { ViewName.DRESS_UP_VIEW }); } // private void OnClickBtnShow() // { // Timers.inst.Remove(SetBtnShowVisable); // _ui.m_c1.selectedIndex = 0; // _ui.m_btnHide.visible = true; // _ui.m_loaShow.visible = false; // _ui.m_btnShow.visible = false; // } // private void OnClickBtnHide() // { // _ui.m_c1.selectedIndex = 1; // _ui.m_btnHide.visible = false; // _ui.m_btnShow.visible = true; // _ui.m_loaShow.visible = true; // Timers.inst.Add(2f, 1, SetBtnShowVisable); // } // private void OnClickLoaShow() // { // Timers.inst.Remove(SetBtnShowVisable); // _ui.m_btnShow.alpha = 1; // Timers.inst.Add(2f, 1, SetBtnShowVisable); // _ui.m_btnShow.enabled = true; // } private void SetBtnShowVisable(object param) { _ui.m_btnShow.enabled = false; GTween.To(1, 0, 0.3f).SetTarget(_ui.m_btnShow, TweenPropType.Alpha); } private void OnClickComNeed() { if (_fightCfg.needItemId <= 0 && _fightCfg.needSuitId <= 0) { return; } if (_fightCfg.needSuitId > 0) { ViewManager.Show(ViewName.SUIT_GUIDE_VIEW, new object[] { _ui.m_compNeed.target.data, new object[] { ViewName.DRESS_UP_FIGHT_VIEW, this.viewData } }, new object[] { ViewName.DRESS_UP_FIGHT_VIEW, this.viewData }); } else { ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { _ui.m_compNeed.target.data, new object[] { ViewName.DRESS_UP_FIGHT_VIEW, this.viewData } }); } } private void RenderListTagItem(int index, GObject obj) { UI.CommonGame.UI_ListTagItem item = UI.CommonGame.UI_ListTagItem.Proxy(obj); string[] tag = _fightCfg.needTagsArr[index].Split('_'); item.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tag[0]); item.m_txtTag.text = tag[1]; } protected override void UpdateToCheckGuide(object param) { if (!ViewManager.CheckIsTopView(this.viewCom)) return; if (listTypeItem_SingleFight == null && GuideDataManager.GetGuideCountCopy(ConstGuideId.SINGLE_FIGHT) <= 0 || listTypeItem_BuyClothing == null && GuideDataManager.GetGuideCountCopy(ConstGuideId.BUY_CLOTHING) <= 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.GetGuideCountCopy(ConstGuideId.SINGLE_FIGHT) <= 0) { if (dressUpMenuItemCfg1.type == ConstDressUpItemType.LIAN_YI_QUN) { listTypeItem_SingleFight = item; _ui.m_comListType1.m_listType.ScrollToView(i); break; } } else if (GuideDataManager.GetGuideCountCopy(ConstGuideId.BUY_CLOTHING) <= 0) { int type = 0; if (_fightCfg.needItemId > 0) type = ItemUtilCS.GetItemSubType(_fightCfg.needItemId); if (_fightCfg.needSuitId > 0) type = ConstDressUpItemType.TAO_ZHUANG; if (dressUpMenuItemCfg1.type == type) { listTypeItem_BuyClothing = item; _ui.m_comListType1.m_listType.ScrollToView(i); break; } } } } } if (listTypeItem_SingleFight != null) GuideController.TryGuide(listTypeItem_SingleFight.target, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰"); GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "找到这条裙子了,换上看看吧"); GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 5, "接下来验证一下,换上的服饰是否符合需求"); GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 1, "当提示有“必需品”时,需要穿上对应物品才能通关"); if (listTypeItem_BuyClothing != null) GuideController.TryGuide(listTypeItem_BuyClothing.target, ConstGuideId.BUY_CLOTHING, 5, "在相应分类里就可以找到必需品啦"); GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 6, "点击换上吧", true, 0); GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 6); GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.TARGET_FIGHT, 1, "这次换装需要获得别人的认可呢"); } } }