Example #1
0
 protected override void InitUI()
 {
     base.InitUI();
     this.eliteSRC                       = base.FindTransform("EliteSRC").GetComponent <ScrollRectCustom>();
     this.eliteSRC.movePage              = false;
     this.eliteSRC.Arrow2First           = base.FindTransform("PreButton");
     this.eliteSRC.Arrow2Last            = base.FindTransform("NextButton");
     this.eliteDungeonItemRegionListPool = base.FindTransform("EliteDungeonItemRegion").GetComponent <ListPool>();
     this.arenaBtnList                   = new List <Transform>();
     for (int i = 1; i < 6; i++)
     {
         Transform transform = base.FindTransform("WorldMap" + i);
         if (transform != null)
         {
             transform.GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickChangeArena);
             this.arenaBtnList.Add(transform);
         }
     }
     this.nextPageBtn = base.FindTransform("NextButton").GetComponent <ButtonCustom>();
     this.prePageBtn  = base.FindTransform("PreButton").GetComponent <ButtonCustom>();
     this.nextPageBtn.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickNextPage);
     this.prePageBtn.onClickCustom  = new ButtonCustom.VoidDelegateObj(this.OnClickPreviousPage);
     this.canGetPrizeTimesTxt       = base.FindTransform("CanGetPrizeTimesTxt").FindChild("Des").GetComponent <Text>();
     this.resetGetPrizeTimesTxt     = base.FindTransform("ResetPrizeTimesTxt").FindChild("Des").GetComponent <Text>();
     this.eliteDungeonItemRegionListPool.Clear();
 }
Example #2
0
    protected override void InitUI()
    {
        this.endPos = this.targetPos;
        this.isOut  = true;
        base.FindTransform("Desc").GetComponent <Text>().set_text(string.Format("<color=#e4ffff>{0}</color>", GameDataUtils.GetChineseContent(70999, false)));
        this.pool1              = base.FindTransform("Grid").GetComponent <ListPool>();
        this.scroll             = base.FindTransform("Content").GetComponent <ScrollRectCustom>();
        this.scroll.Arrow2First = base.FindTransform("left");
        this.scroll.Arrow2Last  = base.FindTransform("right");
        this.slider             = base.FindTransform("Fill").GetComponent <Image>();
        this.sliderShow         = base.FindTransform("sum").GetComponent <Text>();
        this.attrUI             = base.FindTransform("Des").GetComponent <Text>();
        ButtonCustom expr_E7 = base.FindTransform("Right").GetComponent <ButtonCustom>();

        expr_E7.onClickCustom = (ButtonCustom.VoidDelegateObj)Delegate.Combine(expr_E7.onClickCustom, new ButtonCustom.VoidDelegateObj(this.OnClickDes));
        ButtonCustom expr_118 = base.FindTransform("addButton").GetComponent <ButtonCustom>();

        expr_118.onClickCustom = (ButtonCustom.VoidDelegateObj)Delegate.Combine(expr_118.onClickCustom, new ButtonCustom.VoidDelegateObj(this.AddBtn));
        ButtonCustom expr_149 = base.FindTransform("left").GetComponent <ButtonCustom>();

        expr_149.onClickCustom = (ButtonCustom.VoidDelegateObj)Delegate.Combine(expr_149.onClickCustom, new ButtonCustom.VoidDelegateObj(this.OnClickLeft));
        ButtonCustom expr_17A = base.FindTransform("right").GetComponent <ButtonCustom>();

        expr_17A.onClickCustom    = (ButtonCustom.VoidDelegateObj)Delegate.Combine(expr_17A.onClickCustom, new ButtonCustom.VoidDelegateObj(this.OnClickRight));
        this.scroll.OnMoveStopped = new Action <int>(this.SwitchTips);
    }
