public override void InitUIData() { _instance = this; _Grid = selfTransform.FindChild("Content"); Skill_1ConImg = selfTransform.FindChild("ConI_1Img").GetComponent <Image>(); Skill_1ConTxt = Skill_1ConImg.transform.FindChild("Text").GetComponent <Text>(); Skill_2ConImg = selfTransform.FindChild("ConI_2Img").GetComponent <Image>(); Skill_2ConTxt = Skill_2ConImg.transform.FindChild("Text").GetComponent <Text>(); int _skillcount = 3; m_TipsImageArray = new GameObject[_skillcount]; //动态添加脚本 for (int i = 0; i < _Grid.childCount - 1; i++) { if (_Grid.GetChild(i).GetComponent <UI_SkillItem>() == null) { _Grid.GetChild(i).gameObject.AddComponent <UI_SkillItem>(); } if (i < _skillcount) { m_TipsImageArray[i] = _Grid.GetChild(i).FindChild("Button/TipsImage").gameObject; } } m_TipsController = CreateFunctionTipsController(); GameEventDispatcher.Inst.addEventListener(GameEventID.U_HeroChangeTarget, OnSelectCardHeroChanged); GameEventDispatcher.Inst.addEventListener(GameEventID.Net_RefreshHero, UpdateSkillUIShow); GameEventDispatcher.Inst.addEventListener(GameEventID.U_HeroChangeTarget, RefreshController); GameEventDispatcher.Inst.addEventListener(GameEventID.Net_RefreshHero, RefreshController); }
public override void InitUIData() { base.InitUIData(); m_TipsController = CreateFunctionTipsController(); m_CaptionLayoutPoint = selfTransform.FindChild("Background/LayoutPoint"); HomeControler.Inst.PushFunly(10, 97); GameEventDispatcher.Inst.addEventListener(GameEventID.UI_InterfaceChange, m_TipsController.Refresh); GameEventDispatcher.Inst.addEventListener(GameEventID.G_GetWorldBoss, m_TipsController.Refresh); }
public override void InitUIView() { base.InitUIView(); // ShowMedalReardNewImg(); OnClickGoldBtn(); ShowMedalCountText(); // InitDesTxt(); m_TipsController = CreateFunctionTipsController(); m_TipsController.Refresh(); GameEventDispatcher.Inst.addEventListener(GameEventID.HB_GetSTuJianHeros, m_TipsController.Refresh); }
public override void InitUIView() { base.InitUIView(); //int tableId = UI_HeroListManager._instance.heroList[0].tableId; //if (tableId!=null) //{ // ShowProperty(tableId, ObjectSelf.GetInstance().HeroContainerBag.GetHeroList()[0]); //} ShowProperty(UI_HeroInfoManager._instance.GetCurCard()); m_TipsController = CreateFunctionTipsController(); RefreshTipsController(); }
public override void InitUIView() { base.InitUIView(); //GoldShow(); OnAll(); BagItemSizeShow(); m_TipsController = CreateFunctionTipsController(); m_TipsController.Refresh(); ////设置常驻跑马灯位置 //UI_CaptionManager cap = UI_CaptionManager.GetInstance(); //if (cap != null) // cap.AwakeUp(m_captionPoston); }
public override void InitUIView() { base.InitUIView(); //等级 UpdateCurrentLevel(); //名字 UpdateRoleName(); //设置玩家经验进度 UpdateExbar(); //Vip等级 UpdateVipLevel(); UpdateMonthCardImg(); m_TipsController = CreateFunctionTipsController(); m_TipsController.Refresh(); GameEventDispatcher.Inst.addEventListener(GameEventID.UI_InterfaceChange, m_TipsController.Refresh); }
public override void InitUIData() { base.InitUIData(); m_Name.text = GameUtils.getString("muse_music_content6"); m_GetPowerText.text = GameUtils.getString("muse_music_title"); m_SacredAltarText.text = GameUtils.getString("54activitymission33des").Substring(0, 4); m_ExplorationText.text = GameUtils.getString("muse_music_content7"); HomeControler.Inst.PushFunly(11, 109); UI_CaptionManager cap = UI_CaptionManager.GetInstance(); if (cap != null) { cap.AwakeUp(M_CapPos); } m_TipsController = CreateFunctionTipsController(); GameEventDispatcher.Inst.addEventListener(GameEventID.UI_InterfaceChange, m_TipsController.Refresh); }
//初始化UI数据 public override void InitUIView() { if (ObjectSelf.GetInstance().isLimitWindow) { ObjectSelf.GetInstance().isLimitWindow = false; var _ui = UI_HomeControler.Inst.AddUI(UI_TestPanel.GetPath()); _ui.GetComponent <UI_TestPanel>().GotoLimitWindow(); } if (ObjectSelf.GetInstance().GetChangeLevel()) { ObjectSelf.GetInstance().SetChangeLevel(false); OnclickFightBtn(); } if (ObjectSelf.GetInstance().GetPromptTime()) { if (ObjectSelf.GetInstance().GetPromptFome()) { ObjectSelf.GetInstance().SetPromptFome(false); isPromptFome(); } if (ObjectSelf.GetInstance().GetPromptBttleend()) { ObjectSelf.GetInstance().SetPromptBttleend(false); isPromptBttleend(); } ObjectSelf.GetInstance().SetPromptTime(false); } if (ObjectSelf.GetInstance().GetPromoptFight()) { ObjectSelf.GetInstance().SetPromptFight(false); OnClickPromptBtn(); } if (ObjectSelf.GetInstance().GetHeroJoin()) { ObjectSelf.GetInstance().SetHeroJoin(false); UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); } if (ObjectSelf.GetInstance().GetProperty()) { ObjectSelf.GetInstance().SetProperty(false); FailButtonClick(2); } if (ObjectSelf.GetInstance().GetExUp()) { ObjectSelf.GetInstance().SetExUp(false); FailButtonClick(0); } if (ObjectSelf.GetInstance().GetSkillStr()) { ObjectSelf.GetInstance().SetSkillStr(false); FailButtonClick(3); } if (ObjectSelf.GetInstance().GetHandBook()) { ObjectSelf.GetInstance().SetHandBook(false); OnclickAtlasBtn(); } UI_HomeControler.NeedShowMedardGotoObj = ShowMedalReardGotoObj(); //经验 //uint Ex = ObjectSelf.GetInstance().ExpFruit; //Exbar.value = Ex; //英雄信息 ShowMianHeroData(); if (NeedShowBattlePanel) { NeedShowBattlePanel = false; OnclickFightBtn(); } m_TipsController = CreateFunctionTipsController(); m_TipsController.Refresh(); //InvokeRepeating("UpdateMainHeroInfo", 0, 1); JudegIsShowNewGuide(); InitGuide(); UI_HomeControler.Inst.AddUI(UI_CaptionManager.GetPath()); UpdateMainHeroInfo(); }