ClothingView.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using cfg.GfgCfg;
  5. using FairyGUI;
  6. using UI.ClothingFoster;
  7. using UI.CommonGame;
  8. using UnityEngine;
  9. using ET;
  10. namespace GFGGame
  11. {
  12. public class ClothingView : BaseWindow
  13. {
  14. private UI_ClothingUI _ui;
  15. private ValueBarController _valueBarController;
  16. private DressUpObjUI _dressUpObjUI;
  17. private EffectUI _effectUI1;
  18. private List<int> _suitIds; //已解锁套装列表
  19. private SortedList _propertyList = new SortedList();
  20. private SortedList _addPropertyList = new SortedList();
  21. private int _suitId;
  22. private int _index;
  23. private bool _canRenew;
  24. private bool touchClick = true;
  25. public override void Dispose()
  26. {
  27. if (_ui != null)
  28. {
  29. _ui.Dispose();
  30. _ui = null;
  31. }
  32. if (_valueBarController != null)
  33. {
  34. _valueBarController.Dispose();
  35. _valueBarController = null;
  36. }
  37. if (_dressUpObjUI != null)
  38. {
  39. _dressUpObjUI.Dispose();
  40. _dressUpObjUI = null;
  41. }
  42. EffectUIPool.Recycle(_effectUI1);
  43. _effectUI1 = null;
  44. _propertyList.Clear();
  45. _addPropertyList.Clear();
  46. base.Dispose();
  47. }
  48. protected override void OnInit()
  49. {
  50. base.OnInit();
  51. packageName = UI_ClothingUI.PACKAGE_NAME;
  52. _ui = UI_ClothingUI.Create();
  53. this.viewCom = _ui.target;
  54. // this.viewCom.Center();
  55. isfullScreen = true;
  56. isReturnView = true;
  57. // this.clickBlankToClose = false;
  58. _valueBarController = new ValueBarController(_ui.m_valueBar);
  59. //_dressUpObjUI = new DressUpObjUI("SceneSuitFoster");
  60. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  61. _ui.m_comRenewReward.target.onClick.Add(OnClickRenewRewardItem);
  62. _ui.m_btnLeft.onClick.Add(() => { OnClickBtnDirection(-1); });
  63. _ui.m_btnRight.onClick.Add(() => { OnClickBtnDirection(1); });
  64. _ui.m_comFosterReward.target.onClick.Add(OnClickComFosterReward);
  65. _ui.m_btnPropertyShow.onClick.Add(OnClickBtnPropertyShow);
  66. _ui.m_listFoster.itemRenderer = ListFosterItemRender;
  67. _ui.m_listFoster.onClickItem.Add(OnClickListFosterItem);
  68. _ui.m_listProperty.itemRenderer = ListPropertyItemRender;
  69. _ui.m_listRenewMaterial.itemRenderer = ListRenewMaterialItemRender;
  70. _ui.m_listRenewMaterial.onClickItem.Add(OnListRenewMaterialsItem);
  71. _ui.m_btnRenew.onClick.Add(OnClickBtnRenew);
  72. _ui.m_c1.onChanged.Add(OnTabChange);
  73. // EventAgent.AddEventListener(ConstMessage.GET_SUIT_INFOS)
  74. }
  75. protected override void AddEventListener()
  76. {
  77. EventAgent.AddEventListener(ConstMessage.MAINTAIN_SUIT, OnListenerFoster);
  78. EventAgent.AddEventListener(ConstMessage.GET_MAINTAIN_SUIT_BONUS, OnListenerGetFosterReward);
  79. EventAgent.AddEventListener(ConstMessage.MAKE_NEW_SUIT, OnListenerRenew);
  80. EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateFosterList);
  81. EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
  82. }
  83. protected override void OnShown()
  84. {
  85. base.OnShown();
  86. object[] datas = this.viewData as object[];
  87. _suitId = (int)datas[0];
  88. List<int> suitIds = datas[1] as List<int>;
  89. _suitIds = new List<int>();
  90. foreach (int suitId in suitIds)
  91. {
  92. if (DressUpMenuSuitDataManager.CheckHaveSuit(suitId))
  93. {
  94. _suitIds.Add(suitId);
  95. }
  96. }
  97. _valueBarController.OnShown();
  98. _index = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId).maintainStep;
  99. _ui.m_c1.selectedIndex = 0;
  100. _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("fzsj_bg");
  101. UpdateView();
  102. UpdateRedDot();
  103. Timers.inst.AddUpdate(CheckGuide);
  104. }
  105. protected override void OnHide()
  106. {
  107. base.OnHide();
  108. _valueBarController.OnHide();
  109. Timers.inst.Remove(CheckGuide);
  110. Timers.inst.Remove(OnTimerUpDate);
  111. }
  112. protected override void RemoveEventListener()
  113. {
  114. base.RemoveEventListener();
  115. EventAgent.RemoveEventListener(ConstMessage.MAINTAIN_SUIT, OnListenerFoster);
  116. EventAgent.RemoveEventListener(ConstMessage.GET_MAINTAIN_SUIT_BONUS, OnListenerGetFosterReward);
  117. EventAgent.RemoveEventListener(ConstMessage.MAKE_NEW_SUIT, OnListenerRenew);
  118. EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateFosterList);
  119. EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
  120. }
  121. private void OnClickBtnBack()
  122. {
  123. ViewManager.GoBackFrom(typeof(ClothingView).FullName);
  124. }
  125. private void OnTabChange()
  126. {
  127. if (_ui.m_c1.selectedIndex == 0)
  128. {
  129. UpdateFoster();
  130. }
  131. else
  132. {
  133. UpdateRenew();
  134. }
  135. }
  136. private void UpdateView()
  137. {
  138. SuitCfg cfg = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId);
  139. _ui.m_loaRarity.url = ResPathUtil.GetCommonGameResPath("hd_sxicon_" + cfg.Rarity); // "ui://LuckyBox/;
  140. UpdateArrows();
  141. UpdateSuitView();
  142. UpdateFoster();
  143. UpdateRenew();
  144. }
  145. private void UpdateArrows()
  146. {
  147. int index = _suitIds.IndexOf(_suitId);
  148. int count = _suitIds.Count;
  149. _ui.m_btnRight.visible = (index + 1 < count);
  150. _ui.m_btnLeft.visible = (index - 1 >= 0);
  151. }
  152. private void OnTimerUpDate(object param = null)
  153. {
  154. touchClick = true;
  155. _dressUpObjUI.UpdateWrapper(_ui.m_holder);
  156. }
  157. private void UpdateSuitView(bool isPic = true)
  158. {
  159. SuitCfg suitCfg = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId);
  160. _ui.m_txtName.text = suitCfg.Name;
  161. if (_dressUpObjUI != null)
  162. {
  163. _dressUpObjUI.Dispose();
  164. _dressUpObjUI = null;
  165. }
  166. _dressUpObjUI = new DressUpObjUI("SceneSuitFoster");
  167. // 使用异步方式重置场景对象
  168. _dressUpObjUI.ResetSceneObjAsync(100, false, true, null, false, (sceneObj) =>
  169. {
  170. if (sceneObj != null)
  171. {
  172. // 场景对象加载完成后穿上套装
  173. _dressUpObjUI.dressUpObj.PutOnSuitCfg(_suitId, isPic, new int[] { ConstDressUpItemType.BEI_JING });
  174. Timers.inst.Add(1f, 1, OnTimerUpDate);
  175. }
  176. else
  177. {
  178. Debug.LogError("Failed to load scene object for suit: " + _suitId);
  179. }
  180. });
  181. }
  182. private void OnClickBtnDirection(int direction)
  183. {
  184. if (!touchClick) return;
  185. touchClick = false;
  186. int index = _suitIds.IndexOf(_suitId);
  187. int targetIndex = index + direction;
  188. if (targetIndex >= 0 && direction == -1 || targetIndex < _suitIds.Count && direction == 1)
  189. {
  190. _suitId = _suitIds[targetIndex];
  191. _index = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId).maintainStep;
  192. UpdateView();
  193. }
  194. }
  195. /*************************************************养护************************************************/
  196. private void UpdateFoster()
  197. {
  198. _index = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId).maintainStep;
  199. UpdateFosterReward();
  200. _propertyList.Clear();
  201. _addPropertyList.Clear();
  202. UpdateFosterList();
  203. _propertyList = SuitFosterDataManager.Instance.GetPropertyData(_suitId, _index);
  204. _ui.m_listProperty.numItems = _propertyList.Count;
  205. }
  206. private void UpdateFosterReward()
  207. {
  208. SuitFosterDataManager.Instance.GetFosterRewardState(_suitId, out int state, out int index);
  209. SuitFosterCfg cfg = CommonDataManager.Tables.TblSuitFosterCfg.DataList.Where(a => a.SuitId == _suitId)
  210. .ToList()[index];
  211. ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(cfg.Rewards[0].ItemId);
  212. _ui.m_comFosterReward.m_loaReward.url = ResPathUtil.GetIconPath(itemCfg);
  213. _ui.m_comFosterReward.m_c1.selectedIndex = state;
  214. }
  215. private void UpdateFosterList()
  216. {
  217. _ui.m_listFoster.numItems =
  218. CommonDataManager.Tables.TblSuitFosterCfg.DataList.Count(a => a.SuitId == _suitId);
  219. }
  220. private void ListFosterItemRender(int index, GObject obj)
  221. {
  222. UI_ListFosterItem item = UI_ListFosterItem.Proxy(obj);
  223. item.target.data = index;
  224. int state = SuitFosterDataManager.Instance.GetFosterState(_suitId, index);
  225. item.m_finish.selectedIndex = state;
  226. item.m_txtName.text = SuitFosterDataManager.Instance.stepNames[index];
  227. RedDotController.Instance.SetComRedDot(item.target,
  228. RedDotDataManager.Instance.GetClothingFosterRed(_suitId) && state == 1);
  229. UI_ListFosterItem.ProxyEnd();
  230. }
  231. private void ListPropertyItemRender(int index, GObject obj)
  232. {
  233. UI_ListScoreItem item = UI_ListScoreItem.Proxy(obj);
  234. int score = (int)_propertyList.GetKey(index);
  235. item.m_txtProperty.text = _propertyList[score].ToString();
  236. item.m_loaIcon.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (score));
  237. UI_ListScoreItem.ProxyEnd();
  238. }
  239. private void OnClickListFosterItem(EventContext context)
  240. {
  241. GuideCfg cfg = CommonDataManager.Tables.TblGuideCfg.GetOrDefault(ConstGuideId.SUIT_LIST_VIEW);
  242. if (GuideDataManager.IsGuideFinish(ConstGuideId.SUIT_LIST_VIEW) <= 0 &&
  243. GuideDataManager.currentGuideId == cfg.Id)
  244. {
  245. return;
  246. }
  247. int index = (int)(context.data as GObject).data;
  248. int state = SuitFosterDataManager.Instance.GetFosterState(_suitId, index);
  249. if (state == 0)
  250. {
  251. PromptController.Instance.ShowFloatTextPrompt("已完成该阶段");
  252. }
  253. else if (state == 1)
  254. {
  255. ViewManager.Show<ClothingFosterView>(new object[] { _suitId, index, _propertyList, this.viewData });
  256. }
  257. else
  258. {
  259. PromptController.Instance.ShowFloatTextPrompt(string.Format("请完成{0}阶段",
  260. SuitFosterDataManager.Instance.stepNames[_index]));
  261. }
  262. }
  263. private void OnClickComFosterReward()
  264. {
  265. SuitFosterDataManager.Instance.GetFosterRewardState(_suitId, out int state, out int index);
  266. if (state == 1 || state == 2)
  267. {
  268. ViewManager.Show<ClothingRewardView>(_suitId);
  269. }
  270. else
  271. {
  272. SuitFosterProxy.SendGetMaintainSuitBonus(_suitId, index + 1).Coroutine();
  273. }
  274. }
  275. private void OnClickBtnPropertyShow()
  276. {
  277. ViewManager.Show<ClothingPropertyShowView>(new object[] { _suitId, _index });
  278. }
  279. private void OnListenerFoster()
  280. {
  281. _ui.m_comFosterAni.target.visible = true;
  282. _ui.m_comFosterAni.m_txtContent.text =
  283. string.Format("服装{0}中......", SuitFosterDataManager.Instance.stepNames[_index]);
  284. if (_effectUI1 != null)
  285. {
  286. EffectUIPool.Recycle(_effectUI1);
  287. _effectUI1 = null;
  288. }
  289. EffectUIPool.CreateEffectUI(_ui.m_comFosterAni.m_holder, "ui_gcdh", "ui_gcdh_" + (_index + 1),
  290. onComplete: (effect) =>
  291. {
  292. if (effect != null)
  293. {
  294. _effectUI1 = effect;
  295. }
  296. });
  297. _ui.m_comFosterAni.m_t0.Play(() =>
  298. {
  299. ViewManager.Show<ClothingFosterFinishView>(new object[] { _suitId, _index, _propertyList });
  300. UpdateFoster();
  301. _ui.m_comFosterAni.target.visible = false;
  302. });
  303. }
  304. private void OnListenerGetFosterReward(EventContext context)
  305. {
  306. SuitFosterCfg cfg =
  307. CommonDataManager.Tables.TblSuitFosterCfg.DataList.Where(a => a.SuitId == _suitId).ToList()[
  308. (int)(context.data) - 1];
  309. BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(cfg.Rewards.ToGfgGameItemParam()));
  310. UpdateFosterReward();
  311. LogUtil.LogEditor("养护奖励:" + ItemDataManager.GetItemNum(100169));
  312. }
  313. /*************************************************换新************************************************/
  314. private void UpdateRenew()
  315. {
  316. _index = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId).maintainStep;
  317. SuitFosterData suitFosterData = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId);
  318. if (suitFosterData.makeNewState > 0)
  319. {
  320. _ui.m_c2.selectedIndex = 1;
  321. UpdateRenewFinish();
  322. }
  323. else
  324. {
  325. _ui.m_c2.selectedIndex = 0;
  326. UpdateRenewView();
  327. }
  328. }
  329. private void UpdateRenewView()
  330. {
  331. int suitrarity = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId).Rarity;
  332. SuitRenewCfg renewCfg = CommonDataManager.Tables.TblSuitRenewCfg.GetOrDefault(suitrarity);
  333. SuitFosterListCfg cfg = CommonDataManager.Tables.TblSuitFosterListCfg.GetOrDefault(_suitId);
  334. _ui.m_comRenewReward.target.visible = false;
  335. if (cfg.RenewRewards.Count > 0)
  336. {
  337. _ui.m_comRenewReward.target.visible = true;
  338. ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(cfg.RenewRewards[0].ItemId);
  339. _ui.m_comRenewReward.m_loaReward.url = ResPathUtil.GetIconPath(itemCfg);
  340. }
  341. _ui.m_txtRenewProperty.text = string.Format("套装所有部件属性+{0}%", renewCfg.Addition * 100 / 10000);
  342. _ui.m_txtRenewTips.text =
  343. string.Format("完成养护-{0}阶段", SuitFosterDataManager.Instance.stepNames[cfg.RenewOpenLv - 1]);
  344. _ui.m_listRenewMaterial.numItems = renewCfg.Materials.Count;
  345. long costHas = ItemDataManager.GetItemNum(renewCfg.CostId);
  346. int costNeed = renewCfg.CostNum;
  347. ItemUtil.UpdateItemNeedNum(_ui.m_comRenewCost, renewCfg.CostId, renewCfg.CostNum);
  348. long itemHas = ItemDataManager.GetItemNum(renewCfg.Materials[0].ItemId);
  349. int itemNeed = renewCfg.Materials[0].Count;
  350. _canRenew = costHas >= costNeed && itemHas >= itemNeed;
  351. UI_ComCostCurrency.ProxyEnd();
  352. }
  353. private void UpdateRenewFinish()
  354. {
  355. int suitrarity = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId).Rarity;
  356. SuitRenewCfg renewCfg = CommonDataManager.Tables.TblSuitRenewCfg.GetOrDefault(suitrarity);
  357. _ui.m_txtRenewShow.text = string.Format("套装所有部件属性+{0}%", renewCfg.Addition * 100 / 10000);
  358. _ui.m_comRenewRewardGet.target.visible = true;
  359. SuitFosterListCfg cfg = CommonDataManager.Tables.TblSuitFosterListCfg.GetOrDefault(_suitId);
  360. if (cfg.RenewRewards.Count <= 0)
  361. {
  362. _ui.m_comRenewRewardGet.target.visible = false;
  363. return;
  364. }
  365. ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(cfg.RenewRewards[0].ItemId);
  366. _ui.m_comRenewRewardGet.m_loaReward.url = ResPathUtil.GetIconPath(itemCfg);
  367. }
  368. private void ListRenewMaterialItemRender(int index, GObject obj)
  369. {
  370. UI_ListMaterialsItem item = UI_ListMaterialsItem.Proxy(obj);
  371. int suitrarity = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId).Rarity;
  372. List<ItemParamProto> materialsArr = CommonDataManager.Tables.TblSuitRenewCfg.GetOrDefault(suitrarity)
  373. .Materials.ToGfgGameItemParam();
  374. ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(materialsArr[index].ItemId);
  375. item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
  376. long has = ItemDataManager.GetItemNum(itemCfg.Id);
  377. int need = materialsArr[index].Count;
  378. item.m_txtHas.text = StringUtil.GetColorText(has.ToString(), has >= need ? "#F2DB96" : "#C9F1A5");
  379. item.m_txtNeed.text = need.ToString();
  380. if (_canRenew && has < need) _canRenew = false;
  381. item.target.data = materialsArr[index];
  382. UI_ListMaterialsItem.ProxyEnd();
  383. }
  384. private void OnListRenewMaterialsItem(EventContext context)
  385. {
  386. int[] itemData = (int[])(context.data as GComponent).data;
  387. // GoodsItemTipsController.ShowItemTips(itemId);
  388. //ViewManager.Show<ApproachOfItemView>(new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] });
  389. object[] sourceDatas = new object[]
  390. { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] };
  391. GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
  392. }
  393. private async void OnClickBtnRenew()
  394. {
  395. SuitFosterData data = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId);
  396. SuitFosterListCfg cfg = CommonDataManager.Tables.TblSuitFosterListCfg.GetOrDefault(_suitId);
  397. if (data.maintainStep < cfg.RenewOpenLv)
  398. {
  399. PromptController.Instance.ShowFloatTextPrompt("完成养护后开启焕新");
  400. //PromptController.Instance.ShowFloatTextPrompt(string.Format("完成{0}开启焕新", SuitFosterDataManager.Instance.stepNames[cfg.renewOpenLv - 1]));
  401. return;
  402. }
  403. int suitrarity = CommonDataManager.Tables.TblSuitCfg.GetOrDefault(_suitId).Rarity;
  404. SuitRenewCfg renewCfg = CommonDataManager.Tables.TblSuitRenewCfg.GetOrDefault(suitrarity);
  405. if (!ItemUtil.CheckItemEnough(renewCfg.CostId, renewCfg.CostNum))
  406. {
  407. long has = ItemDataManager.GetItemNum(renewCfg.CostId);
  408. ItemUtil.BuyCurrency(renewCfg.CostId, renewCfg.CostNum - has);
  409. return;
  410. }
  411. for (int i = 0; i < renewCfg.Materials.Count; i++)
  412. {
  413. if (!ItemUtil.CheckItemEnough(renewCfg.Materials[i].ItemId, renewCfg.Materials[i].Count, true))
  414. {
  415. object[] sourceDatas = new object[]
  416. {
  417. renewCfg.Materials[i].ItemId,
  418. new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[3] },
  419. renewCfg.Materials[i].Count
  420. };
  421. GoodsItemTipsController.ShowItemTips(renewCfg.Materials[i].ItemId, sourceDatas);
  422. return;
  423. }
  424. }
  425. int result = await SuitFosterProxy.SendMakeNewSuit(_suitId);
  426. if (result == ErrorCode.ERR_Success)
  427. {
  428. LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.FU_ZHUANG_YANG_CHENG, 2);
  429. }
  430. }
  431. private void OnListenerRenew()
  432. {
  433. ViewManager.Show<ClothingRenewFinishView>(_suitId);
  434. UpdateRenew();
  435. LogUtil.LogEditor("换新奖励:" + ItemDataManager.GetItemNum(10370));
  436. }
  437. private void UpdateRedDot()
  438. {
  439. RedDotController.Instance.SetComRedDot(_ui.m_btnTabFoster,
  440. RedDotDataManager.Instance.GetClothingFosterRed(_suitId));
  441. RedDotController.Instance.SetComRedDot(_ui.m_btnTabRenew,
  442. RedDotDataManager.Instance.GetClothingRenewRed(_suitId));
  443. RedDotController.Instance.SetComRedDot(_ui.m_btnRenew,
  444. RedDotDataManager.Instance.GetClothingRenewRed(_suitId));
  445. }
  446. private void CheckGuide(object param)
  447. {
  448. if (GuideDataManager.IsGuideFinish(ConstGuideId.SUIT_LIST_VIEW) <= 0)
  449. {
  450. UpdateToCheckGuide(null);
  451. }
  452. else
  453. {
  454. Timers.inst.Remove(CheckGuide);
  455. }
  456. }
  457. protected override void UpdateToCheckGuide(object param)
  458. {
  459. if (!ViewManager.CheckIsTopView(this.viewCom)) return;
  460. GuideController.TryGuide(_ui.m_listFoster, ConstGuideId.SUIT_LIST_VIEW, 4, "点击进行服饰养护工作。", 0);
  461. GuideController.TryGuide(_ui.m_btnTabRenew, ConstGuideId.SUIT_LIST_VIEW, 5,
  462. "完成养护流程后,可以对服饰进行焕新,获得更多新的套装配件哦。");
  463. GuideController.TryCompleteGuide(ConstGuideId.SUIT_LIST_VIEW, 5);
  464. }
  465. private void OnClickRenewRewardItem()
  466. {
  467. ViewManager.Show<ClothingRewardItemView>(_suitId);
  468. }
  469. }
  470. }