Example #3
0
 protected override void InitUI()
 {
     base.InitUI();
     this.mBtnLeftArrow  = base.FindTransform("btnLeftArrow").GetComponent <ButtonCustom>();
     this.mBtnRightArrow = base.FindTransform("btnRightArrow").GetComponent <ButtonCustom>();
     this.mBtnLeftArrow.onClickCustom  = new ButtonCustom.VoidDelegateObj(this.OnClickLeftArrow);
     this.mBtnRightArrow.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickRightArrow);
     this.mImgTitle    = base.FindTransform("imgType").GetComponent <Image>();
     this.mItemList    = new List <GodWeaponItem>();
     this.mGoListPanel = base.FindTransform("ListPanel").get_gameObject();
     this.mListGrid    = base.FindTransform("Grid").GetComponent <RectTransform>();
     this.mPageWitch   = this.mListGrid.GetComponent <GridLayoutGroup>().get_cellSize().x * 5f;
     this.mScrollRect  = base.FindTransform("Content").GetComponent <ScrollRectCustom>();
     base.FindTransform("Toggle1").GetComponent <Toggle>().onValueChanged.AddListener(delegate(bool isOn)
     {
         if (isOn)
         {
             this.SwitchGodType(1);
         }
     });
     base.FindTransform("Toggle2").GetComponent <Toggle>().onValueChanged.AddListener(delegate(bool isOn)
     {
         if (isOn)
         {
             this.SwitchGodType(2);
         }
     });
     base.FindTransform("Toggle3").GetComponent <Toggle>().onValueChanged.AddListener(delegate(bool isOn)
     {
         if (isOn)
         {
             this.SwitchGodType(3);
         }
     });
     base.FindTransform("Toggle4").GetComponent <Toggle>().onValueChanged.AddListener(delegate(bool isOn)
     {
         if (isOn)
         {
             this.SwitchGodType(4);
         }
     });
     this.mGoDescPanel  = base.FindTransform("DescPanel").get_gameObject();
     this.mImgGodWeapon = base.FindTransform("WeaponImage").GetComponent <Image>();
     this.mRawGodWeapon = base.FindTransform("WeaponModel").GetComponent <RawImage>();
     this.mRawGodWeapon.set_material(RTManager.Instance.RTNoAlphaMat);
     this.mTxModelName  = base.FindTransform("txModelName").GetComponent <Text>();
     this.mSkillIcon    = base.FindTransform("Icon").GetComponent <Image>();
     this.mTxSkillName  = base.FindTransform("txSkillName").GetComponent <Text>();
     this.mTxWeaponName = base.FindTransform("txWeaponName").GetComponent <Text>();
     this.mTxWeaponDesc = base.FindTransform("txWeaponDesc").GetComponent <Text>();
     this.mTxSkillTitle = base.FindTransform("txSkillTitle").GetComponent <Text>();
     this.mTxSkillDesc  = base.FindTransform("txSkillDesc").GetComponent <Text>();
     this.mTxGetDesc    = base.FindTransform("txGetDesc").GetComponent <Text>();
     this.mBtnChallenge = base.FindTransform("btnChallenge").GetComponent <ButtonCustom>();
     this.mBtnChallenge.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickChallenge);
 }
