private void CheckBtnSave() { if (m_actived == 2 || m_actived == 3) { return; } var result = m_actived == 0 ? !m_current.EqualsTo(SettingsManager.current) : m_actived == 1 ? !m_currentAudio.EqualsTo(SettingsManager.currentAudio) : !m_currentInput.EqualsTo(SettingsManager.currentInput); m_btnSave.interactable = m_actived == 5 ? IsNoEqualsPush() : result; m_btnReset.interactable = m_actived == 5 ? IsNoEqualsPush() : true; }
private void SetCurrent(VideoSettings settings, bool force = false) { if (m_lock || !force && settings.EqualsTo(m_current)) { return; } m_current = settings; CheckPresetType(); m_fps.SetOne(m_current.FPS < 50 ? "30" : "60"); m_msaa.SetOne(m_current.MSAA < 2 ? "0" : m_current.MSAA < 4 ? "2" : "4"); m_effect.SetOne(Mathf.Clamp(m_current.effectLevel, 0, 3).ToString()); m_postEffect.isOn = m_current.postEffect; m_hdr.isOn = m_current.HDR; m_dof.isOn = m_current.DOF; m_hd.isOn = m_current.HD; m_notch.isOn = m_current.notch; }