From ae29e2cc336dc9a317e72d2b73bea289970ad9c9 Mon Sep 17 00:00:00 2001 From: Sirspam <71392316+Sirspam@users.noreply.github.com> Date: Mon, 18 Oct 2021 18:27:44 +0100 Subject: [PATCH] Minor internal changes --- Nya/UI/ViewControllers/NSFWConfirmModalController.cs | 2 +- Nya/UI/ViewControllers/NyaViewController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nya/UI/ViewControllers/NSFWConfirmModalController.cs b/Nya/UI/ViewControllers/NSFWConfirmModalController.cs index 3ea8adb..fdbb867 100644 --- a/Nya/UI/ViewControllers/NSFWConfirmModalController.cs +++ b/Nya/UI/ViewControllers/NSFWConfirmModalController.cs @@ -46,7 +46,7 @@ private void noNSFW() private void Parse(Transform parentTransform) { BSMLParser.instance.Parse(BeatSaberMarkupLanguage.Utilities.GetResourceContent(Assembly.GetExecutingAssembly(), "Nya.UI.Views.NSFWConfirmModal.bsml"), parentTransform.gameObject, this); - FieldAccessor.Set(ref modalView, "_animateParentCanvas", true); + modalView.SetField("_animateParentCanvas", false); if (rootTransform != null && modalTransform != null) { modalTransform.SetParent(rootTransform); diff --git a/Nya/UI/ViewControllers/NyaViewController.cs b/Nya/UI/ViewControllers/NyaViewController.cs index dfdde5e..87a625f 100644 --- a/Nya/UI/ViewControllers/NyaViewController.cs +++ b/Nya/UI/ViewControllers/NyaViewController.cs @@ -8,7 +8,7 @@ namespace Nya.UI.ViewControllers { - internal class NyaViewController + internal abstract class NyaViewController { protected readonly SettingsModalController settingsModalController; protected static SemaphoreSlim semaphore;