Example #4
0
 protected override void InitUI()
 {
     base.InitUI();
     DepthManager.SetDepth(base.FindTransform("Layer1").get_gameObject(), 10001);
     DepthManager.SetGraphicRaycaster(base.FindTransform("Layer1").get_gameObject());
     DepthManager.SetDepth(base.FindTransform("Layer2").get_gameObject(), 10003);
     this.Pause                      = base.FindTransform("Pause");
     this.m_goButtonSkip             = base.FindTransform("ButtonSkip").get_gameObject();
     this.MaskScreen                 = base.FindTransform("MaskScreen");
     this.m_spMaskScreen             = base.FindTransform("MaskScreen").GetComponent <Image>();
     this.JumpContinueUI             = base.FindTransform("JumpContinueUI");
     this.m_spContinueIcon           = base.FindTransform("ContinueIcon").GetComponent <Image>();
     this.m_spContinueIconName       = base.FindTransform("ContinueIconName").GetComponent <Image>();
     this.m_spContinueIconBg         = base.FindTransform("ContinueIconBg").GetComponent <Image>();
     this.m_lblContinueTip           = base.FindTransform("ContinueTip").GetComponent <Text>();
     this.ContinueFX                 = base.FindTransform("ContinueFX");
     this.JumpDriftUI                = (base.FindTransform("JumpDriftUI") as RectTransform);
     this.JumpDriftUIPos             = (base.FindTransform("JumpDriftUIPos") as RectTransform);
     this.m_spJumpDriftUIIcon        = base.FindTransform("JumpDriftUIIcon").GetComponent <Image>();
     this.m_spJumpDriftUIIconBg      = base.FindTransform("JumpDriftUIIconBg").GetComponent <Image>();
     this.FingerUI                   = (base.FindTransform("FingerUI") as RectTransform);
     this.FingerUIPos                = (base.FindTransform("FingerUIPos") as RectTransform);
     this.InstructionBubbleUI        = (base.FindTransform("InstructionBubbleUI") as RectTransform);
     this.InstructionBubbleBg1       = (base.FindTransform("InstructionBubbleBg1") as RectTransform);
     this.InstructionBubbleBg2       = (base.FindTransform("InstructionBubbleBg2") as RectTransform);
     this.m_lblInstructionBubbleDesc = base.FindTransform("InstructionBubbleDesc").GetComponent <Text>();
     this.InstructionRoleUI          = (base.FindTransform("InstructionRoleUI") as RectTransform);
     this.InstructionRoleBg          = (base.FindTransform("InstructionRoleBg") as RectTransform);
     this.InstructionRoleIcon        = base.FindTransform("InstructionRoleIcon");
     this.m_lblInstructionRoleDesc   = base.FindTransform("InstructionRoleDesc").GetComponent <Text>();
     this.ImageShowUI                = (base.FindTransform("ImageShowUI") as RectTransform);
     this.m_src                      = base.FindTransform("ISUIImageSR").GetComponent <ScrollRectCustom>();
     this.m_src.movePage             = true;
     this.m_src.Arrow2First          = base.FindTransform("ISUIArrowL");
     this.m_src.Arrow2Last           = base.FindTransform("ISUIArrowR");
     this.m_src.OnPageChanged        = delegate(int pageIndex)
     {
         PageUIView.Instance.SetPage(this.m_src.GetPageNum(), pageIndex);
     };
     this.m_listPool = base.FindTransform("ISUIImageList").GetComponent <ListPool>();
     this.m_listPool.SetItem("GuideUIImageShowItem");
     this.m_listPool.isAnimation = false;
     this.ResetGuideUI();
     EventTriggerListener.Get(base.FindTransform("ButtonSkip").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnButtonSkip);
     EventTriggerListener.Get(base.FindTransform("MaskScreen").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnMaskScreen);
     EventTriggerListener.Get(base.FindTransform("ButtonContinue").get_gameObject()).onClick  = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonContinue);
     EventTriggerListener.Get(base.FindTransform("ISUIButtonClose").get_gameObject()).onClick = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonClose);
     EventTriggerListener.Get(base.FindTransform("ISUIArrowL").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonArrowL);
     EventTriggerListener.Get(base.FindTransform("ISUIArrowR").get_gameObject()).onClick      = new EventTriggerListener.VoidDelegateGameObject(this.OnClickButtonArrowR);
 }
    protected override void InitUI()
    {
        base.InitUI();
        ScrollRectCustom component = base.FindTransform("ItemSR").GetComponent <ScrollRectCustom>();

        component.onBeginDrag = delegate(PointerEventData data)
        {
            PrivilegeUIView.Instance.PrivilegeDetailSR.OnBeginDrag(data);
        };
        component.onEndDrag = delegate(PointerEventData data)
        {
            PrivilegeUIView.Instance.PrivilegeDetailSR.OnEndDrag(data);
        };
        component.onDrag = delegate(PointerEventData data)
        {
            PrivilegeUIView.Instance.PrivilegeDetailSR.OnDrag(data);
        };
        base.FindTransform("TextDetialPower").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(80261, true));
    }
