DressUpFightView.cs 42 KB

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