DressUpFightView.cs 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031
  1. using UI.DressUp;
  2. using FairyGUI;
  3. using UnityEngine;
  4. using System.Collections.Generic;
  5. using System;
  6. using ET;
  7. namespace GFGGame
  8. {
  9. public class DressUpFightView : BaseView
  10. {
  11. private UI_DressUpFightUI _ui;
  12. private int _fightID;
  13. private int _levelID;
  14. private float listType1X = 0;
  15. private float partsListX = 0;
  16. private DressUpListType currentListType;
  17. private int[] _currentList2;
  18. private GameObject _scenePrefab;
  19. private GameObject _sceneObject;
  20. private List<int> _currentList3 = new List<int>();
  21. private List<int> _currentList4 = new List<int>();
  22. private int _currentMenuType;
  23. private int _currentSuitId;
  24. private StoryLevelCfg _levelCfg;
  25. private StoryFightCfg _fightCfg;
  26. private const int SORT_BY_HIGH_SCORE = 0;
  27. private const int SORT_BY_LOW_SCORE = 1;
  28. private int _scoreIndex = SORT_BY_HIGH_SCORE;
  29. public override void Dispose()
  30. {
  31. if (_sceneObject != null)
  32. {
  33. GameObject.Destroy(_sceneObject);
  34. _sceneObject = null;
  35. }
  36. if (_ui != null)
  37. {
  38. _ui.Dispose();
  39. _ui = null;
  40. }
  41. base.Dispose();
  42. }
  43. protected override void Init()
  44. {
  45. base.Init();
  46. packageName = UI_DressUpFightUI.PACKAGE_NAME;
  47. _ui = UI_DressUpFightUI.Create();
  48. viewCom = _ui.target;
  49. isfullScreen = true;
  50. _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneDressUp"));
  51. _ui.m_btnClose.width = GRoot.inst.width;
  52. _ui.m_btnClose.height = GRoot.inst.height;
  53. _ui.m_btnClose.AddRelation(GRoot.inst, RelationType.Size);
  54. }
  55. protected override void OnInit()
  56. {
  57. base.OnInit();
  58. _ui.m_groupTaskHint.visible = false;
  59. _ui.m_btnRepeal.visible = false;
  60. _ui.m_btnRenewal.visible = false;
  61. _ui.m_btnSearch.visible = true;
  62. // _ui.m_comboBox.items = new string[] { "我的套装一", "我的套装二", "我的套装三", "我的套装四", "我的套装五", "我的套装六" };
  63. _ui.m_partsList.m_comboBoxRarity.items = new string[] { "高分优先", "低分优先" };
  64. InitLists();
  65. _ui.m_partsList.m_comboBoxRarity.onChanged.Add(OnComboBoxRarityChanged);
  66. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  67. _ui.m_btnHome.onClick.Add(OnClickBtnHome);
  68. // _ui.m_btnClothingShop.onClick.Add(OnClickBtnClothingShop);
  69. // _ui.m_comboBox.onChanged.Add(OnComboBoxChanged);
  70. _ui.m_comListType1.m_listType.onClickItem.Add(OnClickListType1Item);
  71. _ui.m_comListType2.m_listType.onClickItem.Add(OnClickListType2Item);
  72. _ui.m_partsList.m_list.onClickItem.Add(OnClickPartsListItem);
  73. _ui.m_partsList2.m_list.onClickItem.Add(OnClickSuitPartsListItem);
  74. _ui.m_touchPad.onClick.Add(OnTouchPad);
  75. _ui.m_btnHint.onClick.Add(OnClickBtnHint);
  76. _ui.m_btnGuide.onClick.Add(OnTouchPad);
  77. _ui.m_btnClose.onClick.Add(OnClickBtnClose);
  78. _ui.m_btnDelete.onClick.Add(OnClickBtnDelete);
  79. _ui.m_btnNext.onClick.Add(OnClickBtnNext);
  80. _ui.m_btnRecommend.onClick.Add(OnClickBtnRecommend);
  81. _ui.m_btnSearch.onClick.Add(OnClickBtnSearch);
  82. _ui.m_btnAutoPlay.onClick.Add(OnClickBtnAutoPlay);
  83. _ui.m_compNeed.target.onClick.Add(OnClickComNeed);
  84. _ui.m_compNeed.m_listTag.itemRenderer = RenderListTagItem;
  85. // _ui.m_btnShow.onClick.Add(OnClickBtnShow);
  86. // _ui.m_btnHide.onClick.Add(OnClickBtnHide);
  87. // _ui.m_loaShow.onClick.Add(OnClickLoaShow);
  88. // _ui.m_btnHide.visible = false;
  89. // EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdatePartsListSort);
  90. _ui.m_partsList2.m_comboBoxRarity.visible = false;
  91. }
  92. protected override void AddEventListener()
  93. {
  94. base.AddEventListener();
  95. EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
  96. EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
  97. EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
  98. EventAgent.AddEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
  99. }
  100. protected override void OnShown()
  101. {
  102. base.OnShown();
  103. InstanceZonesDataManager.usedRecommend = false;
  104. // _ui.m_comboBox.title = "我的套装";
  105. _ui.m_txtRecommendCount.SetVar("v1", "" + GameGlobal.myNumericComponent.GetAsInt(ET.NumericType.RecommendCount)).FlushVars();
  106. _ui.m_txtRecommendCount.SetVar("v2", GlobalCfgArray.globalCfg.recommendCount.ToString()).FlushVars();
  107. _ui.m_btnRecommend.enabled = true;// GameGlobal.myNumericComponent.GetAsInt(ET.NumericType.RecommendCount) > 0;
  108. _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex;
  109. _ui.m_btnAutoPlay.selected = EquipDataCache.cacher.autoPlay;
  110. _ui.m_btnAutoPlay.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(ConstFunctionId.FUNCTION_AUTOPLAY_FIGHT, false);
  111. _levelID = (int)viewData;
  112. InstanceZonesDataManager.currentLevelCfgId = _levelID;
  113. _levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
  114. _fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
  115. if (_levelCfg.type == ConstInstanceZonesType.Field)
  116. {
  117. _fightCfg.scoreType = FieldDataManager.Instance.fieldInfos.theme;
  118. _ui.m_btnAutoPlay.visible = false;
  119. }
  120. _ui.m_compNeed.target.visible = _fightCfg.needItemId > 0 || _fightCfg.needSuitId > 0 || _fightCfg.needTagsArr.Length > 0;
  121. if (_ui.m_compNeed.target.visible)
  122. {
  123. _ui.m_compNeed.m_c1.selectedIndex = 0;
  124. if (_fightCfg.needItemId > 0)
  125. {
  126. _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetItemName(_fightCfg.needItemId);
  127. _ui.m_compNeed.target.data = _fightCfg.needItemId;
  128. }
  129. else if (_fightCfg.needSuitId > 0)
  130. {
  131. _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetSuitName(_fightCfg.needSuitId);
  132. _ui.m_compNeed.target.data = _fightCfg.needSuitId;
  133. }
  134. else
  135. {
  136. _ui.m_compNeed.m_c1.selectedIndex = 1;
  137. _ui.m_compNeed.m_listTag.numItems = _fightCfg.needTagsArr.Length;
  138. }
  139. }
  140. InstanceZonesDataManager.currentScoreType = _fightCfg.scoreType;
  141. //一级菜单
  142. _ui.m_comListType1.m_listType.RemoveChildrenToPool();
  143. _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 1;
  144. //_ui.m_comListType1.m_listType1.ResizeToFit(_ui.m_listType1.numItems);
  145. float maxHeight = _ui.target.height - _ui.m_comListType1.m_listType.y - DressUpView.BOTTOM_BLANK;
  146. if (_ui.m_comListType1.m_listType.height > maxHeight)
  147. {
  148. _ui.m_comListType1.m_listType.height = maxHeight;
  149. }
  150. _ui.m_comListType1.target.x = _ui.target.width;
  151. _ui.m_comListType2.target.x = _ui.target.width;
  152. _ui.m_partsList.target.x = _ui.target.width;
  153. _ui.m_partsList2.target.x = _ui.target.width;
  154. _ui.m_scoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
  155. this.showListType1();
  156. if (_sceneObject == null)
  157. {
  158. _sceneObject = GameObject.Instantiate(_scenePrefab);
  159. EquipDataCache.cacher.setSceneObj(_sceneObject);
  160. EquipDataCache.cacher.PutOnDefaultSuitSaved();
  161. }
  162. UpdateScore();
  163. SendLog();
  164. Timers.inst.AddUpdate(CheckGuide);
  165. }
  166. protected override void OnHide()
  167. {
  168. base.OnHide();
  169. _ui.m_groupTaskHint.visible = false;
  170. if (_sceneObject != null)
  171. {
  172. GameObject.Destroy(_sceneObject);
  173. _sceneObject = null;
  174. }
  175. _fightCfg = null;
  176. _levelCfg = null;
  177. DressUpMenuItemDataManager.Clear();
  178. Timers.inst.Remove(CheckGuide);
  179. }
  180. protected override void RemoveEventListener()
  181. {
  182. base.RemoveEventListener();
  183. EventAgent.RemoveEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
  184. EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
  185. EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
  186. EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
  187. }
  188. private void OnClickBtnBack()
  189. {
  190. Alert.Show("是否确定退出?")
  191. .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
  192. {
  193. if (_levelCfg.type == ConstInstanceZonesType.Studio)
  194. {
  195. ViewManager.Show(StudioDataManager.Instance.VIEW_NAME, new object[] { StudioDataManager.Instance.TYPE_SELECT_INDEX, StudioDataManager.Instance.PROPERTY_SELECT_INDEX }, ViewManager.GetGoBackDatas(StudioDataManager.Instance.VIEW_NAME));
  196. }
  197. else if (_levelCfg.type == ConstInstanceZonesType.Field)
  198. {
  199. ViewManager.GoBackFrom(ViewName.DRESS_UP_FIGHT_VIEW);
  200. }
  201. else
  202. {
  203. // ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_VIEW);
  204. ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, _levelCfg.chapterId, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW });
  205. }
  206. EquipDataCache.cacher.TakeOffAll();
  207. this.Hide();
  208. });
  209. // ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, StoryDataManager.currentChapter);
  210. }
  211. private void OnClickBtnHome()
  212. {
  213. Alert.Show("是否返回?")
  214. .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
  215. {
  216. EquipDataCache.cacher.TakeOffAll();
  217. GameController.GoBackToMainView();
  218. });
  219. }
  220. private void OnClickBtnClothingShop()
  221. {
  222. ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { null, _fightCfg.scoreType }, null, false, true);
  223. }
  224. private void OnClickListType1Item(EventContext context)
  225. {
  226. // GuideController.HideGuide();
  227. GObject typeItem = context.data as GObject;
  228. int order = (int)typeItem.data;
  229. DressUpMenuItemCfg1 item1 = DressUpMenuItemCfg1Array.Instance.dataArray[order - 1];
  230. if (item1.subMenusArr.Length > 0)
  231. {
  232. this.showListType2(item1.subMenusArr);
  233. }
  234. else
  235. {
  236. if (this.showListParts(item1.type) == false)
  237. {
  238. PromptController.Instance.ShowFloatTextPrompt("未获得此类部件");
  239. return;
  240. }
  241. this.showListParts(item1.type);
  242. }
  243. this.hideListType1();
  244. UpdateListPartsSelected();
  245. }
  246. private void OnClickListType2Item(EventContext context)
  247. {
  248. GObject typeItem = context.data as GObject;
  249. int order = (int)typeItem.data;
  250. DressUpMenuItemCfg2 item2 = DressUpMenuItemCfg2Array.Instance.dataArray[order - 1];
  251. if (this.showListParts(item2.type) == false)
  252. {
  253. PromptController.Instance.ShowFloatTextPrompt("未获得此类部件");
  254. return;
  255. }
  256. this.hideListType2();
  257. }
  258. private void OnClickPartsListItem(EventContext context)
  259. {
  260. GObject listItem = context.data as GObject;
  261. int id = (int)listItem.data;
  262. if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
  263. {
  264. this.showListParts2(id);
  265. this.hideListParts();
  266. EquipDataCache.cacher.PutOnSuitCfg(id, false, true);
  267. }
  268. else
  269. {
  270. EquipDataCache.cacher.TryCancelSuit(id);
  271. EquipDataCache.cacher.AddOrRemove(id, true);
  272. }
  273. UpdateListPartsSelected();
  274. UpdateListSuitPartsSelected();
  275. }
  276. private void OnClickSuitPartsListItem(EventContext context)
  277. {
  278. GObject listItem = (GObject)context.data as GObject;
  279. int id = (int)listItem.data;
  280. EquipDataCache.cacher.TryCancelSuit(id);
  281. EquipDataCache.cacher.AddOrRemove(id, true);
  282. UpdateListSuitPartsSelected();
  283. }
  284. private void OnTouchPad()
  285. {
  286. if (this.currentListType == DressUpListType.List4)
  287. {
  288. this.hideListParts2();
  289. this.showListParts(ConstDressUpItemType.TAO_ZHUANG, true);
  290. }
  291. else if (this.currentListType == DressUpListType.List3)
  292. {
  293. if (_currentList2 != null)
  294. {
  295. this.showListType2();
  296. }
  297. else
  298. {
  299. this.showListType1();
  300. }
  301. this.hideListParts();
  302. }
  303. else if (this.currentListType == DressUpListType.List2)
  304. {
  305. this.showListType1();
  306. this.hideListType2();
  307. }
  308. }
  309. private void OnClickBtnHint()
  310. {
  311. this.ShowTaskHint();
  312. }
  313. private void OnClickBtnDelete()
  314. {
  315. EquipDataCache.cacher.TakeOffAll();
  316. _ui.m_partsList.m_list.numItems = _currentList3.Count;
  317. _ui.m_partsList2.m_list.numItems = _currentList4.Count;
  318. }
  319. private void OnClickBtnClose()
  320. {
  321. _ui.m_groupTaskHint.visible = false;
  322. }
  323. private void OnClickBtnNext()
  324. {
  325. if (!EquipDataCache.cacher.CheckPutOnFinish())
  326. {
  327. Alert.Show("只有换好衣服才能出门哦~")
  328. .SetRightButton(true, "好的");
  329. return;
  330. }
  331. int _suitId = DressUpMenuSuitDataManager.CheckCurDressIsSuit(); ;
  332. if (_fightCfg.needItemId > 0 && (_suitId <= 0 && EquipDataCache.cacher.equipDatas.IndexOf(_fightCfg.needItemId) < 0 || _suitId > 0 && Array.IndexOf(SuitCfgArray.Instance.GetCfg(_suitId).partsArr, _fightCfg.needItemId) < 0) || _fightCfg.needSuitId > 0 && _suitId != _fightCfg.needSuitId)
  333. {
  334. Alert.Show("未穿戴必须品~").SetRightButton(true, "好的");
  335. return;
  336. }
  337. if (CardDataManager.GetCardListByRarity(0).Count > 0)
  338. {
  339. ViewManager.Show<StoryCardChoose>(_fightCfg.scoreType);
  340. }
  341. else
  342. {
  343. StartCalculateScore();
  344. }
  345. }
  346. private void StartCalculateScore()
  347. {
  348. //不可移动代码位置
  349. bool hasFightTarget = _fightCfg.targetName != null && _fightCfg.targetName.Length > 0;
  350. if (_levelCfg.type == ConstInstanceZonesType.Field)
  351. {
  352. FieldFightDataManager.Instance.CurrentCardId = InstanceZonesDataManager.currentCardId;
  353. FieldFightDataManager.Instance.CurrentScoreType = InstanceZonesDataManager.currentScoreType;
  354. FieldFightDataManager.Instance.currentLevelCfgId = InstanceZonesDataManager.currentLevelCfgId;
  355. FieldFightDataManager.Instance.equipDatas = EquipDataCache.cacher.equipDatas;
  356. }
  357. if (hasFightTarget)
  358. {
  359. ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW);
  360. }
  361. else
  362. {
  363. ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW);
  364. }
  365. this.Hide();
  366. }
  367. private void OnClickBtnRecommend()
  368. {
  369. if (this.currentListType == DressUpListType.List4)
  370. {
  371. this.hideListParts2();
  372. this.showListParts(ConstDressUpItemType.TAO_ZHUANG, true);
  373. }
  374. EquipDataCache.cacher.TryCancelSuit(_currentSuitId);
  375. InstanceZonesDataManager.usedRecommend = true;
  376. EquipDataCache.cacher.PutOnRecommendItems();
  377. UpdateListPartsSelected();
  378. UpdateListSuitPartsSelected();
  379. }
  380. private void InitLists()
  381. {
  382. _ui.m_comListType2.m_listType.itemRenderer = ListType2Item;
  383. _ui.m_partsList.m_list.itemRenderer = ListPartsItem;
  384. _ui.m_partsList2.m_list.itemRenderer = ListParts2Item;
  385. listType1X = _ui.m_comListType1.target.x;
  386. partsListX = _ui.m_partsList.target.x - _ui.m_partsList.target.width;
  387. //一级菜单
  388. _ui.m_comListType1.m_listType.itemRenderer = ListType1Item;
  389. }
  390. private void showListType1()
  391. {
  392. _currentList2 = null;
  393. currentListType = DressUpListType.List1;
  394. GTween.To(_ui.target.width, listType1X, 0.5f)
  395. .SetTarget(_ui.m_comListType1.target)
  396. .OnUpdate((GTweener t) =>
  397. {
  398. _ui.m_comListType1.target.x = t.value.x;
  399. });
  400. }
  401. private void hideListType1()
  402. {
  403. GTween.To(listType1X, _ui.target.width, 0.5f)
  404. .SetTarget(_ui.m_comListType1.target)
  405. .OnUpdate((GTweener t) =>
  406. {
  407. _ui.m_comListType1.target.x = t.value.x;
  408. });
  409. }
  410. private void showListType2(int[] menuStrArr = null)
  411. {
  412. currentListType = DressUpListType.List2;
  413. if (menuStrArr != null && menuStrArr.Length > 0)
  414. {
  415. int len = menuStrArr.Length;
  416. _currentList2 = menuStrArr.Clone() as int[];
  417. _ui.m_comListType2.m_listType.RemoveChildrenToPool();
  418. _ui.m_comListType2.m_listType.numItems = len;
  419. //_ui.m_listType2.ResizeToFit(_ui.m_listType2.numItems);
  420. float maxHeight = _ui.target.height - _ui.m_comListType2.m_listType.y - DressUpView.BOTTOM_BLANK;
  421. if (_ui.m_comListType2.m_listType.height > maxHeight)
  422. {
  423. _ui.m_comListType2.m_listType.height = maxHeight;
  424. }
  425. }
  426. GTween.To(_ui.target.width, listType1X, 0.5f)
  427. .SetTarget(_ui.m_comListType2.target)
  428. .OnUpdate((GTweener t) =>
  429. {
  430. _ui.m_comListType2.target.x = t.value.x;
  431. });
  432. }
  433. private void hideListType2()
  434. {
  435. GTween.To(listType1X, _ui.target.width, 0.5f)
  436. .SetTarget(_ui.m_comListType2.target)
  437. .OnUpdate((GTweener t) =>
  438. {
  439. _ui.m_comListType2.target.x = t.value.x;
  440. });
  441. }
  442. private bool showListParts(int type, bool selectItem = false)
  443. {
  444. _currentMenuType = type;
  445. UpdatePartsListSort();
  446. if (_ui.m_partsList.m_list.numItems <= 0) return false;
  447. _ui.m_partsList.m_list.ResizeToFit(_ui.m_partsList.m_list.numItems);
  448. float maxHeight = _ui.m_partsList.target.height - _ui.m_partsList.m_list.y;
  449. if (_ui.m_partsList.m_list.height > maxHeight)
  450. {
  451. _ui.m_partsList.m_list.height = maxHeight;
  452. }
  453. if (selectItem)
  454. {
  455. int itemId = EquipDataCache.cacher.GetItemIdBuyType(_currentMenuType);
  456. if (itemId > 0)
  457. {
  458. int index = _currentList3.IndexOf(itemId);
  459. _ui.m_partsList.m_list.ScrollToView(index);
  460. }
  461. }
  462. currentListType = DressUpListType.List3;
  463. GTween.To(_ui.target.width, partsListX, 0.5f)
  464. .SetTarget(_ui.m_partsList)
  465. .OnUpdate((GTweener t) =>
  466. {
  467. _ui.m_partsList.target.x = t.value.x;
  468. });
  469. UpdateListPartsSelected();
  470. return true;
  471. }
  472. private void OnComboBoxRarityChanged()
  473. {
  474. _scoreIndex = _ui.m_partsList.m_comboBoxRarity.selectedIndex;
  475. this.UpdatePartsListSort();
  476. }
  477. private void UpdatePartsListSort()
  478. {
  479. if (_currentMenuType == 0) return;
  480. if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
  481. {
  482. _currentList3 = DressUpMenuSuitDataManager.GetSuitIDList();
  483. if (_scoreIndex == SORT_BY_HIGH_SCORE)
  484. {
  485. _currentList3 = SuitUtil.SortSuitListByHighScore(_currentList3);
  486. }
  487. else if (_scoreIndex == SORT_BY_LOW_SCORE)
  488. {
  489. _currentList3 = SuitUtil.SortSuitListByLowScore(_currentList3);
  490. }
  491. else
  492. {
  493. _currentList3.Reverse();
  494. }
  495. }
  496. else
  497. {
  498. _currentList3 = DressUpMenuItemDataManager.getItemDatasByType(_currentMenuType);
  499. if (_scoreIndex == SORT_BY_HIGH_SCORE)
  500. {
  501. _currentList3 = DressUpMenuItemDataManager.SortItemListByHighScore(_currentList3);
  502. }
  503. else if (_scoreIndex == SORT_BY_LOW_SCORE)
  504. {
  505. _currentList3 = DressUpMenuItemDataManager.SortItemListByLowScore(_currentList3);
  506. }
  507. else
  508. {
  509. _currentList3.Reverse();
  510. }
  511. }
  512. if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Search)
  513. {
  514. _currentList3 = DressUpMenuItemDataManager.DressSearch(_currentList3, _currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG);
  515. }
  516. else if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Filter)
  517. {
  518. _currentList3 = DressUpMenuItemDataManager.DressFilter(_currentList3, _currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG);
  519. }
  520. //必穿品放在列表最前面
  521. if (_fightCfg.needItemId > 0)
  522. {
  523. int index = _currentList3.IndexOf(_fightCfg.needItemId);
  524. if (index >= 0)
  525. {
  526. int item = _currentList3[index];
  527. _currentList3.Remove(_currentList3[index]);
  528. _currentList3.Insert(0, item);
  529. }
  530. }
  531. else if (_fightCfg.needSuitId > 0)
  532. {
  533. int index = _currentList3.IndexOf(_fightCfg.needSuitId);
  534. if (index >= 0)
  535. {
  536. int item = _currentList3[index];
  537. _currentList3.Remove(_currentList3[index]);
  538. _currentList3.Insert(0, item);
  539. }
  540. }
  541. _ui.m_partsList.m_list.RemoveChildrenToPool();
  542. _ui.m_partsList.m_list.numItems = _currentList3.Count;
  543. }
  544. private void UpdateSuitPartsListSort()
  545. {
  546. if (_currentMenuType == 0) return;
  547. _currentList4 = new List<int>(SuitCfgManager.Instance.GetSuitItems(_currentSuitId, true));
  548. if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Search)
  549. {
  550. _currentList4 = DressUpMenuItemDataManager.DressSearch(_currentList4, false);
  551. }
  552. else if (DressUpMenuItemDataManager.dressFilterType == DressFilterType.Filter)
  553. {
  554. _currentList4 = DressUpMenuItemDataManager.DressFilter(_currentList4, false);
  555. }
  556. _ui.m_partsList2.m_list.RemoveChildrenToPool();
  557. _ui.m_partsList2.m_list.numItems = _currentList4.Count;
  558. }
  559. private void hideListParts()
  560. {
  561. GTween.To(partsListX, _ui.target.width, 0.5f)
  562. .SetTarget(_ui.m_partsList)
  563. .OnUpdate((GTweener t) =>
  564. {
  565. _ui.m_partsList.target.x = t.value.x;
  566. });
  567. }
  568. private void showListParts2(int suitId)
  569. {
  570. _currentSuitId = suitId;
  571. _ui.m_partsList2.m_comboBoxRarity.items = new string[] { "高稀有度", "低稀有度", "最近获得" };
  572. this.UpdateSuitPartsListSort();
  573. _ui.m_partsList2.m_list.ResizeToFit(_ui.m_partsList2.m_list.numItems);
  574. float maxHeight = _ui.m_partsList2.target.height - _ui.m_partsList2.m_list.y;// - DressUpView.BOTTOM_BLANK;
  575. if (_ui.m_partsList2.m_list.height > maxHeight)
  576. {
  577. _ui.m_partsList2.m_list.height = maxHeight;
  578. }
  579. currentListType = DressUpListType.List4;
  580. GTween.To(_ui.target.width, partsListX, 0.5f)
  581. .SetTarget(_ui.m_partsList2)
  582. .OnUpdate((GTweener t) =>
  583. {
  584. _ui.m_partsList2.target.x = t.value.x;
  585. });
  586. }
  587. private void hideListParts2()
  588. {
  589. _currentMenuType = ConstDressUpItemType.TAO_ZHUANG;
  590. GTween.To(partsListX, _ui.target.width, 0.5f)
  591. .SetTarget(_ui.m_partsList2)
  592. .OnUpdate((GTweener t) =>
  593. {
  594. _ui.m_partsList2.target.x = t.value.x;
  595. });
  596. }
  597. private void ListType1Item(int index, GObject item)
  598. {
  599. UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
  600. DressUpMenuItemCfg1 item1 = DressUpMenuItemCfg1Array.Instance.dataArray[index];
  601. typeItem.m_icon.url = "ui://DressUp/hz_fenleitu_" + item1.id;
  602. //typeItem.m_imgTitle.url = "ui://DressUp/hz_iconzi_" + item1.id;
  603. typeItem.target.data = item1.id;
  604. typeItem.m_imgNeed.visible = ItemUtil.CheckMenuType1(_fightCfg.needItemId, _fightCfg.needSuitId, item1.id);
  605. UI_TypeItem.ProxyEnd();
  606. }
  607. private void ListType2Item(int index, GObject item)
  608. {
  609. UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
  610. DressUpMenuItemCfg2 item2 = DressUpMenuItemCfg2Array.Instance.dataArray[_currentList2[index] - 1];
  611. typeItem.m_icon.url = "ui://DressUp/hz_fenleituej_" + item2.id;
  612. //typeItem.m_imgTitle.url = "ui://DressUp/hz_iconziej_" + item2.id;
  613. typeItem.target.data = item2.id;
  614. var subType = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
  615. typeItem.m_imgNeed.visible = subType == item2.type;
  616. UI_TypeItem.ProxyEnd();
  617. }
  618. private void ListPartsItem(int index, GObject item)
  619. {
  620. UI_PartsListItem listItem = UI_PartsListItem.Proxy(item);
  621. int id = (int)_currentList3[index];
  622. string iconRes = "";
  623. string partName = "";
  624. string ext = "png";
  625. if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
  626. {
  627. SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(id);
  628. iconRes = suitCfg.res;
  629. partName = suitCfg.name;
  630. listItem.m_iconSelected.visible = false;
  631. listItem.m_txtScore.text = "" + SuitUtil.GetSuitScore(id);
  632. RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false, true);
  633. listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
  634. }
  635. else
  636. {
  637. ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
  638. iconRes = itemCfg.res;
  639. partName = itemCfg.name;
  640. listItem.m_iconSelected.visible = EquipDataCache.cacher.CheckDressUpItemIsOn(id);
  641. listItem.m_txtScore.text = "" + DressUpMenuItemDataManager.GetItemScore(id);
  642. listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
  643. RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
  644. ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType);
  645. }
  646. listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
  647. listItem.m_ScoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
  648. listItem.m_txtTitle.text = partName;
  649. listItem.target.data = id;
  650. listItem.m_imgNeed.visible = _fightCfg.needItemId == id || _fightCfg.needSuitId == id;
  651. UI_PartsListItem.ProxyEnd();
  652. }
  653. private void ListParts2Item(int index, GObject item)
  654. {
  655. UI_PartsListItem listItem = UI_PartsListItem.Proxy(item);
  656. int id = (int)_currentList4[index];
  657. string iconRes = "";
  658. string partName = "";
  659. string ext = "png";
  660. ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
  661. iconRes = itemCfg.res;
  662. partName = itemCfg.name;
  663. listItem.m_iconSelected.visible = EquipDataCache.cacher.CheckDressUpItemIsOn(id);
  664. listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
  665. RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
  666. ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType);
  667. listItem.m_ScoreType.visible = true;
  668. // int mainScore;
  669. // int mainValuel;
  670. // ItemDataManager.GetMainScore(id, out mainScore, out mainValuel);
  671. listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + _fightCfg.scoreType);
  672. listItem.m_txtScore.text = "" + DressUpMenuItemDataManager.GetItemScore(id, _fightCfg.scoreType);
  673. listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
  674. listItem.m_txtTitle.text = partName;
  675. listItem.target.data = id;
  676. // listItem.m_txtScore.visible = false;
  677. //listItem.m_ScoreType.visible = true;
  678. listItem.m_imgNeed.visible = false;
  679. UI_PartsListItem.ProxyEnd();
  680. }
  681. private void UpdateListPartsSelected()
  682. {
  683. int count = _ui.m_partsList.m_list.numChildren;
  684. int suitId = DressUpMenuSuitDataManager.CheckCurDressIsSuit();
  685. for (int i = 0; i < count; i++)
  686. {
  687. UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList.m_list.GetChildAt(i));
  688. int id = (int)listItem.target.data;
  689. if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
  690. {
  691. listItem.m_iconSelected.visible = suitId > 0 && id == suitId;
  692. }
  693. else
  694. {
  695. bool isPutOn = EquipDataCache.cacher.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴
  696. bool isSuit = !DressUpMenuItemDataManager.CheckIsSceneType(id) && suitId > 0 && SuitCfgManager.Instance.GetItemSuitId(id) == suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态)
  697. bool isSceneSuit = DressUpMenuItemDataManager.CheckIsSceneType(id) && suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴
  698. listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit;
  699. }
  700. UI_PartsListItem.ProxyEnd();
  701. }
  702. }
  703. private void UpdateListSuitPartsSelected()
  704. {
  705. int count = _ui.m_partsList2.m_list.numChildren;
  706. int suitId = DressUpMenuSuitDataManager.CheckCurDressIsSuit();
  707. for (int i = 0; i < count; i++)
  708. {
  709. UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList2.m_list.GetChildAt(i));
  710. int id = (int)listItem.target.data;
  711. bool isPutOn = EquipDataCache.cacher.CheckDressUpItemIsOn(id);//非套装金判断是否穿戴
  712. bool isSuit = !DressUpMenuItemDataManager.CheckIsSceneType(id) && suitId > 0 && SuitCfgManager.Instance.GetItemSuitId(id) == suitId;//非场景类, 若当前穿戴套装要判断item是否属于套装(更换场景类不会改变套装穿戴状态)
  713. bool isSceneSuit = DressUpMenuItemDataManager.CheckIsSceneType(id) && suitId > 0 && isPutOn;//场景类, 若当前穿戴套装要判断item是否属已穿戴
  714. listItem.m_iconSelected.visible = isPutOn || isSuit || isSceneSuit;
  715. UI_PartsListItem.ProxyEnd();
  716. }
  717. }
  718. private void ShowTaskHint()
  719. {
  720. _ui.m_groupTaskHint.visible = true;
  721. _ui.m_txtHint.text = _levelCfg.hint;
  722. if (this._ui.m_txtHint.textHeight > this._ui.m_txtHint.textFormat.size * 2)
  723. {
  724. this._ui.m_txtHint.align = AlignType.Left;
  725. }
  726. else
  727. {
  728. this._ui.m_txtHint.align = AlignType.Center;
  729. }
  730. }
  731. private void UpdateScore()
  732. {
  733. _ui.m_txtScore.text = "" + EquipDataCache.cacher.score;
  734. // GuideController.TryGuideDressUpFightViewBtnNext(_ui.m_btnNext);
  735. }
  736. private void OnClickBtnSearch()
  737. {
  738. ViewManager.Show<DressFilterView>(false, new object[] { ViewName.DRESS_UP_VIEW });
  739. }
  740. private void OnClickBtnAutoPlay()
  741. {
  742. EquipDataCache.cacher.autoPlay = _ui.m_btnAutoPlay.selected;
  743. }
  744. // private void OnClickBtnShow()
  745. // {
  746. // Timers.inst.Remove(SetBtnShowVisable);
  747. // _ui.m_c1.selectedIndex = 0;
  748. // _ui.m_btnHide.visible = true;
  749. // _ui.m_loaShow.visible = false;
  750. // _ui.m_btnShow.visible = false;
  751. // }
  752. // private void OnClickBtnHide()
  753. // {
  754. // _ui.m_c1.selectedIndex = 1;
  755. // _ui.m_btnHide.visible = false;
  756. // _ui.m_btnShow.visible = true;
  757. // _ui.m_loaShow.visible = true;
  758. // Timers.inst.Add(2f, 1, SetBtnShowVisable);
  759. // }
  760. // private void OnClickLoaShow()
  761. // {
  762. // Timers.inst.Remove(SetBtnShowVisable);
  763. // _ui.m_btnShow.alpha = 1;
  764. // Timers.inst.Add(2f, 1, SetBtnShowVisable);
  765. // _ui.m_btnShow.enabled = true;
  766. // }
  767. // private void SetBtnShowVisable(object param)
  768. // {
  769. // _ui.m_btnShow.enabled = false;
  770. // GTween.To(1, 0, 0.3f).SetTarget(_ui.m_btnShow, TweenPropType.Alpha);
  771. // }
  772. private void OnClickComNeed()
  773. {
  774. if (_fightCfg.needItemId <= 0 && _fightCfg.needSuitId <= 0)
  775. {
  776. return;
  777. }
  778. if (_fightCfg.needSuitId > 0)
  779. {
  780. 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 });
  781. }
  782. else
  783. {
  784. ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { _ui.m_compNeed.target.data, new object[] { ViewName.DRESS_UP_FIGHT_VIEW, this.viewData }, 1 });
  785. }
  786. }
  787. private void RenderListTagItem(int index, GObject obj)
  788. {
  789. UI.CommonGame.UI_ListTagItem item = UI.CommonGame.UI_ListTagItem.Proxy(obj);
  790. string[] tag = _fightCfg.needTagsArr[index].Split('_');
  791. item.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tag[0]);
  792. item.m_txtTag.text = tag[1];
  793. UI.CommonGame.UI_ListTagItem.ProxyEnd();
  794. }
  795. private bool CheckListCount(int type)
  796. {
  797. if (type == (int)ConstDressUpItemType.TAO_ZHUANG)
  798. {
  799. return DressUpMenuSuitDataManager.GetSuitIDList().Count > 0;
  800. }
  801. else
  802. {
  803. return DressUpMenuItemDataManager.getItemDatasByType(type).Count > 0;
  804. }
  805. }
  806. private void SendLog()
  807. {
  808. var levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
  809. switch (levelCfg.type)
  810. {
  811. case ConstInstanceZonesType.Story:
  812. LogServerHelper.SendNodeLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 2);
  813. break;
  814. case ConstInstanceZonesType.Studio:
  815. StudioCfg studioCfg = StudioCfgArray.Instance.GetCfg(levelCfg.chapterId);
  816. if (studioCfg.funId == typeof(StudioMetalView).Name)
  817. {
  818. LogServerHelper.SendNodeLog((int)PlayParticipationEnum.JIN_SHU_XIU_FU, 2);
  819. }
  820. else if (studioCfg.funId == typeof(StudioFabricView).Name)
  821. {
  822. LogServerHelper.SendNodeLog((int)PlayParticipationEnum.ZHI_WU_XIU_FU, 2);
  823. }
  824. else if (studioCfg.funId == typeof(StudioPropertyView).Name)
  825. {
  826. LogServerHelper.SendNodeLog((int)PlayParticipationEnum.SHU_HUA_XIU_FU, 2);
  827. }
  828. break;
  829. }
  830. }
  831. private void CheckGuide(object param)
  832. {
  833. if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0
  834. || GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0
  835. || GuideDataManager.IsGuideFinish(ConstGuideId.FIGHT_TIPS) <= 0)
  836. {
  837. UpdateToCheckGuide(null);
  838. }
  839. else
  840. {
  841. Timers.inst.Remove(CheckGuide);
  842. }
  843. }
  844. protected override void UpdateToCheckGuide(object param)
  845. {
  846. if (!ViewManager.CheckIsTopView(this.viewCom)) return;
  847. int syIndex = 0;
  848. int xzIndex = 0;
  849. int buyClothingIndex = 0;
  850. int buyClothingSubIndex = 0;
  851. int len = _ui.m_comListType1.m_listType.numChildren;
  852. for (int i = 0; i < len; i++)
  853. {
  854. UI_TypeItem item = UI_TypeItem.Proxy(_ui.m_comListType1.m_listType.GetChildAt(i));
  855. if (item != null)
  856. {
  857. int menuID = (int)item.target.data;
  858. DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
  859. if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 && dressUpMenuItemCfg1.type == ConstDressUpItemType.SHANG_YI)
  860. {
  861. syIndex = i;
  862. }
  863. if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 && dressUpMenuItemCfg1.type == ConstDressUpItemType.XIA_ZHUANG)
  864. {
  865. xzIndex = i;
  866. }
  867. if (_fightCfg.needItemId > 0)
  868. {
  869. int type = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
  870. if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0 && ItemUtil.CheckMenuType1(_fightCfg.needItemId, _fightCfg.needSuitId, dressUpMenuItemCfg1.id))
  871. {
  872. buyClothingIndex = i;
  873. }
  874. }
  875. }
  876. UI_TypeItem.ProxyEnd();
  877. }
  878. int len1 = _ui.m_comListType2.m_listType.numChildren;
  879. for (int i = 0; i < len1; i++)
  880. {
  881. UI_TypeItem item = UI_TypeItem.Proxy(_ui.m_comListType2.m_listType.GetChildAt(i));
  882. if (item != null)
  883. {
  884. int menuID = (int)item.target.data;
  885. DressUpMenuItemCfg2 dressUpMenuItemCfg2 = DressUpMenuItemCfg2Array.Instance.GetCfg(menuID);
  886. var subType = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
  887. if (subType == dressUpMenuItemCfg2.type)
  888. {
  889. buyClothingSubIndex = i;
  890. }
  891. }
  892. UI_TypeItem.ProxyEnd();
  893. }
  894. int djcId = 10476;//点绛唇Id
  895. int djcIndex = 0;
  896. int buyClothingIdIndex = 0;
  897. for (int i = 0; i < _currentList3.Count; i++)
  898. {
  899. if (_currentList3[i] == djcId)
  900. {
  901. djcIndex = i;
  902. }
  903. if (_fightCfg.needItemId > 0 && _currentList3[i] == _fightCfg.needItemId)
  904. {
  905. buyClothingIdIndex = i;
  906. }
  907. }
  908. GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰", syIndex);
  909. GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "", 0, true, (int)_ui.m_partsList.m_list.y);
  910. GuideController.TryGuide(_ui.m_btnGuide, ConstGuideId.SINGLE_FIGHT, 5, "", -1, true, 0, 0, 0, false);
  911. GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.SINGLE_FIGHT, 6, "接下来把裙子也换上", xzIndex);
  912. GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 7, "", 0, true, (int)_ui.m_partsList.m_list.y);
  913. GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 8, "穿着完毕,来验证一下,换上的服饰是否符合需求");
  914. GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 3, "当提示有“必需品”时,需要穿上对应物品才能通关", -1, true, 170);
  915. GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.BUY_CLOTHING, 7, "按照指示就可以找到必需品啦", buyClothingIndex);
  916. GuideController.TryGuide(_ui.m_comListType2.m_listType, ConstGuideId.BUY_CLOTHING, 8, "", buyClothingSubIndex);
  917. GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 9, "点击换上吧", buyClothingIdIndex, true, 170);
  918. GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 9);
  919. GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.FIGHT_TIPS, 1, "这次换装需要获得别人的认可呢");
  920. GuideController.TryCompleteGuide(ConstGuideId.FIGHT_TIPS, 1);
  921. }
  922. }
  923. }