From 982cbfcf5eae6fcc93b92cfc6d05fd1f8bc12536 Mon Sep 17 00:00:00 2001 From: Bagus Nur Listiyono Date: Sun, 4 Aug 2024 17:41:49 +0700 Subject: [PATCH] [ZZZ GSP] Add experimental Mobile Mode toggle --- .../ZenlessGameSettingsPage.Ext.cs | 13 +++++++++++-- .../GameSettingsPages/ZenlessGameSettingsPage.xaml | 4 +--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.Ext.cs b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.Ext.cs index af9874f1e..9675bf970 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.Ext.cs +++ b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.Ext.cs @@ -301,8 +301,17 @@ public bool IsGameBoost public bool IsMobileMode { - get => Settings?.SettingsCollapseMisc?.LaunchMobileMode ?? false; - set => Settings.SettingsCollapseMisc.LaunchMobileMode = value; + get + { + var cSet = Settings?.SettingsCollapseMisc?.LaunchMobileMode ?? false; + var gSet = Settings.GeneralData.LocalUILayoutPlatform == 1; + return cSet || gSet; + } + set + { + Settings.SettingsCollapseMisc.LaunchMobileMode = value; + Settings.GeneralData.LocalUILayoutPlatform = value ? 1 : 3; + } } #endregion diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml index 5b60e918c..28bd8cd81 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml +++ b/CollapseLauncher/XAMLs/MainApp/Pages/GameSettingsPages/ZenlessGameSettingsPage.xaml @@ -162,9 +162,7 @@ + IsChecked="{x:Bind IsMobileMode, Mode=TwoWay}">