Exemplo n.º 1
0
    private void OnTappedMAT_1()
    {
        if (this.baseDigimon == null)
        {
            this.OpenBaseDigimonNonePop();
            return;
        }
        bool flag = this.CanSelectMonster(1);

        if (flag)
        {
            this.SetBaseSelectType();
            CMD_BaseSelect.ElementType = CMD_BaseSelect.ELEMENT_TYPE.PARTNER;
            CommonDialog commonDialog = GUIMain.ShowCommonDialog(delegate(int index)
            {
                if (index == 1 && CMD_BaseSelect.DataChg != null)
                {
                    this.partnerDigimon   = CMD_BaseSelect.DataChg;
                    this.goPartnerDigimon = this.SetSelectedCharChg(this.partnerDigimon, this.partnerDetail.GetCharaIconObject(), this.goPartnerDigimon, 1);
                    this.ShowMATInfo_1();
                    this.ShowCHGInfo();
                    this.BtnCont();
                }
            }, "CMD_BaseSelect", null);
            commonDialog.SetForceReturnValue(0);
        }
        else
        {
            this.OpenCanNotSelectMonsterPop();
        }
    }
Exemplo n.º 2
0
    private void OnTappedMAT_0()
    {
        if (!this.CanEnter())
        {
            CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage;
            cmd_ModalMessage.Title = this.GetTitle();
            cmd_ModalMessage.Info  = this.GetInfoCannotEnter();
            return;
        }
        bool flag = this.CanSelectMonster(0);

        if (flag)
        {
            this.SetBaseSelectType();
            CMD_BaseSelect.ElementType = CMD_BaseSelect.ELEMENT_TYPE.BASE;
            CommonDialog commonDialog = GUIMain.ShowCommonDialog(delegate(int index)
            {
                if (index == 1 && CMD_BaseSelect.DataChg != null)
                {
                    this.baseDigimon   = CMD_BaseSelect.DataChg;
                    this.goBaseDigimon = this.SetSelectedCharChg(this.baseDigimon, this.baseDetail.GetCharaIconObject(), this.goBaseDigimon, 0);
                    this.ShowMATInfo_0();
                    this.ShowCHGInfo();
                    this.BtnCont();
                    this.OnBaseSelected();
                }
            }, "CMD_BaseSelect", null);
            commonDialog.SetForceReturnValue(0);
        }
        else
        {
            this.OpenCanNotSelectMonsterPop();
        }
    }