Example #6
0
    private void Awake()
    {
        base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
        this.careerListPool = base.FindTransform("RankUpChangeUICareerUnitList").GetComponent <ListPool>();
        this.careerListPool.SetItem("RankUpChangeUICareerUnit");
        this.RankUpChangeUIAttrTextTitle0 = base.FindTransform("RankUpChangeUIAttrTextTitle0").GetComponent <Text>();
        this.RankUpChangeUIAttrText0      = base.FindTransform("RankUpChangeUIAttrText0").GetComponent <Text>();
        this.RankUpChangeUIAttrTextTitle1 = base.FindTransform("RankUpChangeUIAttrTextTitle1").GetComponent <Text>();
        this.RankUpChangeUIAttrText1      = base.FindTransform("RankUpChangeUIAttrText1").GetComponent <Text>();
        this.RankUpChangeUIAttrTextTitle2 = base.FindTransform("RankUpChangeUIAttrTextTitle2").GetComponent <Text>();
        this.RankUpChangeUIAttrText2      = base.FindTransform("RankUpChangeUIAttrText2").GetComponent <Text>();
        this.RankUpChangeUISkillFG        = base.FindTransform("RankUpChangeUISkillFG").GetComponent <Image>();
        this.RankUpChangeUISkillText      = base.FindTransform("RankUpChangeUISkillText").GetComponent <Text>();
        this.RankUpChangeUIStageUnitSR    = base.FindTransform("RankUpChangeUIStageUnitSR").GetComponent <ScrollRectCustom>();
        this.stageListPool = base.FindTransform("RankUpChangeUIStageUnitList").GetComponent <ListPool>();
        this.stageListPool.SetItem("RankUpChangeUIStageUnit");
        this.RankUpChangeUIStageUnitLeftArrow  = base.FindTransform("RankUpChangeUIStageUnitLeftArrow").get_gameObject();
        this.RankUpChangeUIStageUnitRightArrow = base.FindTransform("RankUpChangeUIStageUnitRightArrow").get_gameObject();
        this.RankUpChangeUIPreviewSlot         = base.FindTransform("RankUpChangeUIPreviewSlot");
        this.RankUpChangeUISuccessSign         = base.FindTransform("RankUpChangeUISuccessSign").get_gameObject();
        base.FindTransform("RankUpChangeUICloseImage").GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickCloseBtn);
        this.RankUpChangeUISkillFG.GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickIconBtn);
        this.RankUpChangeUIStageUnitSR.OnPageChanged = new Action <int>(this.UpdateStageBtn);
        this.RankUpChangeUIStageUnitLeftArrow.GetComponent <ButtonCustom>().onClickCustom  = new ButtonCustom.VoidDelegateObj(this.OnClickStageLeftBtn);
        this.RankUpChangeUIStageUnitRightArrow.GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickStageRightBtn);
        if (DataReader <GlobalParams> .Contains("advancedJobText"))
        {
            string value = DataReader <GlobalParams> .Get("advancedJobText").value;

            string[] array = value.Split(new char[]
            {
                ';'
            });
            if (array.Length > 2)
            {
                base.FindTransform("RankUpChangeUIAttrTitleText").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(int.Parse(array[0]), false));
                base.FindTransform("RankUpChangeUISkillTitleText").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(int.Parse(array[1]), false));
                base.FindTransform("RankUpChangeUIStageTitleText").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(int.Parse(array[2]), false));
            }
        }
    }
Example #7
0
 protected override void InitUI()
 {
     base.InitUI();
     base.FindTransform("BtnRechargeText").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(508005, false));
     base.FindTransform("BtnDetailText").GetComponent <Text>().set_text(GameDataUtils.GetChineseContent(508026, false));
     this.btnRechargeObj = base.FindTransform("BtnRecharge").get_gameObject();
     this.btnDetailObj   = base.FindTransform("BtnDetail").get_gameObject();
     this.m_lblPrivilegeDetailPageNum = base.FindTransform("PrivilegeDetailPageNum").GetComponent <Text>();
     this.PrivilegeDetailSR           = base.FindTransform("PrivilegeDetailSR").GetComponent <ScrollRectCustom>();
     this.CommonBtnUnSelect1          = base.FindTransform("BtnUnSelect1").get_gameObject();
     this.CommonBtnUnSelect2          = base.FindTransform("BtnUnSelect2").get_gameObject();
     this.CommonBtnUnSelect3          = base.FindTransform("BtnUnSelect3").get_gameObject();
     this.CommonBtnUnSelect4          = base.FindTransform("BtnUnSelect4").get_gameObject();
     this.CommonBtnText1  = base.FindTransform("BtnNameText1").GetComponent <Text>();
     this.CommonBtnText2  = base.FindTransform("BtnNameText2").GetComponent <Text>();
     this.CommonBtnText3  = base.FindTransform("BtnNameText3").GetComponent <Text>();
     this.CommonBtnText4  = base.FindTransform("BtnNameText4").GetComponent <Text>();
     this.BtnTips3        = base.FindTransform("BtnTips3").get_gameObject();
     this.BtnTips4        = base.FindTransform("BtnTips4").get_gameObject();
     this.Bgs4            = base.FindTransform("Bgs4").get_gameObject();
     this.VIPExp          = base.FindTransform("VIP").get_gameObject();
     this.PrivilegeInvest = base.FindTransform("PrivilegeInvest").get_gameObject();
 }
