Exemplo n.º 1
0
 public override void init()
 {
     a3_resetlvl._instance = this;
     base.getEventTrigerByPath("body/leftbody/role/TouchDrag").onDrag = new EventTriggerListener.VectorDelegate(this.OnDrag);
     this.resetlvlDesc              = base.transform.FindChild("resetlvlDesc").gameObject;
     this.touchBG                   = new BaseButton(base.transform.FindChild("resetlvlDesc/Touch"), 1, 1);
     this.btn_closeDesc             = new BaseButton(base.transform.FindChild("resetlvlDesc/btn_close"), 1, 1);
     this.btn_closeDesc.onClick     = new Action <GameObject>(this.onTouchBGClick);
     this.touchBG.onClick           = new Action <GameObject>(this.onTouchBGClick);
     this.roleModle                 = base.transform.FindChild("roledummy").gameObject;
     this.lab_fightingCapacityValue = base.transform.FindChild("body/leftbody/bottom/value").gameObject.GetComponent <Text>();
     this.lab_level                 = base.transform.FindChild("body/leftbody/title/level/value").gameObject.GetComponent <Text>();
     this.lab_experience            = base.transform.FindChild("body/rightbody/body/experience/value").gameObject.GetComponent <Text>();
     this.image1                    = base.transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/1").GetComponent <Image>();
     this.image10                   = base.transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/10").GetComponent <Image>();
     this.image100                  = base.transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/100").GetComponent <Image>();
     this.lab_consumeGolds          = base.transform.FindChild("bottom/btn_reincarnation/consumeGolds/value").gameObject.GetComponent <Text>();
     this.lab_waradEquip            = base.transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradEquip/desc").GetComponent <Text>();
     this.sliderExperience          = base.transform.FindChild("body/rightbody/body/experience").GetComponent <Slider>();
     this.txt_currentZhuan          = base.transform.FindChild("body/rightbody/title/currentZhuan/txtZhuan").GetComponent <Image>();
     this.txt_targetZhuan           = base.transform.FindChild("body/rightbody/title/targetZhuan/txtZhuan").GetComponent <Image>();
     this.nextZhuanLvl              = base.transform.FindChild("body/rightbody/title/txtLvl").GetComponent <Text>();
     this.btn_close                 = new BaseButton(base.transform.FindChild("btn_close"), 1, 1);
     this.btn_close.onClick         = new Action <GameObject>(this.onBtnCloseClick);
     this.btn_description           = new BaseButton(base.transform.FindChild("title/btn_description"), 1, 1);
     this.btn_description.onClick   = new Action <GameObject>(this.onDescriptionClick);
     this.btn_reincarnation         = new BaseButton(base.transform.FindChild("bottom/btn_reincarnation"), 1, 1);
     this.btn_reincarnation.onClick = new Action <GameObject>(this.onReincarnationClick);
 }
Exemplo n.º 2
0
        public override void init()
        {
            getComponentByPath <Text>("body/rightbody/title/Text").text           = ContMgr.getCont("a3_resetlvl_0");
            getComponentByPath <Text>("body/rightbody/body/unlock/Text").text     = ContMgr.getCont("a3_resetlvl_2");
            getComponentByPath <Text>("body/leftbody/title/level/leveltext").text = ContMgr.getCont("a3_resetlvl_3");
            getComponentByPath <Text>("bottom/btn_reincarnation/Text").text       = ContMgr.getCont("a3_resetlvl_4");
            getComponentByPath <Text>("resetlvlDesc/title/label").text            = ContMgr.getCont("a3_resetlvl_5");
            getComponentByPath <Text>("resetlvlDesc/Text").text = ContMgr.getCont("a3_resetlvl_6");



            _instance = this;
            this.getEventTrigerByPath("body/leftbody/role/TouchDrag").onDrag = OnDrag;
            resetlvlDesc          = transform.FindChild("resetlvlDesc").gameObject;
            touchBG               = new BaseButton(transform.FindChild("resetlvlDesc/Touch"));
            btn_closeDesc         = new BaseButton(transform.FindChild("resetlvlDesc/btn_close"));
            btn_closeDesc.onClick = onTouchBGClick;
            touchBG.onClick       = onTouchBGClick;

            #region left panel
            roleModle = transform.FindChild("roledummy").gameObject;
            lab_fightingCapacityValue = transform.FindChild("body/leftbody/bottom/value").gameObject.GetComponent <Text>();

            #endregion left panel
            #region right panel
            lab_level = transform.FindChild("body/leftbody/title/level/value").gameObject.GetComponent <Text>();

            lab_experience = transform.FindChild("body/rightbody/body/experience/value").gameObject.GetComponent <Text>();

            image1   = transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/1").GetComponent <Image>();
            image10  = transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/10").GetComponent <Image>();
            image100 = transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradProperty/num/100").GetComponent <Image>();

            lab_consumeGolds = transform.FindChild("bottom/btn_reincarnation/consumeGolds/value").gameObject.GetComponent <Text>();

            lab_waradEquip   = transform.FindChild("body/rightbody/body/ScrollRectPanel/GridLayoutPanel/waradEquip/desc").GetComponent <Text>();
            sliderExperience = transform.FindChild("body/rightbody/body/experience").GetComponent <Slider>();

            txt_currentZhuan = transform.FindChild("body/rightbody/title/currentZhuan/txtZhuan").GetComponent <Image>();
            txt_targetZhuan  = transform.FindChild("body/rightbody/title/targetZhuan/txtZhuan").GetComponent <Image>();
            nextZhuanLvl     = transform.FindChild("body/rightbody/title/txtLvl").GetComponent <Text>();
            #endregion right panel
            #region button click
            btn_close         = new BaseButton(transform.FindChild("btn_close"));
            btn_close.onClick = onBtnCloseClick;

            btn_description         = new BaseButton(transform.FindChild("title/btn_description"));
            btn_description.onClick = onDescriptionClick;

            btn_reincarnation         = new BaseButton(transform.FindChild("bottom/btn_reincarnation"));
            btn_reincarnation.onClick = onReincarnationClick;
            #endregion button
        }