private bool GetChaseGuideOver() { bool valid = true; if (moduleChase.lastStartChase != null && moduleChase.lastStartChase.taskConfigInfo != null) { int id = moduleChase.lastStartChase.taskConfigInfo.ID; valid = !GeneralConfigInfo.NeedForbideRuneAndForgeWhenSettlement(id); valid |= Module_Guide.skipGuide; if (moduleChase.lastStartChase.taskData != null) { valid |= moduleChase.lastStartChase.taskData.state == (byte)EnumChaseTaskFinishState.Finish; } } return(valid); }
protected override void OnBecameVisible(bool oldState, bool forward) { var args = GetWindowParam(name); var source = args != null && args.param1 is int?(int)args.param1 : -1; m_fromSystem = source == 0; m_fromCombat = source == 1; m_globalLayerState = moduleGlobal.GetGlobalLayerShowState(); moduleGlobal.SetGlobalLayerIndex(m_behaviour.canvas.sortingOrder); moduleGlobal.ShowGlobalLayerDefault(1, !m_fromCombat); Util.SetText(GetComponent <Text>("publicbg/setting_title"), 9100, m_fromCombat ? 0 : 1); SetCurrent(SettingsManager.current); SetCurrentAudio(SettingsManager.currentAudio); UpdateTabs(); var isPvP = Level.current && Level.current.isPvP; if (m_fromCombat && !isPvP) { Game.paused = true; } m_btnQuit.SetInteractable(modulePVE.stageId != Module_Story.DEFAULT_STAGE_ID); if (moduleChase.lastStartChase != null && moduleChase.lastStartChase.taskConfigInfo != null) { int id = moduleChase.lastStartChase.taskConfigInfo.ID; bool valid = !GeneralConfigInfo.NeedForbideRuneAndForgeWhenSettlement(id); valid |= Module_Guide.skipGuide; if (moduleChase.lastStartChase.taskData != null) { valid |= moduleChase.lastStartChase.taskData.state == (byte)EnumChaseTaskFinishState.Finish; } m_btnQuit.SetInteractable(m_btnQuit.interactable && valid); } }