| | |
| | | showFuncBtn.AddListener(() => |
| | | { |
| | | funcForm.SetActive(true); |
| | | if (hero != null) |
| | | { |
| | | UIManager.Instance.GetUI<HeroTrainBaseWin>().GetCanvasGroup().alpha = 1; |
| | | } |
| | | ChangeParentWinAlpha(1); |
| | | }); |
| | | seeLhBtn.AddListener(() => |
| | | { |
| | | funcForm.SetActive(false); |
| | | if (hero != null) |
| | | { |
| | | UIManager.Instance.GetUI<HeroTrainBaseWin>().GetCanvasGroup().alpha = 0; |
| | | } |
| | | ChangeParentWinAlpha(0); |
| | | }); |
| | | previewFightBtn.AddListener(() => |
| | | { |
| | |
| | | { |
| | | showGetObj.SetActive(false); |
| | | showNormalObj.SetActive(true); |
| | | ChangeParentWinAlpha(1); |
| | | }); |
| | | |
| | | changeClothBtn.AddListener(() => |
| | |
| | | skinNameText.text = HeroSkinConfig.Get(skinID).SkinName; |
| | | RefreshAttr(); |
| | | ShowBtns(); |
| | | HeroUIManager.Instance.skinRedpoint.state = HeroUIManager.Instance.HeroAllSkinStateForRedpoint(heroID, hero == null) > 0 ? RedPointState.Simple : RedPointState.None; |
| | | } |
| | | |
| | | |
| | |
| | | if (activeSkinID == skinID && HeroUIManager.Instance.IsHeroSkinActive(heroID, skinID)) |
| | | { |
| | | showGetObj.SetActive(true); |
| | | ChangeParentWinAlpha(0); |
| | | showNormalObj.SetActive(false); |
| | | Display(); |
| | | skinScroller.m_Scorller.RefreshActiveCellViews(); |
| | |
| | | unlockBtn.SetActive(true); |
| | | int itemID = cfg.NeedItemID; |
| | | itemIcon.SetItemSprite(itemID); |
| | | itemCountText.text = UIHelper.ShowUseItem(PackType.Item, itemID, 1, bright:false); |
| | | itemCountText.text = UIHelper.ShowUseItem(PackType.Item, itemID, 1, bright: false); |
| | | } |
| | | putonBtn.SetActive(false); |
| | | putonYetObj.SetActive(false); |
| | |
| | | |
| | | putonBtn.SetActive(hero.SkinAttrID != skinID); |
| | | putonYetObj.SetActive(hero.SkinAttrID == skinID); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | void ChangeParentWinAlpha(float alpha) |
| | | { |
| | | if (hero != null) |
| | | { |
| | | UIManager.Instance.GetUI<HeroTrainBaseWin>().GetCanvasGroup().alpha = alpha; |
| | | } |
| | | else |
| | | { |
| | | UIManager.Instance.GetUI<HeroBestBaseWin>().GetCanvasGroup().alpha = alpha; |
| | | } |
| | | } |
| | | } |