Exemplo n.º 1
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.OnClickBinding.MemberName = "OnCheckUp";
    }
Exemplo n.º 2
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnRecharge").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnRechargeUp";
        buttonBinder = base.FindTransform("BtnDetail").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnBackToPrivilege";
        buttonBinder = base.FindTransform("CommonBtn1").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnVipLimit";
        buttonBinder = base.FindTransform("CommonBtn2").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnVipLv";
        buttonBinder = base.FindTransform("CommonBtn3").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnVipRecharge";
        buttonBinder = base.FindTransform("CommonBtn4").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnInvest";
        buttonBinder = base.FindTransform("BtnLimitCardBuy").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnLimitCardBuy";
        buttonBinder = base.FindTransform("CloseBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnClose";
    }
Exemplo n.º 3
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnConfirm").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.OnClickBinding.MemberName = "OnBtnComfirmClick";
    }
Exemplo n.º 4
0
        public View()
        {
            Presenter = GetPresenter();

            Init();
            new UIContributor().Contribute(this);

            if (Presenter == null)
            {
                return;
            }

            WireBinding();

            var buttons         = this.Children().OfType <ToolStrip>().SelectMany(t => t.Items.Cast <ToolStripItem>().OfType <ToolStripButton>());
            var consumedButtons = new ButtonBinder(Presenter).Apply(this, buttons);

            buttons = buttons.Except(consumedButtons);

            foreach (var button in buttons)
            {
                DefaultWireButtonTo(button, Presenter);
            }

            Wire();
        }
Exemplo n.º 5
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("OpenRegion").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickOK";
    }
Exemplo n.º 6
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnBuyUp";
        buttonBinder.EnabledBinding.MemberName = "EnableBtnBuy";
    }
Exemplo n.º 7
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnOpen").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnOpenClick";
        buttonBinder.EnabledBinding.MemberName = "EnableOfBtnOpen";
    }
Exemplo n.º 8
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnExit").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnExitUp";
        buttonBinder = base.FindTransform("BtnStatistics").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnStatisticsUp";
    }
Exemplo n.º 9
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("Background").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.OnClickBinding.MemberName = "OnClick";
        buttonBinder = base.FindTransform("ButtonMsg").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.OnClickBinding.MemberName = "OnButtonMsg";
        buttonBinder = base.FindTransform("ButtonPrivate").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.OnClickBinding.MemberName = "OnButtonPrivate";
    }
Exemplo n.º 10
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonParamater buttonParamater = base.get_gameObject().AddComponent <ButtonParamater>();

        buttonParamater.BindingProxy  = base.get_gameObject();
        buttonParamater.ParamaterType = ButtonParamater.ParamaterTypeEnum.Context;
        ButtonBinder buttonBinder = base.get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickItem";
    }
Exemplo n.º 11
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.º 12
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnAdd").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnAddClick";
        buttonBinder.EnabledBinding.MemberName = "BtnAddEnable";
        buttonBinder = base.FindTransform("BtnMinuse").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnMinuseClick";
        buttonBinder.EnabledBinding.MemberName = "BtnMinuseEnable";
        buttonBinder = base.FindTransform("BtnOK").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnOKClick";
        buttonBinder.EnabledBinding.MemberName = "BtnOKEnable";
    }
Exemplo n.º 13
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("Diamond").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickDiamond";
        buttonBinder = base.FindTransform("Gold").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickGold";
        buttonBinder = base.FindTransform("Strength").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickStrength";
        buttonBinder = base.FindTransform("BtnBack").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickBack";
    }
Exemplo n.º 14
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnUse").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnUse";
        buttonBinder = base.FindTransform("BtnUseBatch").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnUseBatch";
        buttonBinder = base.FindTransform("BtnComposeOne").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnComposeOne";
        buttonBinder.EnabledBinding.MemberName = "IsBtnComposeOneOn";
        buttonBinder = base.FindTransform("BtnComposeAll").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnComposeAll";
        buttonBinder.EnabledBinding.MemberName = "IsBtnComposeAllOn";
        buttonBinder = base.FindTransform("DecomposeBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnDecomposeEquipment";
        buttonBinder = base.FindTransform("AutoDecomposeBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnAutoDecomposeEquipment";
        buttonBinder = base.FindTransform("Equipment").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnEquipment";
        buttonBinder = base.FindTransform("Prop").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnProp";
        buttonBinder = base.FindTransform("Fragment").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnFragment";
        buttonBinder = base.FindTransform("Rune").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnRune";
        buttonBinder = base.FindTransform("Enchantment").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnEnchantment";
        buttonBinder = base.FindTransform("BtnSell").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnSell";
        buttonBinder = base.FindTransform("BtnSellBatch").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnSellBatch";
    }
Exemplo n.º 15
0
    protected override void DataBinding()
    {
        base.DataBinding();
        TextBinder textBinder = base.FindTransform("BtnText").get_gameObject().AddComponent <TextBinder>();

        textBinder.BindingProxy            = base.get_gameObject();
        textBinder.LabelBinding.MemberName = "BtnName";
        VisibilityBinder visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();

        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.Target                  = base.FindTransform("ImageGrey").get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "ImageGreyVisibility";
        ButtonBinder buttonBinder = base.get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnButtonClick";
    }
Exemplo n.º 16
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnLeft").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnLeftUp";
        buttonBinder = base.FindTransform("BtnRight").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnRightUp";
        buttonBinder = base.FindTransform("BtnConfirm").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnConfirmUp";
        buttonBinder = base.FindTransform("BtnClose").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnCloseUp";
    }
