Esempio n. 1
0
        public override void init()
        {
            maploading.instance = this;
            Sprite[] collection = Resources.LoadAll <Sprite>("loading");
            this.bglist.AddRange(collection);
            this.go_info = base.transform.FindChild("info").gameObject;
            this.go_info.SetActive(true);
            this.loadingtext = base.getTransformByPath("info/loadingBar/Text").GetComponent <Text>();
            this.loadingMc   = base.getTransformByPath("info/loadingBar").GetComponent <Image>();
            this.bgimage     = base.transform.FindChild("info/bg_r").GetComponent <Image>();
            bool flag = Baselayer.cemaraRectTran == null;

            if (flag)
            {
                Baselayer.cemaraRectTran = GameObject.Find("Canvas_overlay").GetComponent <RectTransform>();
            }
            RectTransform cemaraRectTran = Baselayer.cemaraRectTran;
            RectTransform component      = base.getTransformByPath("info/bg_r").GetComponent <RectTransform>();

            component.sizeDelta = new Vector2(cemaraRectTran.rect.width, cemaraRectTran.rect.height);
            SXML        sXML     = XMLMgr.instance.GetSXML("tips", "");
            List <SXML> nodeList = sXML.GetNodeList("t", "");

            foreach (SXML current in nodeList)
            {
                string @string = current.getString("info");
                this.tips.Add(@string);
            }
            this.tiptext = base.getComponentByPath <Text>("info/tip/bg/text");
            base.gameObject.SetActive(true);
            base.transform.localScale = base.transform.localScale;
        }
Esempio n. 2
0
 public override void onShowed()
 {
     base.onShowed();
     this.RandomTip();
     this.Randombg();
     maploading.isshow = this;
     base.StartCoroutine(this.loading());
 }
Esempio n. 3
0
        public override void onShowed()
        {
            base.onShowed();
            RandomTip();
            Randombg();

            isshow = this;

            StartCoroutine(loading());
        }
Esempio n. 4
0
        public override void init()
        {
            instance = this;
            //Sprite[] l = new Sprite[2];
            //l[0] = GAMEAPI.ABUI_LoadSprite("loading_1");
            //l[1] = GAMEAPI.ABUI_LoadSprite("loading_2");
            //bglist.AddRange(l);
            count_sprite = XMLMgr.instance.GetSXML("comm.loading").getInt("num");
            go_info      = this.transform.FindChild("info").gameObject;
            go_info.SetActive(true);
            loadingtext = this.getTransformByPath("info/loadingBar/Text").GetComponent <Text>();
            loadingMc   = this.getTransformByPath("info/loadingBar").GetComponent <Image>();
            //   txtTips = this.getTransformByPath("txtTip").GetComponent<Text>();
            bgimage = this.transform.FindChild("info/bg_r").GetComponent <Image>();

            if (cemaraRectTran == null)
            {
                cemaraRectTran = GameObject.Find("Canvas_overlay").GetComponent <RectTransform>();
            }

            RectTransform cv = cemaraRectTran;

            RectTransform bg = this.getTransformByPath("info/bg_r").GetComponent <RectTransform>();

            bg.sizeDelta = new Vector2(cv.rect.width, cv.rect.height);


            var xml  = XMLMgr.instance.GetSXML("tips");
            var lxml = xml.GetNodeList("t");

            foreach (var v in lxml)
            {
                var ss = v.getString("info");
                tips.Add(ss);
            }
            tiptext = this.getComponentByPath <Text>("info/tip/bg/text");

            //解决有些手机第一次显示不出来的bug
            this.gameObject.SetActive(true);
            this.transform.localScale = this.transform.localScale;
            //CancelInvoke("showui_phone");
            //Invoke("showui_phone", 0.1f);
        }
Esempio n. 5
0
 public override void onClosed()
 {
     base.onClosed();
     isshow = null;
 }
Esempio n. 6
0
 public override void onClosed()
 {
     base.onClosed();
     maploading.isshow = null;
 }