Example #8
0
 protected override void InitUI()
 {
     base.InitUI();
     this.BossName                  = base.FindTransform("BossName").GetComponent <Text>();
     this.BossIcon                  = base.FindTransform("BossIcon").GetComponent <Image>();
     this.Times                     = base.FindTransform("TimesNum").GetComponent <Text>();
     this.ButtonBuyTimes            = base.FindTransform("ButtonBuyTimes").GetComponent <ButtonCustom>();
     this.ButtonDesc                = base.FindTransform("ButtonDesc").GetComponent <ButtonCustom>();
     this.Select                    = base.FindTransform("SelectRoot");
     this.scrollRect                = base.FindTransform("DifficultyList").GetComponent <ScrollRectCustom>();
     this.TipsHasFinish             = base.FindTransform("TipsHasFinish").get_gameObject();
     this.TipsNotFinish             = base.FindTransform("TipsNotFinish").get_gameObject();
     this.UpImage                   = base.FindTransform("UpBgImg").GetComponent <RectTransform>();
     this.DownImage                 = base.FindTransform("DownBgImg").GetComponent <RectTransform>();
     this.ListItems                 = base.FindTransform("ListItems").GetComponent <RectTransform>();
     this.ItemPrefab                = base.FindTransform("Difficulty1").get_gameObject();
     this.SCBtn                     = base.FindTransform("SCButton").GetComponent <ButtonCustom>();
     this.SCBtn.onClickCustom       = new ButtonCustom.VoidDelegateObj(this.StartSCFight);
     this.ChestBtn                  = base.FindTransform("ButtonReward").GetComponent <ButtonCustom>();
     this.ChestBtn.onClickCustom    = new ButtonCustom.VoidDelegateObj(this.OnClickChest);
     this.RankListBtn               = base.FindTransform("ButtonRank").GetComponent <ButtonCustom>();
     this.RankListBtn.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickRankList);
     this.ButtonDesc.onClickCustom  = new ButtonCustom.VoidDelegateObj(this.OnClickDesc);
 }
