public override bool Init(IUIWnd wnd) { TitleDes.text = ULocalizationService.Instance.Get("UIView", "LegendCupKinInfo", "Title"); KinMemberDesc.text = ULocalizationService.Instance.Get("UIView", "LegendCupKinInfo", "KinMember"); KinGloryDesc.text = ULocalizationService.Instance.Get("UIView", "LegendCupKinInfo", "KinGlory"); buttonGroup.SetAllItemDeSelected(); m_curShowPageType = KinInfoButtonType.KIBT_KINMEMBER; buttonGroup.SkipInactive = false; return(base.Init(wnd)); }
// 关闭按钮 public void OnClickCloseBtn() { SpecificTypeBtnGroup.SetAllItemDeSelected(); SetVisible(false); // 删除光效 if (publishParam != null) { UEffectManager.Instance.DestroyEffect(UEffectType.UET_EffectPrefab, ref publishParam); } }
public override void OnMobaGoodsClick(UWarGoodsStoreItem _nParam) { if (m_RecommendGoodsGroup.SelectedIndex != -1 && m_MyParent.CurrentSelectedGoods.GoodsID != m_ReCommendGoodsItemList[m_RecommendGoodsGroup.SelectedIndex].GoodsID) { m_RecommendGoodsGroup.SetAllItemDeSelected(); } }
public override bool Init(IUIWnd wnd) { base.Init(wnd); TitleDes.text = ULocalizationService.Instance.Get("UIView", "LegendCupJudge", "Title"); AllKnockoutDes.text = ULocalizationService.Instance.Get("UIView", "LegendCupJudge", "AllKnockout"); ConfirmBtnDes.text = ULocalizationService.Instance.Get("UIView", "LegendCupJudge", "ConfirmBtn"); CancelBtnDes.text = ULocalizationService.Instance.Get("UIView", "LegendCupJudge", "CancelBtn"); NodeResult.SetAllItemDeSelected(); //NodeResult.SetItemSelectedItem(0); return(true); }
// 按钮切页事件 public void SwitchWndPage(PlayerFrameBtnType btnType) { m_CurBtnType = btnType; PlayerButtonGroup.SetAllItemDeSelected(); int nIndex = (int)btnType; //BTN_RUNE和WND_CROWN没有了 if (btnType == PlayerFrameBtnType.BTN_MOMENT) { nIndex = 3; } PlayerButtonGroup.SetItemSelectedItem(nIndex, true); }