void OnDestroy() { var _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { UI_CaptionManager.GetInstance().Release(m_CaptionLayoutPoint); } if (m_IsWaitingBossShop) { GameEventDispatcher.Inst.removeEventListener(GameEventID.G_SBossShop, OnReceiveBossShop); } if (m_IsWaitingGetBossRank) { GameEventDispatcher.Inst.removeEventListener(GameEventID.G_SGetBossRank, OnReceiveGetBossRank); } if (m_IsWaitingGetWorldBoss) { GameEventDispatcher.Inst.removeEventListener(GameEventID.G_GetWorldBoss, OnReceiveWorldBoss); } GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_InterfaceChange, m_TipsController.Refresh); GameEventDispatcher.Inst.removeEventListener(GameEventID.G_GetWorldBoss, m_TipsController.Refresh); //if (m_LastProtocol != null) // GameEventDispatcher.Inst.removeEventListener(m_LastProtocol.m_CallbackEventID, SendProtocolQueue); }
public override void InitUIData() { base.InitUIData(); Inst = this; ParseHeroCloneXmlData(); m_Grid = selfTransform.FindChild("HeroList/ListLayOut"); m_HeroLayout = selfTransform.FindChild("HeroList/ListLayOut").GetComponent <LoopLayout>(); m_ConAssetIcon = selfTransform.FindChild("TopPanel/ConImg").GetComponent <Image>(); m_MakAnim = selfTransform.FindChild("Msk").GetComponent <Animator>(); GameObject _modelViewRoom = GameObject.Find("ModelViewRoom"); m_HeroCloneAnim = _modelViewRoom.transform.FindChild("Camera2/ElementBody01/Playground Light/ElementBody01").GetComponent <Animation>(); // m_HeroCloneAnim = GameObject.Find("ModelViewRoom/Camera2/ElementBody01/Playground Light/ElementBody01").GetComponent<Animation>(); m_ConAssetId = m_HeroCloneList[0].getCloneCostId(); m_HeroCloneItemObj = UIResourceMgr.LoadPrefab(common.prefabPath + m_HeroCloneItemUrl) as GameObject; HomeControler.Inst.PushFunly(7, 114); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(M_CapPos); } GameEventDispatcher.Inst.addEventListener(GameEventID.HE_HeroCloneInject, UpdateHeroCloneDataUI); }
public void OnClickAuthenticate() { UI_RuneMange._instance.mGuid = mRuneGUID; if (mRuneGUID == null) { return; } ItemEquip itemE = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, mRuneGUID); ItemTemplate itemT = itemE.GetItemRowData(); //一星符文没法鉴定; if (itemT.getRune_quality() <= 1) { InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip3")); return; } int count = DataTemplate.GetInstance().GetRuneMaxRedefineTimes(itemT); //是否鉴定满级; if (itemE.GetDefineTimes() >= count) { InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip4")); return; } UI_RuneIdentifyMgr.SetShowRuneGUID(mRuneGUID); GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_OpenUI, UI_RuneIdentifyMgr.UI_ResPath); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); }
public override void InitUIData() { inst = this; base.InitUIData(); m_HeroRecruit = selfTransform.FindChild("UI_HeroRecruit").gameObject; m_RelicTreasure = selfTransform.FindChild("UI_RelicTreasure").gameObject; m_Caption = selfTransform.FindChild("caption").gameObject; UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.AwakeUp(m_Caption.transform); } //m_RecruitTipsImage = selfTransform.FindChild("UI_Top/HeroRecruitBtn").gameObject; //m_RelicTipsImage = selfTransform.FindChild("UI_Top/RelicBtn").gameObject; HomeControler.Inst.PushFunly(12, 101); m_HeroRecruit.SetActive(true); m_RelicTreasure.SetActive(false); uiMark = DreamFaction.UI.Core.UIMark.HeroRecruit; //m_TipsController = CreateFunctionTipsController(); }
void OnConfirmClick() { if (UI_CaptionManager.GetInstance() != null) { UI_CaptionManager.GetInstance().Release(m_cappostion); } ModelCear(); if (UI_HomeControler.Inst != null) { UI_HomeControler.Inst.ReMoveUI(gameObject); } else { UI_FightControler.Inst.ReMoveUI(gameObject); } if (isClone) { UI_HomeControler.Inst.AddUI(UI_HeroCloneManager.UI_ResPath); isClone = false; } // 关于新手引导 // TODO... // DEBUG... if (GuideManager.GetInstance().isGuideUser&& GuideManager.GetInstance().IsContentGuideID(100204) == false && GuideManager.GetInstance().GetBackCount(100203) == true && GuideManager.GetInstance().GetLastID() < 100204) { int interruptId = GuideManager.GetInstance().interruptID; if (interruptId != 100203) { UI_Recruit.inst.InitGuideBack(); } } }
public override void InitUIView() { base.InitUIView(); m_ShengYu_1.text = GameUtils.getString("vigour_supplement_content2"); m_ShengYu_2.text = GameUtils.getString("vigour_supplement_content2"); m_ShengYu_3.text = GameUtils.getString("vigour_supplement_content2"); m_ShengYu_4.text = GameUtils.getString("vigour_supplement_content2"); m_YongYou_2.text = GameUtils.getString("vigour_supplement_content3"); m_YongYou_3.text = GameUtils.getString("vigour_supplement_content3"); m_YongYou_4.text = GameUtils.getString("vigour_supplement_content3"); m_GouMai.text = GameUtils.getString("common_button_purchase"); m_Use_2.text = GameUtils.getString("common_button_use2"); m_Use_3.text = GameUtils.getString("common_button_use2"); m_Use_4.text = GameUtils.getString("common_button_use2"); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(M_CapPos); } vipData = (VipTemplate)DataTemplate.GetInstance().m_VipTable.getTableData(ObjectSelf.GetInstance().VipLevel); config = (GameConfig)DataTemplate.GetInstance().m_GameConfig; UpdatePower(); UpdateDiamond(); InitPowerShopUI(); InitPowerItemUI(); }
////////////////////////// 英雄兑换 public void SetExchangeHero() { SkillItem_publicBtn.gameObject.SetActive(false); SkillItem_passivityBtn.gameObject.SetActive(false); SkillItem_PVPBtn.gameObject.SetActive(false); _confirm.gameObject.SetActive(false); m_LeftBottom.SetActive(false); m_UIBottom.SetActive(true); m_bgExchangePanel.SetActive(true); if (UI_CaptionManager.GetInstance() != null) { UI_CaptionManager.GetInstance().AwakeUp(m_cappostion); } if (ObjectSelf.GetInstance().dreamfree == 0) { m_FreeTipsText.text = GameUtils.getString("hero_recruit_content11"); m_GoldImage.gameObject.SetActive(false); } else { m_FreeTipsText.text = "X" + DataTemplate.GetInstance().m_GameConfig.getDream_refresh_cost(); m_GoldImage.gameObject.SetActive(true); } }
public override void InitUIView() { base.InitUIView(); //m_CostText.text = "99"; //m_ConfirmItemNameText.text = "-Grimoire of Alice-"; //m_PlayerWalletText.text = "250"; timeTextBuffer = GameUtils.getString("fight_mysteriousshop_content1"); m_ConfirmTittleText.text = GameUtils.getString("common_purchaseform_title"); m_PayBtnText.text = GameUtils.getString("common_button_purchase"); m_CloseBtnText.text = GameUtils.getString("common_button_close"); m_TopTittleText.text = GameUtils.getString("fight_mysteriousshop_title"); RefreshItemDataList(); confirmPanel.SetActive(false); UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.AwakeUp(m_CaptionLayoutPoint); } }
public void OnDestroy() { Inst = null; CancelInvoke("EventNoticeLifeTimeHandler"); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_InterfaceChange, OnInterfaceChange); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_ReceiveCaptionMessage, LoadServerData); }
void OnDisable() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(UI_LimitTest.Inst.m_cappostion); } }
void OnEnable() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(UI_LimitTest.Inst.m_cappostion); } }
void OnDestroy() { UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.Release(m_Caption.transform); } }
protected void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_GetPower, GetPowerTip); }
protected void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) cap.Release(M_CapPos); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_SacredAltarSuccend, FallItemTipsShow); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_SacredAltarTips, TipsShow); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_SacredAltarUIShow, UpdateShowUI); }
/// <summary> /// 试炼规则按钮 /// </summary> private void OnRuleBtn() { _TestRuleObj.SetActive(true); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(m_cappostion); } }
void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_InterfaceChange, m_TipsController.Refresh); }
/// <summary> /// 试炼规则关闭按钮 /// </summary> private void OnTestRuleObjClose() { _TestRuleObj.SetActive(false); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(m_cappostion); } }
public override void InitUIView() { base.InitUIView(); UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.AwakeUp(m_CaptionPoint); } }
/// <summary> /// 返回按钮 /// </summary> private void OnBackBtn() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(m_cappostion); } UI_HomeControler.Inst.ReMoveUI(gameObject); }
void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } GameEventDispatcher.Inst.removeEventListener(GameEventID.HE_HeroCloneInject, UpdateHeroCloneDataUI); }
private void OnDestroy() { UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.Release(m_CaptionPoint); } GameEventDispatcher.Inst.removeEventListener(GameEventID.G_FightNumSucceed, FightNumShow); }
private void OnDestroy() { UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.Release(m_CaptionLayoutPoint); } GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_MysteriousShopBuyReplay, PayHandler); }
// 成功兑换英雄 public void SuccessExchangeHero() { ObjectSelf.GetInstance().isTipsDream = true; // 删除掉本界面 ModelCear(); if (UI_CaptionManager.GetInstance() != null) { UI_CaptionManager.GetInstance().Release(m_cappostion); } UI_HeroRecruit.inst.RefreshDreamValue(); UI_HomeControler.Inst.ReMoveUI(gameObject); }
protected void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_GetLivenessBox, RenewalUIShow); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_GetLiveness, RenewalUIShow); }
/// <summary> /// 初始化UI显示 /// </summary> private void InitUIShow() { _LevelNumTxt.text = m_Self.LimitFightMgr.m_RoundNum.ToString(); _BraveTxt.text = m_Self.LimitFightMgr.m_AllDropNum.ToString(); _PowerfulTxt.text = GameUtils.getString(InitPowerfulState()); _RankingTxt.text = InitRinKingShow(); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(m_cappostion); } }
public void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { if (captionParent != null) { cap.Release(captionParent); } } captionParent = null; }
public override void InitUIData() { inst = this; _backBtn = selfTransform.FindChild("TopPanel/BackBtn").GetComponent <Button>(); _backBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickBackBtn)); _curExpText = selfTransform.FindChild("TopPanel/MoneyBarUI/Image/CurExp").GetComponent <Text>(); _curSelectCountText = selfTransform.FindChild("NumberTips/CurCount").GetComponent <Text>(); _dissolveBtn = selfTransform.FindChild("DissolveBtn").GetComponent <Button>(); _dissolveBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickDissolve)); _gainTips = selfTransform.FindChild("GainTips").gameObject; _gainExpText = selfTransform.FindChild("GainTips/Exp/GainExp").GetComponent <Text>(); _gainGlodText = selfTransform.FindChild("GainTips/Gold/Text").GetComponent <Text>(); _emptyRune = selfTransform.FindChild("EmptyRune").gameObject; _runeList = selfTransform.FindChild("RuneList").gameObject; _runeListLayout = selfTransform.FindChild("RuneList/RuneList/ListLayout").GetComponent <LoopLayout>(); _runeTypeText = selfTransform.FindChild("RuneList/SortObj/MainBagBtn/Text").GetComponent <Text>(); _slideTypeBtn = selfTransform.FindChild("RuneList/SortObj/MainBagBtn").GetComponent <UI_SlideBtn>(); _blueBtn = selfTransform.FindChild("RuneList/SortObj/BlueBtn").GetComponent <Button>(); _blueBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickBule)); _purpleBtn = selfTransform.FindChild("RuneList/SortObj/PurpleBtn").GetComponent <Button>(); _purpleBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickPurple)); _greenBtn = selfTransform.FindChild("RuneList/SortObj/GreenBtn").GetComponent <Button>(); _greenBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickGreen)); _redBtn = selfTransform.FindChild("RuneList/SortObj/RedBtn").GetComponent <Button>(); _redBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickRed)); _spectialBtn = selfTransform.FindChild("RuneList/SortObj/SpectialBtn").GetComponent <Button>(); _spectialBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickSpectial)); _allBtn = selfTransform.FindChild("RuneList/SortObj/AllBtn").GetComponent <Button>(); _allBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickAll)); _emptyTips = selfTransform.FindChild("EmptyRune/Text").GetComponent <Text>(); _emptyTips.text = GameUtils.getString("runemelt_content1"); // _goldText = selfTransform.FindChild("UI_BG_Top/Gold/Text").GetComponent<Text>(); _empytLeftBtn = selfTransform.FindChild("EmptyRune/LeftBtn").GetComponent <Button>(); _empytRightBtn = selfTransform.FindChild("EmptyRune/RightBtn").GetComponent <Button>(); _empytLeftBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickLeftBtn)); _empytRightBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickRightBtn)); _bagNumberText = selfTransform.FindChild("RuneList/SortObj/NumberNoBg/Number").GetComponent <Text>(); _runeGameObject = selfTransform.FindChild("RuneList/RuneList").gameObject; _selectRuneExp = selfTransform.FindChild("SelectRuneExp").gameObject; _selectRuneItem = selfTransform.FindChild("SelectRuneItem").gameObject; m_Caption = selfTransform.FindChild("caption").gameObject; HomeControler.Inst.PushFunly(6, 97); UI_CaptionManager _caption = UI_CaptionManager.GetInstance(); if (_caption != null) { _caption.AwakeUp(m_Caption.transform); } }
//英雄搭配关闭 private void OnHeroMakeClose_btn() { //HeroMakeinfo.transform.SetParent(null, false); HeroMakeinfo.SetActive(false); UI_HeroListManager._instance.SetGridActive(true); UI_HeroListManager._instance.GetCard3Dmodel().rigidbody.isKinematic = false; UI_HeroListManager._instance.GetCard3Dmodel().transform.rotation = CurAngle; //需要打开公告条 UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(UI_HeroInfo._instance.m_captionPoston); } }
protected void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } ObjectSelf.GetInstance().SetIsPrompt(false); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_ActivityPointShow, RefreshItemRedPoint); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_ActivityRefreshSingle, RefreshSingleItem); GameEventDispatcher.Inst.removeEventListener(GameEventID.UI_ActivityMoneyChange, InstantiateIcon); Inst = null; }
void OnDestroy() { UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.Release(M_CapPos); } GameEventDispatcher.Inst.removeEventListener(GameEventID.G_ActionPoint_Update, UpdatePower); GameEventDispatcher.Inst.removeEventListener(GameEventID.G_Gold_Update, UpdateDiamond); GameEventDispatcher.Inst.removeEventListener(GameEventID.U_RefreshShopInfo, InitPowerShopUI); GameEventDispatcher.Inst.removeEventListener(GameEventID.KE_ModItemNum, InitPowerItemUI); GameEventDispatcher.Inst.removeEventListener(GameEventID.KE_KnapsackUpdateShow, InitPowerItemUI); }