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);
     }
 }
 private void OpenMultiRecruitPartyWait(int idx)
 {
     if (idx == 0)
     {
         CMD_ChatWindow.instance.SetCloseAction(delegate(int close)
         {
             if (!Singleton <UserDataMng> .Instance.IsOverUnitLimit(ClassSingleton <MonsterUserDataMng> .Instance.GetMonsterNum() + ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
             {
                 if (!Singleton <UserDataMng> .Instance.IsOverChipLimit(ConstValue.ENABLE_SPACE_TOEXEC_DUNGEON))
                 {
                     ChatTools.ChatLoadDisplay(true);
                     GameWebAPI.RespDataWD_GetDungeonInfo respDataWD_GetDungeonInfo = new GameWebAPI.RespDataWD_GetDungeonInfo();
                     respDataWD_GetDungeonInfo = ClassSingleton <QuestData> .Instance.GetDngeonInfoByWorldAreaId(this.multiWorldAreaId);
                     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.multiWorldDungeonId))
                             {
                                 ClassSingleton <PartyBossIconsAccessor> .Instance.StageEnemies = dungeons2.encountEnemies;
                             }
                         }
                     }
                     ClassSingleton <QuestData> .Instance.SelectDungeon = ClassSingleton <QuestData> .Instance.GetWorldDungeonMaster(this.multiWorldDungeonId);
                     DataMng.Instance().GetResultUtilData().SetLastDngReq(this.multiWorldDungeonId, "-1", "-1");
                     GameWebAPI.MultiRoomJoin multiRoomJoin = new GameWebAPI.MultiRoomJoin();
                     multiRoomJoin.SetSendData = delegate(GameWebAPI.ReqData_MultiRoomJoin param)
                     {
                         param.roomId   = int.Parse(this.multiRoomId);
                         param.password = string.Empty;
                     };
                     multiRoomJoin.OnReceived = delegate(GameWebAPI.RespData_MultiRoomJoin response)
                     {
                         CMD_MultiRecruitPartyWait.roomJoinData = response;
                         CMD_MultiRecruitPartyWait.StageDataBk  = new GameWebAPI.ResponseData_Common_MultiRoomList.room
                         {
                             worldAreaId    = response.multiRoomInfo.worldAreaId,
                             worldDungeonId = response.multiRoomInfo.worldDungeonId,
                             worldStageId   = response.multiRoomInfo.worldStageId
                         };
                     };
                     GameWebAPI.MultiRoomJoin request = multiRoomJoin;
                     AppCoroutine.Start(request.RunOneTime(delegate()
                     {
                         RestrictionInput.EndLoad();
                         if (CMD_ChatTop.instance != null)
                         {
                             CMD_ChatTop.instance.SetReOpendAction(delegate(int _idx)
                             {
                                 CMD_MultiRecruitPartyWait.UserType = CMD_MultiRecruitPartyWait.USER_TYPE.MEMBER;
                                 GUIMain.ShowCommonDialog(null, "CMD_MultiRecruitPartyWait", null);
                                 return(true);
                             });
                         }
                     }, delegate(Exception noop)
                     {
                         RestrictionInput.EndLoad();
                     }, null), false);
                 }
                 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);
             }
         });
         CMD_ChatWindow.instance.ClosePanel(true);
     }
 }
Ejemplo n.º 3
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);
            }
        }
    }