diff --git a/src/MaaCore/Controller/ControlScaleProxy.cpp b/src/MaaCore/Controller/ControlScaleProxy.cpp index 9600a7335e..15890aa76c 100644 --- a/src/MaaCore/Controller/ControlScaleProxy.cpp +++ b/src/MaaCore/Controller/ControlScaleProxy.cpp @@ -56,6 +56,10 @@ asst::ControlScaleProxy::ControlScaleProxy( m_scale_size = std::make_pair(WindowWidthDefault, scale_height); m_control_scale = static_cast(width) / static_cast(WindowWidthDefault); } + + info["what"] = "ResolutionInfo"; + info["why"] = "Normal"; + callback(info); } bool asst::ControlScaleProxy::click(const Point& p) diff --git a/src/MaaWpfGui/Main/AsstProxy.cs b/src/MaaWpfGui/Main/AsstProxy.cs index 99f8f6617f..9247590bb0 100644 --- a/src/MaaWpfGui/Main/AsstProxy.cs +++ b/src/MaaWpfGui/Main/AsstProxy.cs @@ -777,6 +777,17 @@ public class AsstProxy Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ResolutionNotSupported"), UiLogColor.Error); break; + case "ResolutionInfo": + { + int width = details["details"]?["width"]?.ToObject() ?? 0; + int height = details["details"]?["height"]?.ToObject() ?? 0; + if (SettingsViewModel.GameSettings.ClientType == ClientType.EN && (width != 1920 || height != 1080)) + { + Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ResolutionInfoYoStarEN"), UiLogColor.Warning); + } + } + break; + case "ResolutionError": Connected = false; Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("ResolutionAcquisitionFailure"), UiLogColor.Error);