From 0b113fc70aeb40656553e0dc882e71021f1fa73f Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:46:21 -0600 Subject: [PATCH] Improvements to `Disable Ambient Mode` --- uYouPlus.xm | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 1bb6776..a5a533b 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -612,8 +612,17 @@ int main(int argc, char * argv[]) { %end %hook YTCinematicContainerView // Disable Ambient Mode Container - YTNoModernUI -- (instancetype)init { - return NULL; +- (BOOL)watchFullScreenCinematicSupported { + return NO; +} +- (BOOL)watchFullScreenCinematicEnabled { + return NO; +} +- (CGFloat)cinematicWidthMultiplier { + return 0.0; +} +- (CGFloat)cinematicHeightMultiplier { + return 0.0; } %end @@ -681,8 +690,17 @@ int main(int argc, char * argv[]) { %group gDisableAmbientMode %hook YTCinematicContainerView -- (instancetype)init { - return NULL; +- (BOOL)watchFullScreenCinematicSupported { + return NO; +} +- (BOOL)watchFullScreenCinematicEnabled { + return NO; +} +- (CGFloat)cinematicWidthMultiplier { + return 0.0; +} +- (CGFloat)cinematicHeightMultiplier { + return 0.0; } %end %hook YTColdConfig