| | |
| | | for (int i = 0; i < windowKeys.Count; i++)
|
| | | {
|
| | | var key = windowKeys[i];
|
| | | if (WindowCenter.Instance.CheckOpen(key) && key != "NewBieWin")
|
| | | if (WindowCenter.Instance.IsOpen(key) && key != "NewBieWin")
|
| | | {
|
| | | if (!openWindows.ContainsKey(jumpPhase))
|
| | | {
|
| | |
| | | case "RebornWin":
|
| | | if (DeadModel.playerIsDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case "ReliveWin":
|
| | | if (DeadModel.playerIsDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case "ElderGodAreaExitWin":
|
| | | if (DeadModel.playerIsDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | | }
|
| | | break;
|
| | | default:
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case 2:
|
| | | openWinlist = openWindows[1];
|
| | | WindowCenter.Instance.CloseAll(WindowCenter.CloseAllIgnoreType.SystemAndCustom);
|
| | | if (!WindowCenter.Instance.CheckOpen<MainInterfaceWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<MainInterfaceWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | |
| | | Window window = WindowCenter.Instance.Get(openWinlist[i]);
|
| | | if (window != null && window.windowInfo.windowType == WindowType.Base)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case "RebornWin":
|
| | | if (SettingEffectMgr.Instance.isPlayerDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case "ReliveWin":
|
| | | if (SettingEffectMgr.Instance.isPlayerDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | case "ElderGodAreaExitWin":
|
| | | if (SettingEffectMgr.Instance.isPlayerDie)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen(openWinlist[i]))
|
| | | if (!WindowCenter.Instance.IsOpen(openWinlist[i]))
|
| | | {
|
| | | WindowCenter.Instance.Get(openWinlist[i]).Open();
|
| | | }
|
| | |
| | | private void SecondRefresh()
|
| | | {
|
| | | if (DeadModel.playerIsDie
|
| | | && WindowCenter.Instance.CheckOpen<MainInterfaceWin>()
|
| | | && WindowCenter.Instance.IsOpen<MainInterfaceWin>()
|
| | | && dungeonModel.dungeonFightStage != DungeonFightStage.ExitPrepare)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen<RebornWin>()
|
| | | && !WindowCenter.Instance.CheckOpen<ReliveWin>()
|
| | | && !WindowCenter.Instance.CheckOpen<ElderGodAreaExitWin>()
|
| | | && !WindowCenter.Instance.CheckOpen<ElderGodAreaRebornWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<RebornWin>()
|
| | | && !WindowCenter.Instance.IsOpen<ReliveWin>()
|
| | | && !WindowCenter.Instance.IsOpen<ElderGodAreaExitWin>()
|
| | | && !WindowCenter.Instance.IsOpen<ElderGodAreaRebornWin>())
|
| | | {
|
| | | ClearJumpData();
|
| | | DeadModel.PlayerDie(PlayerDatas.Instance.baseData.PlayerID);
|