Example #9
0
    protected override void DataBinding()
    {
        base.DataBinding();
        ListBinder listBinder = base.FindTransform("PrivilegeDetailList").get_gameObject().AddComponent <ListBinder>();

        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "PrivilegePageDetail";
        listBinder.SourceBinding.MemberName = "PrivilegePageDetails";
        listBinder.ShiftBinding.MemberName  = "PrivilegeDetailShiftType";
        ScrollRectCustom component = base.FindTransform("PrivilegeDetailSR").GetComponent <ScrollRectCustom>();

        component.movePage      = true;
        component.OnPageChanged = delegate(int pageIndex)
        {
            this.m_lblPrivilegeDetailPageNum.set_text(pageIndex.ToString());
            this.PrivilegeDetailPageIndex = pageIndex;
            this.SetPage(pageIndex);
        };
        listBinder = base.FindTransform("VipBtnList").get_gameObject().AddComponent <ListBinder>();
        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "VipBtn";
        listBinder.SourceBinding.MemberName = "VipBtns";
        listBinder.ShiftBinding.MemberName  = "VipBtnsType";
        listBinder = base.FindTransform("RechargeList").get_gameObject().AddComponent <ListBinder>();
        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "RechargeUnit";
        listBinder.SourceBinding.MemberName = "RechargeUnitItems";
        ScrollRectCustom component2 = base.FindTransform("RechargeSR").GetComponent <ScrollRectCustom>();

        component2.movePage                 = false;
        listBinder                          = base.FindTransform("CardList").get_gameObject().AddComponent <ListBinder>();
        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "CardItem";
        listBinder.SourceBinding.MemberName = "LimitCardItems";
        ListShiftBinder listShiftBinder = base.FindTransform("RechargeList").get_gameObject().AddComponent <ListShiftBinder>();

        listShiftBinder.BindingProxy            = base.get_gameObject();
        listShiftBinder.ShiftBinding.MemberName = "RechargeShiftType";
        listShiftBinder = base.FindTransform("CardList").get_gameObject().AddComponent <ListShiftBinder>();
        listShiftBinder.BindingProxy            = base.get_gameObject();
        listShiftBinder.ShiftBinding.MemberName = "CardListType";
        VisibilityBinder visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();

        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("PrivilegeDetailRegion").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "PrivilegeDetailVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("RechargeRegion").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "RechargeVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("PrivilegeLimitRegion").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "LimitVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("VIPNextRegion").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "VIPNextVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("viplevelUpTip").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "VIPLevelUpTipVisisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("VIPNextNum").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "VIPNextNumVisisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("VIPNextTitle").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "VIPNextTitleVisisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("VIPDayExp").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "VIPDayExpVisisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("ImageTitleInfo1").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "ImageTitleInfo1Visisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("ImageTitleInfo2").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "ImageTitleInfo2Visisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("ImageTitleInfo3").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "ImageTitleInfo3Visisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("CardBg1").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "CardBg1Visisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("CardBg2").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "CardBg2Visisbility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("CardBg3").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "CardBg3Visisbility";
        FillAmmountBinder fillAmmountBinder = base.FindTransform("VIPBarFg").get_gameObject().AddComponent <FillAmmountBinder>();

        fillAmmountBinder.BindingProxy = base.get_gameObject();
        fillAmmountBinder.FillValueBinding.MemberName = "VIPFillAmount";
        TextBinder textBinder = base.FindTransform("VIPProgress").get_gameObject().AddComponent <TextBinder>();

        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPProgress";
        textBinder = base.FindTransform("VIPNextNum").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPNextNum";
        textBinder = base.FindTransform("VIPNextLevel").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPNextLevel";
        textBinder = base.FindTransform("VIPNextTitle").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPNextTitle";
        textBinder = base.FindTransform("vipNowLv").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPLVNow";
        textBinder = base.FindTransform("viplevelUpTip").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPLevelUpTip";
        textBinder = base.FindTransform("VIPDayExp").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPDayExp";
        textBinder = base.FindTransform("VIPExpInfo").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "VIPExpInfo";
        textBinder = base.FindTransform("CardEffectContent").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "CardEffectContent";
        textBinder.SetHeight               = true;
        textBinder                         = base.FindTransform("TextTitleStr").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "TextTitleStr";
        textBinder                         = base.FindTransform("TextTitleValue").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "TextTitleValue";
        ImageBinder imageBinder = base.FindTransform("ImageTitle").get_gameObject().AddComponent <ImageBinder>();

        imageBinder.BindingProxy             = base.get_gameObject();
        imageBinder.SpriteBinding.MemberName = "ImageTitleIcon";
        imageBinder.SetNativeSize            = true;
        imageBinder = base.FindTransform("VIPNowLevel10").get_gameObject().AddComponent <ImageBinder>();
        imageBinder.BindingProxy             = base.get_gameObject();
        imageBinder.SpriteBinding.MemberName = "VIPNowLevel10";
        imageBinder.SetNativeSize            = true;
        imageBinder = base.FindTransform("VIPNowLevel1").get_gameObject().AddComponent <ImageBinder>();
        imageBinder.BindingProxy             = base.get_gameObject();
        imageBinder.SpriteBinding.MemberName = "VIPNowLevel1";
        imageBinder.SetNativeSize            = true;
        textBinder = base.FindTransform("TextPower").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "TextPower";
    }
Example #10
0
    public static void SetShift(ScrollRectCustom src, object arg)
    {
        if (arg == null)
        {
            return;
        }
        if (src == null)
        {
            return;
        }
        Vector3 action    = (Vector3)arg;
        bool    bRightNow = action.z == 1f;

        switch ((int)action.x)
        {
        case 1:
            src.Move2Next();
            break;

        case 2:
            src.Move2Previous();
            break;

        case 3:
            src.Move2First(bRightNow);
            src.OnHasBuilt = delegate
            {
                src.OnHasBuilt = null;
                src.Move2First(bRightNow);
            };
            break;

        case 4:
            src.Move2Last(bRightNow);
            src.OnHasBuilt = delegate
            {
                src.OnHasBuilt = null;
                src.Move2Last(bRightNow);
            };
            break;

        case 5:
            src.Move2Page((int)action.y, bRightNow);
            src.OnHasBuilt = delegate
            {
                if (src.GetPageNum() > (int)action.y)
                {
                    src.OnHasBuilt = null;
                    src.Move2Page((int)action.y, bRightNow);
                }
            };
            break;

        case 6:
            src.Move2Index((int)action.y, bRightNow);
            src.OnHasBuilt = delegate
            {
                src.OnHasBuilt = null;
                src.Move2Index((int)action.y, bRightNow);
            };
            break;
        }
    }
