| | |
| | | {
|
| | | try
|
| | | {
|
| | | if (AutomaticityBool)
|
| | | if (AutomaticityBool && MissionState!=3)
|
| | | {
|
| | | TaskupToDate = MissionID;
|
| | | }
|
| | |
| | |
|
| | | if (allMissionDict.ContainsKey(MissionID))
|
| | | {
|
| | | int missionState = allMissionDict[MissionID].MissionState;
|
| | | if (allMissionDict[MissionID].MissionState != MissionState && MissionState == 3 && AutomaticityBool)
|
| | | {
|
| | | if (CompletionOfTaskEvent != null)
|
| | |
| | | }
|
| | | TaskChanges(MissionID, MissionState, DiscriptionIndex);//任务的状态修改
|
| | |
|
| | | if (Event_TaskRefreshes != null)//刷新任务
|
| | | if (missionState == 0 && (MissionState == 1 || MissionState==2))
|
| | | {
|
| | | Event_TaskRefreshes(MissionID);
|
| | | if (Event_TaskToAdd != null)//任务添加(用于存储于身上的未接取任务的特殊处理)
|
| | | {
|
| | | Event_TaskToAdd(MissionID, MissionState, DiscriptionIndex);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | if (Event_TaskRefreshes != null)//刷新任务
|
| | | {
|
| | | Event_TaskRefreshes(MissionID);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | DebugEx.Log(ex.StackTrace);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | bool IsOpenMain = WindowCenter.Instance.CheckOpen<MainInterfaceWin>();
|
| | | if (!WindowCenter.Instance.CheckOpen<DefaultDialogueBoxWin>() && IsOpenMain)
|
| | | bool IsOpenMain = WindowCenter.Instance.IsOpen<MainInterfaceWin>();
|
| | | if (!WindowCenter.Instance.IsOpen<DefaultDialogueBoxWin>() && IsOpenMain)
|
| | | {
|
| | | WindowCenter.Instance.Open<DefaultDialogueBoxWin>();
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | |
| | | return;
|
| | | }
|
| | | var config = Config.Instance.Get<StoryMissionsConfig>(taskID);
|
| | | bool IsOpenMain = WindowCenter.Instance.CheckOpen<MainInterfaceWin>();
|
| | | bool IsOpenMain = WindowCenter.Instance.IsOpen<MainInterfaceWin>();
|
| | | var treasureStageUpShow = ModelCenter.Instance.GetModel<TreasureModel>().treasureStageUpShow;
|
| | | if (config != null)
|
| | | {
|
| | |
| | | {
|
| | | if (NPCid == config.NpcID[i])
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen<DialogueDuidanceWin>() && IsOpenMain
|
| | | if (!WindowCenter.Instance.IsOpen<DialogueDuidanceWin>() && IsOpenMain
|
| | | && !treasureStageUpShow && !WindowCenter.Instance.ExitAnyFullScreenOrMaskWin())
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | | if (!WindowCenter.Instance.CheckOpen<TaskBoxBGMWin>() && IsOpenMain && !treasureStageUpShow)
|
| | | if (!WindowCenter.Instance.IsOpen<TaskBoxBGMWin>() && IsOpenMain && !treasureStageUpShow)
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<TaskBoxBGMWin>();
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen<TaskBoxBGMWin>() && IsOpenMain && !treasureStageUpShow)
|
| | | if (!WindowCenter.Instance.IsOpen<TaskBoxBGMWin>() && IsOpenMain && !treasureStageUpShow)
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<TaskBoxBGMWin>();
|
| | |
| | | SideQuestsType17 = 17,//支线17-21新增
|
| | | SideQuestsType18 = 18,
|
| | | SideQuestsType19 = 19,
|
| | | SideQuestsType20 = 20,
|
| | | SideQuestsType20 = 20,//(后端特殊处理,暂定不让使用)
|
| | | SideQuestsType21 = 21,
|
| | | }
|
| | |
|
| | |
| | | yield break;
|
| | | }
|
| | |
|
| | | if (WindowCenter.Instance.CheckOpen<TreasureLevelUpWin>())
|
| | | if (WindowCenter.Instance.IsOpen<TreasureLevelUpWin>())
|
| | | {
|
| | | yield break;
|
| | | }
|
| | |
|
| | | if (WindowCenter.Instance.CheckOpen<MysteriousMissionWin>())
|
| | | if (WindowCenter.Instance.IsOpen<MysteriousMissionWin>())
|
| | | {
|
| | | yield break;
|
| | | }
|
| | |
| | |
|
| | | public static bool IsOPenAutoResolve()//任务面板不开启自动挂机状态
|
| | | {
|
| | | WindowCenter.Instance.CheckOpen<DefaultDialogueBoxWin>();
|
| | | WindowCenter.Instance.CheckOpen<DialogueDuidanceWin>();
|
| | | WindowCenter.Instance.IsOpen<DefaultDialogueBoxWin>();
|
| | | WindowCenter.Instance.IsOpen<DialogueDuidanceWin>();
|
| | | bool _bool = true;
|
| | | if (WindowCenter.Instance.CheckOpen<TaskBoxBGMWin>())
|
| | | if (WindowCenter.Instance.IsOpen<TaskBoxBGMWin>())
|
| | | {
|
| | | _bool = false;
|
| | | }
|
| | | else if (WindowCenter.Instance.CheckOpen<DefaultDialogueBoxWin>())
|
| | | else if (WindowCenter.Instance.IsOpen<DefaultDialogueBoxWin>())
|
| | | {
|
| | | _bool = false;
|
| | | }
|
| | | else if (WindowCenter.Instance.CheckOpen<DialogueDuidanceWin>())
|
| | | else if (WindowCenter.Instance.IsOpen<DialogueDuidanceWin>())
|
| | | {
|
| | | _bool = false;
|
| | | }
|