Exemplo n.º 17
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("ArrowL").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnArrowLUp";
        buttonBinder = base.FindTransform("ArrowR").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnArrowRUp";
        buttonBinder = base.FindTransform("BtnRefresh").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnRefreshUp";
        buttonBinder = base.FindTransform("BtnClose").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnCloseUp";
        buttonBinder = base.FindTransform("BtnSwitch").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnSwtichUp";
    }
Exemplo n.º 18
0
        public void Start()
        {
            gameplayCoreSceneSetupData = gameplayCoreSceneSetup.GetProperty <GameplayCoreSceneSetupData>("sceneSetupData");
            noteCutSoundEffectManager  = gameplayCoreSceneSetup.GetField <NoteCutSoundEffectManager>("_noteCutSoundEffectManager");
            levelDetailViewController  = Resources.FindObjectsOfTypeAll <StandardLevelDetailViewController>().First();

            if (preferredDifficulty == null)
            {
                preferredDifficulty = gameplayCoreSceneSetupData.difficultyBeatmap.difficulty;
            }

            //Listen for restarts so that we can set up the playlist properly on restart
            var restartButton = pauseMenuManager.GetField <Button>("_restartButton");

            buttonBinder = new ButtonBinder();
            buttonBinder.AddBinding(restartButton, () => {
                playlist = new Queue <IPreviewBeatmapLevel>(playlist.Prepend(gameplayCoreSceneSetupData.difficultyBeatmap.level));
                Plugin.instance.loadedLevels = playlist;
            });
        }
Exemplo n.º 19
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("MailBtn1").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnMailBtn1Up";
        buttonBinder = base.FindTransform("MailBtnOneKey").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnMailBtnOneKeyUp";
        buttonBinder = base.FindTransform("SendUIBtnSend").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnSendUp";
        buttonBinder = base.FindTransform("DetailUIBtnBack").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnBackUp";
        buttonBinder = base.FindTransform("SendUIBtnBack").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnBackUp";
    }
Exemplo n.º 20
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.FindTransform("BtnClose").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.OnClickBinding.MemberName = "OnBtnClose";
        VisibilityBinder visibilityBinder = base.get_gameObject().AddComponent <VisibilityBinder>();

        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "SystemSetting01On";
        visibilityBinder.Target                  = base.FindTransform("SystemSetting01").get_gameObject();
        visibilityBinder                         = base.get_gameObject().AddComponent <VisibilityBinder>();
        visibilityBinder.BindingProxy            = base.get_gameObject();
        visibilityBinder.ValueBinding.MemberName = "PushSettingOn";
        visibilityBinder.Target                  = base.FindTransform("PushSetting").get_gameObject();
        ToggleBinder toggleBinder = base.FindTransform("BTSystemSetting01").get_gameObject().AddComponent <ToggleBinder>();

        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "SystemSetting01On";
        toggleBinder = base.FindTransform("BTPushSetting").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "PushSettingOn";
    }
Exemplo n.º 21
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ButtonBinder buttonBinder = base.get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnUp";
        buttonBinder = base.FindTransform("CheckBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnCheck";
        buttonBinder = base.FindTransform("ChatBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnChat";
        buttonBinder.EnabledBinding.MemberName = "BtnChatEnable";
        buttonBinder = base.FindTransform("AgreeBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnAgree";
        buttonBinder = base.FindTransform("RefuseBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnRefuse";
        buttonBinder = base.FindTransform("RemoveBtn").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnRemove";
    }
Exemplo n.º 22
0
    protected override void EventsBinding()
    {
        base.EventsBinding();
        ToggleBinder toggleBinder = base.FindTransform("ChannelAll").get_gameObject().AddComponent <ToggleBinder>();

        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelWorldOn";
        toggleBinder = base.FindTransform("ChannelGuild").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelGuildOn";
        toggleBinder = base.FindTransform("ChannelPrivate").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelPrivateOn";
        toggleBinder = base.FindTransform("ChannelSystem").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelSystemOn";
        toggleBinder = base.FindTransform("ChannelTeam").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelTeamOn";
        toggleBinder = base.FindTransform("ChannelTeamOrg").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelTeamOrgOn";
        toggleBinder = base.FindTransform("BulletCurtainOn").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "BulletCurtainOn";
        toggleBinder.OffWhenDisable          = false;
        toggleBinder = base.FindTransform("ChannelTipOn").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelTipOn";
        toggleBinder.OffWhenDisable          = false;
        toggleBinder = base.FindTransform("ChannelMaskOn").get_gameObject().AddComponent <ToggleBinder>();
        toggleBinder.BindingProxy            = base.get_gameObject();
        toggleBinder.ValueBinding.MemberName = "ChannelMaskOn";
        toggleBinder.OffWhenDisable          = false;
        ButtonBinder buttonBinder = base.FindTransform("BtnShow").get_gameObject().AddComponent <ButtonBinder>();

        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnShowUp";
        buttonBinder = base.FindTransform("BtnSend").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnSendUp";
        buttonBinder = base.FindTransform("BtnFace").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnFaceUp";
        buttonBinder = base.FindTransform("BtnPrivateTalk").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnPrivateTalkUp";
        buttonBinder = base.FindTransform("BtnFriend").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnBtnFriendUp";
        buttonBinder = base.FindTransform("BtnSay").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickBtnSay";
        buttonBinder = base.FindTransform("BtnClose").get_gameObject().AddComponent <ButtonBinder>();
        buttonBinder.BindingProxy = base.get_gameObject();
        buttonBinder.OnClickBinding.MemberName = "OnClickBtnClose";
        ButtonValueBinder buttonValueBinder = base.FindTransform("RegionSendSay").get_gameObject().AddComponent <ButtonValueBinder>();

        buttonValueBinder.BindingProxy = base.get_gameObject();
        buttonValueBinder.IsPressedBinding.MemberName = "OnBtnSayIsPressed";
    }
Exemplo n.º 23
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";
    }