Example #11
0
    protected override void DataBinding()
    {
        base.DataBinding();
        ListBinder listBinder = base.FindTransform("Show1ItemList").get_gameObject().AddComponent <ListBinder>();

        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "ShoppingPage";
        listBinder.SourceBinding.MemberName = "ItemList1";
        ScrollRectCustom itemSR1 = base.FindTransform("Show1ItemSR").GetComponent <ScrollRectCustom>();

        itemSR1.movePage      = true;
        itemSR1.Arrow2First   = base.FindTransform("ArrowL");
        itemSR1.Arrow2Last    = base.FindTransform("ArrowR");
        itemSR1.OnPageChanged = delegate(int pageIndex)
        {
            this.m_lblPageNum.set_text((pageIndex + 1).ToString());
            PageUIView.Instance.SetPage(itemSR1.GetPageNum(), pageIndex);
            ShoppingUIViewModel.Instance.CurrentPageIndex = pageIndex;
        };
        ListShiftBinder listShiftBinder = base.FindTransform("Show1ItemList").get_gameObject().AddComponent <ListShiftBinder>();

        listShiftBinder.BindingProxy            = base.get_gameObject();
        listShiftBinder.ShiftBinding.MemberName = "ShiftType";
        listBinder = base.FindTransform("Show2ItemList").get_gameObject().AddComponent <ListBinder>();
        listBinder.BindingProxy             = base.get_gameObject();
        listBinder.PrefabName               = "ShoppingPage2";
        listBinder.SourceBinding.MemberName = "ItemList2";
        ScrollRectCustom itemSR2 = base.FindTransform("Show2ItemSR").GetComponent <ScrollRectCustom>();

        itemSR2.movePage      = true;
        itemSR2.Arrow2First   = base.FindTransform("ArrowL");
        itemSR2.Arrow2Last    = base.FindTransform("ArrowR");
        itemSR2.OnPageChanged = delegate(int pageIndex)
        {
            this.m_lblPageNum.set_text((pageIndex + 1).ToString());
            PageUIView.Instance.SetPage(itemSR2.GetPageNum(), pageIndex);
            ShoppingUIViewModel.Instance.CurrentPageIndex = pageIndex;
        };
        listShiftBinder = base.FindTransform("Show2ItemList").get_gameObject().AddComponent <ListShiftBinder>();
        listShiftBinder.BindingProxy            = base.get_gameObject();
        listShiftBinder.ShiftBinding.MemberName = "ShiftType";
        VisibilityBinder visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();

        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("BtnRefresh").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "BtnRefreshVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("CurrentCoin").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "CurrentCoinVisibility";
        visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("RemainRefreshTimesRegion").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "RemainRefreshTimesRegion";
        ImageBinder imageBinder = base.FindTransform("CurrentCoinIcon").get_gameObject().AddComponent <ImageBinder>();

        imageBinder.BindingProxy             = base.get_gameObject();
        imageBinder.SpriteBinding.MemberName = "CurrentCoinIcon";
        imageBinder = base.FindTransform("RefreshCoinIcon").get_gameObject().AddComponent <ImageBinder>();
        imageBinder.BindingProxy             = base.get_gameObject();
        imageBinder.SpriteBinding.MemberName = "RefreshCoinIcon";
        TextBinder textBinder = base.FindTransform("CurrentCoinNum").get_gameObject().AddComponent <TextBinder>();

        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "CurrentCoinNum";
        textBinder = base.FindTransform("MarketName").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "MarketName";
        textBinder = base.FindTransform("RefreshTime").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "RefreshTime";
        textBinder = base.FindTransform("RemainRefreshTimes").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "RemainRefreshTimes";
        textBinder = base.FindTransform("BtnRefreshName").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "BtnRefreshName";
        textBinder = base.FindTransform("RefreshCoinNum").get_gameObject().AddComponent <TextBinder>();
        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "RefreshCoinNum";
    }