Exemplo n.º 1
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonCustomBinder buttonCustomBinder = base.FindTransform("BtnUse").get_gameObject().AddComponent <ButtonCustomBinder>();

        buttonCustomBinder.BindingProxy              = base.get_gameObject();
        buttonCustomBinder.IsDownSuccession          = true;
        buttonCustomBinder.OnClickBinding.MemberName = "OnBtnUseClick";
        buttonCustomBinder.OnDownBinding.MemberName  = "OnBtnUseDown";
        buttonCustomBinder.OnUpBinding.MemberName    = "OnBtnUseUp";
        buttonCustomBinder.EnabledBinding.MemberName = "BtnUseEnable";
        ButtonBinder buttonBinder = base.FindTransform("BtnItem").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnItemUp";
    }
Exemplo n.º 2
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ToggleBinder toggleBinder = base.FindTransform("SubPets").get_gameObject().AddComponent <ToggleBinder>();

        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SubPanelPets";
        toggleBinder = base.FindTransform("SubFormation").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SubPanelFormation";
        toggleBinder = base.FindTransform("SubCombination").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SubPanelCombination";
        toggleBinder = base.FindTransform("FnBtnLevel").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "FnBtnLevel";
        toggleBinder = base.FindTransform("FnBtnUpgrade").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "FnBtnUpgrade";
        toggleBinder = base.FindTransform("FnBtnSkillEvo").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "FnBtnSkillEvo";
        toggleBinder = base.FindTransform("ToggleAttribute").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SubPanelSkillEvo";
        toggleBinder.OffWhenDisable          = false;
        toggleBinder = base.FindTransform("ToggleNatural").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SubPanelNaturalEvo";
        toggleBinder.OffWhenDisable          = false;
        ButtonBinder buttonBinder = base.FindTransform("MorphBtn").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnMorphBtnUp";
        buttonBinder = base.FindTransform("SPBtnBuy").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnSPBtnBuyUp";
        VisibilityBinder visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();

        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "SPBtnBuyEnable";
        visibilityBinder.Target = base.FindTransform("SPBtnBuy").get_gameObject();
        ButtonCustomBinder buttonCustomBinder = base.FindTransform("SupportSkill").get_gameObject().AddComponent <ButtonCustomBinder>();

        buttonCustomBinder.BindingProxy             = base.get_gameObject();
        buttonCustomBinder.OnDownBinding.MemberName = "OnSupportSkillBtnDown";
        buttonCustomBinder.OnUpBinding.MemberName   = "OnSupportSkillBtnUp";
        buttonBinder = base.FindTransform("BtnLevel1").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnLevel1";
        buttonBinder.EnabledBinding.MemberName = "BtnLevelOn";
        buttonBinder = base.FindTransform("BtnLevel10").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnLevel10";
        buttonBinder.EnabledBinding.MemberName = "BtnLevelOn";
        buttonBinder = base.FindTransform("BtnUpgradeObtain").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnUpgradeObtainUp";
        buttonBinder = base.FindTransform("BtnUpgrade").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnUpgradeUp";
        buttonBinder.EnabledBinding.MemberName = "BtnUpgradeEnable";
        buttonBinder = base.FindTransform("BtnPreview").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnPreview";
        buttonBinder = base.FindTransform("SubPPIArrowL").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnPPIArrowL";
        buttonBinder = base.FindTransform("SubPPIArrowR").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnPPIArrowR";
        buttonBinder = base.FindTransform("BtnFollow").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnFollowUp";
        buttonBinder = base.FindTransform("BtnResetLevel").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnResetLevel";
        buttonBinder.EnabledBinding.MemberName = "BtnResetLevelOn";
    }