Beispiel #1
0
    private IEnumerator SendMultiRecruitChat()
    {
        MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        foreach (GUIListChatGroupParts chat in this.csPartChatListParent.chatPartsList)
        {
            if (chat.isSelected)
            {
                base.StartCoroutine(Singleton <TCPUtil> .Instance.SendChatMessage(int.Parse(chat.Data.chatGroupId), string.Concat(new string[]
                {
                    CMD_MultiRecruitPartyWait.roomCreateData.multiRoomInfo.worldStageId,
                    ",",
                    CMD_MultiRecruitPartyWait.roomCreateData.multiRoomInfo.worldDungeonId,
                    ",",
                    CMD_MultiRecruitPartyWait.roomCreateData.multiRoomInfo.multiRoomId
                }), 4, null));
                yield return(null);
            }
        }
        MultiTools.DispLoading(false, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        yield return(null);

        CMD_ModalMessage cd = GUIMain.ShowCommonDialog(new Action <int>(this.CloseModalMessage), "CMD_ModalMessage", null) as CMD_ModalMessage;

        cd.Title = StringMaster.GetString("MultiRecruitChat-05");
        cd.Info  = StringMaster.GetString("MultiRecruitChat-06");
        yield break;
    }
Beispiel #2
0
    private void EndValidate(GameWebAPI.RespData_ColosseumMatchingValidateLogic data)
    {
        MultiTools.DispLoading(false, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        int resultCode = data.resultCode;

        switch (resultCode)
        {
        case 92:
            AlertManager.ShowModalMessage(delegate(int modal)
            {
                this.ClosePanel(true);
            }, StringMaster.GetString("ColosseumMockLockTitle"), StringMaster.GetString("ColosseumMockLockInfo"), AlertManager.ButtonActionType.Close, false);
            return;

        default:
            if (resultCode == 1)
            {
                global::Debug.Log("対戦相手UserCode: " + this.pvpMockTargetInput.value);
                ClassSingleton <MultiBattleData> .Instance.MockBattleUserCode = this.pvpMockTargetInput.value;
                ClassSingleton <QuestData> .Instance.SelectDungeon            = null;
                CMD_ColosseumDeck.Create(CMD_ColosseumDeck.Mode.FROM_COLOSSEUM_TOP);
                return;
            }
            break;

        case 94:
            break;
        }
        AlertManager.ShowModalMessage(delegate(int modal)
        {
            this.ClosePanel(true);
        }, StringMaster.GetString("ColosseumMockNotFoundTitle"), StringMaster.GetString("ColosseumMockNotFoundInfo"), AlertManager.ButtonActionType.Close, false);
    }
Beispiel #3
0
 private void ClickDecisionBtn()
 {
     MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     GameWebAPI.RespData_ColosseumMatchingValidateLogic responseData = null;
     GameWebAPI.ColosseumMatchingValidateLogic          request      = new GameWebAPI.ColosseumMatchingValidateLogic
     {
         SetSendData = delegate(GameWebAPI.ReqData_ColosseumMatchingValidateLogic param)
         {
             param.act            = 1;
             param.isMockBattle   = 1;
             param.targetUserCode = this.pvpMockTargetInput.value;
         },
         OnReceived = delegate(GameWebAPI.RespData_ColosseumMatchingValidateLogic response)
         {
             responseData = response;
         }
     };
     base.StartCoroutine(request.RunOneTime(delegate()
     {
         RestrictionInput.EndLoad();
         this.EndValidate(responseData);
     }, delegate(Exception noop)
     {
         RestrictionInput.EndLoad();
     }, null));
 }
Beispiel #4
0
    private void EndValidate(GameWebAPI.RespData_ColosseumMatchingValidateLogic matchingValidate)
    {
        MultiTools.DispLoading(false, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        int resultCode = matchingValidate.resultCode;

        if (resultCode != 1)
        {
            if (resultCode != 93)
            {
            }
            AlertManager.ShowModalMessage(delegate(int modal)
            {
                CMD_ChatTop.instance.OnClickMultiRequestUpdate();
            }, StringMaster.GetString("ColosseumWithdraw"), StringMaster.GetString("ColosseumSelect"), AlertManager.ButtonActionType.Close, false);
        }
        else
        {
            ClassSingleton <QuestData> .Instance.SelectDungeon = null;
            CMD_ColosseumDeck.Create(CMD_ColosseumDeck.Mode.FROM_COLOSSEUM_TOP);
        }
    }
 private void ClickDecisionBtn()
 {
     if (!Singleton <UserDataMng> .Instance.IsOverUnitLimit(ClassSingleton <MonsterUserDataMng> .Instance.GetMonsterNum() + ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
     {
         if (!Singleton <UserDataMng> .Instance.IsOverChipLimit(ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
         {
             MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
             GameWebAPI.MultiRoomJoin request = new GameWebAPI.MultiRoomJoin
             {
                 SetSendData = delegate(GameWebAPI.ReqData_MultiRoomJoin param)
                 {
                     param.roomId   = 0;
                     param.password = this.multiRecruitPassInput.value;
                 },
                 OnReceived = delegate(GameWebAPI.RespData_MultiRoomJoin response)
                 {
                     this.parentDialog.passInputJoinData = response;
                 }
             };
             base.StartCoroutine(request.RunOneTime(delegate()
             {
                 RestrictionInput.EndLoad();
                 this.ClosePanel(true);
             }, delegate(Exception noop)
             {
                 RestrictionInput.EndLoad();
             }, null));
         }
         else
         {
             CMD_UpperlimitChip cmd_UpperlimitChip = GUIMain.ShowCommonDialog(null, "CMD_UpperlimitChip", null) as CMD_UpperlimitChip;
             cmd_UpperlimitChip.SetType(CMD_UpperlimitChip.MessageType.QUEST);
         }
     }
     else
     {
         CMD_UpperLimit cmd_UpperLimit = GUIMain.ShowCommonDialog(null, "CMD_Upperlimit", null) as CMD_UpperLimit;
         cmd_UpperLimit.SetType(CMD_UpperLimit.MessageType.QUEST);
     }
 }
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     MultiTools.DispLoading(true, RestrictionInput.LoadType.SMALL_IMAGE_MASK_OFF);
     base.HideDLG();
     base.StartCoroutine(this.InitFriendUI(f, sizeX, sizeY, aT));
 }
Beispiel #7
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.HideDLG();
     this.InitChatListUI(f, sizeX, sizeY, aT);
 }
Beispiel #8
0
    private void OnClickedInfo()
    {
        bool flag = false;

        if (CMD_ChatTop.instance != null)
        {
            flag = CMD_ChatTop.instance.isRecruitListLock;
        }
        else if (null != this.parentDialog)
        {
            flag = this.parentDialog.isRecruitListLock;
        }
        if (!flag)
        {
            if (!this.isOpenedQuest)
            {
                AlertManager.ShowModalMessage(delegate(int modal)
                {
                }, StringMaster.GetString("Recruit-04"), StringMaster.GetString("Recruit-05"), AlertManager.ButtonActionType.Close, false);
                return;
            }
            if (!Singleton <UserDataMng> .Instance.IsOverUnitLimit(ClassSingleton <MonsterUserDataMng> .Instance.GetMonsterNum() + ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
            {
                if (!Singleton <UserDataMng> .Instance.IsOverChipLimit(ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
                {
                    MultiTools.DispLoading(true, RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
                    GameWebAPI.RespDataWD_GetDungeonInfo respDataWD_GetDungeonInfo = new GameWebAPI.RespDataWD_GetDungeonInfo();
                    respDataWD_GetDungeonInfo = ClassSingleton <QuestData> .Instance.GetDngeonInfoByWorldAreaId(this.data.worldAreaId);

                    if (respDataWD_GetDungeonInfo != null)
                    {
                        foreach (GameWebAPI.RespDataWD_GetDungeonInfo.WorldDungeonInfo worldDungeonInfo2 in respDataWD_GetDungeonInfo.worldDungeonInfo)
                        {
                            foreach (GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons dungeons2 in worldDungeonInfo2.dungeons)
                            {
                                if (dungeons2.worldDungeonId == int.Parse(this.data.worldDungeonId))
                                {
                                    ClassSingleton <PartyBossIconsAccessor> .Instance.StageEnemies = dungeons2.encountEnemies;
                                }
                            }
                        }
                        ClassSingleton <QuestData> .Instance.SelectDungeon = ClassSingleton <QuestData> .Instance.GetWorldDungeonMaster(this.data.worldDungeonId);

                        DataMng.Instance().GetResultUtilData().SetLastDngReq(this.data.worldDungeonId, "-1", "-1");
                        GameWebAPI.MultiRoomJoin multiRoomJoin = new GameWebAPI.MultiRoomJoin();
                        multiRoomJoin.SetSendData = delegate(GameWebAPI.ReqData_MultiRoomJoin param)
                        {
                            param.roomId   = int.Parse(this.data.multiRoomId);
                            param.password = string.Empty;
                        };
                        multiRoomJoin.OnReceived = delegate(GameWebAPI.RespData_MultiRoomJoin response)
                        {
                            CMD_MultiRecruitPartyWait.roomJoinData = response;
                        };
                        GameWebAPI.MultiRoomJoin request = multiRoomJoin;
                        base.StartCoroutine(request.RunOneTime(delegate()
                        {
                            RestrictionInput.EndLoad();
                            CMD_MultiRecruitPartyWait.UserType    = CMD_MultiRecruitPartyWait.USER_TYPE.MEMBER;
                            CMD_MultiRecruitPartyWait.StageDataBk = this.data;
                            CMD_MultiRecruitPartyWait cmd_MultiRecruitPartyWait = GUIMain.ShowCommonDialog(null, "CMD_MultiRecruitPartyWait", null) as CMD_MultiRecruitPartyWait;
                            cmd_MultiRecruitPartyWait.SetParentDialog(this.parentDialog);
                        }, delegate(Exception noop)
                        {
                            RestrictionInput.EndLoad();
                            if (null != this.parentDialog)
                            {
                                this.parentDialog.AddExcludeRoomIdList(this.data.multiRoomId);
                                this.parentDialog.ReBuildMultiRecruitList();
                            }
                        }, null));
                    }
                    else
                    {
                        CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage;
                        cmd_ModalMessage.Title = StringMaster.GetString("QuestEventTitle");
                        cmd_ModalMessage.Info  = StringMaster.GetString("QuestEventInfo2");
                    }
                }
                else
                {
                    CMD_UpperlimitChip cmd_UpperlimitChip = GUIMain.ShowCommonDialog(null, "CMD_UpperlimitChip", null) as CMD_UpperlimitChip;
                    cmd_UpperlimitChip.SetType(CMD_UpperlimitChip.MessageType.QUEST);
                }
            }
            else
            {
                CMD_UpperLimit cmd_UpperLimit = GUIMain.ShowCommonDialog(null, "CMD_Upperlimit", null) as CMD_UpperLimit;
                cmd_UpperLimit.SetType(CMD_UpperLimit.MessageType.QUEST);
            }
        }
    }