Ejemplo n.º 1
0
 /// <summary>
 /// 刷新引导显示按钮列表
 /// </summary>
 private void DeltGuideInfoList()
 {
     int[] TaskArray = AdGuideShowTaskQueue.ToArray();
     for (int i = 0; i < InfoWindowList.Count; i++)
     {
         GuideInfoWidnow infoWd = InfoWindowList[i];
         if (i >= AdGuideShowTaskQueue.Count)
         {
             infoWd.InfoWindowGameObject.SetActive(false);
         }
         else
         {
             infoWd.mGuideInfo = ConfigReader.AdvancedGuideInfoDict[TaskArray[i]];
             infoWd.ShowGuideInfo();
         }
     }
 }
Ejemplo n.º 2
0
        //窗口控件初始化
        protected override void InitWidget()
        {
            Transform mAnchor = mRoot.FindChild("Anchor");

            for (int mcd = 0; mcd < mAnchor.childCount; mcd++)
            {
                GuideInfoWidnow infoWd = new GuideInfoWidnow(this);
                infoWd.InfoWindowGameObject = mAnchor.GetChild(mcd).gameObject;
                InfoWindowList.Add(infoWd);
                infoWd.InfoWindowGameObject.SetActive(false);
                Transform bg = infoWd.InfoWindowGameObject.transform.FindChild("BG");
                infoWd.DynamicLabel = infoWd.InfoWindowGameObject.transform.FindChild("BG/DynamicLabel").GetComponent <UILabel>();
                UIEventListener.Get(bg.gameObject).onClick += infoWd.GuideInfoOnClick;
            }

            GuideInfoWindow = mRoot.FindChild("UIGuideWindow").gameObject;
            mSmallTitle     = GuideInfoWindow.transform.FindChild("TopText").GetComponent <UILabel>();
            mInfoContent    = GuideInfoWindow.transform.FindChild("BottomText").GetComponent <UILabel>();
            mBtnContinue    = GuideInfoWindow.transform.FindChild("Button").GetComponent <UIButton>();
            mCenterPic      = GuideInfoWindow.transform.FindChild("CenterPic").GetComponent <UISprite>();
            EventDelegate.Add(mBtnContinue.onClick, OnButtonContinueOnClick);
            GuideInfoWindow.SetActive(false);
            InitAdGuideTask();
        }