public void ApplyResponsiveVisibility(bool replace = false) 
 {
     leftView = Settings.instance.EnableTweaks ? cachedPhysicsView : null;
     rightView = Settings.instance.EnableTweaks ? cachedCosmeticView : null;
     if (replace)
     {
         SetLeftScreenViewController(leftView, (ViewController.AnimationType)(Settings.instance.EnableTweaks ? 1 : 2));
         SetRightScreenViewController(rightView, (ViewController.AnimationType)(Settings.instance.EnableTweaks ? 1 : 2));
     }
 }
 private void Awake()
 {
     if (!mainView)
     {
         mainView = BeatSaberUI.CreateViewController<DTMainSettings>();
     }
     if (!cachedPhysicsView)
     {
         cachedPhysicsView = BeatSaberUI.CreateViewController<DTPhysicsSettings>();
     }
     if (!cachedCosmeticView)
     {
         cachedCosmeticView = BeatSaberUI.CreateViewController<DTCosmeticSettings>();
     }
     ApplyResponsiveVisibility();
 }
 public void RefreshCache() 
 {
     cachedPhysicsView = BeatSaberUI.CreateViewController<DTPhysicsSettings>();
     cachedCosmeticView = BeatSaberUI.CreateViewController<DTCosmeticSettings>();
 }