检测到游戏内小地图锁定配置 #1371

This commit is contained in:
辉鸭蛋
2026-03-22 02:48:02 +08:00
parent cd978327fc
commit c8a8d6217a
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using BetterGenshinImpact.GameTask.Common;
using BetterGenshinImpact.Genshin.Settings;
using Microsoft.Extensions.Logging;
@@ -37,6 +37,11 @@ public class GameSettingsChecker
TaskControl.Logger.LogError("检测到游戏亮度非默认值,将会影响功能正常使用,请在原神 游戏设置——图像——亮度 中恢复默认亮度!");
}
if (settings.MiniMapConfig != 1)
{
TaskControl.Logger.LogWarning("检测到游戏小地图锁定配置不是【锁定方向】!,无法正常使用地图追踪功能。请在原神 游戏设置——其他——小地图锁定 中调整为【锁定方向】!");
}
if (inputSettings.MouseSenseIndex != 2
|| inputSettings.MouseSenseIndexY != 2
|| inputSettings.MouseFocusSenseIndex != 2
@@ -59,4 +64,4 @@ public class GameSettingsChecker
TaskControl.Logger.LogDebug(e, "获取原神游戏设置失败");
}
}
}
}

View File

@@ -53,7 +53,7 @@ public class GenshinGameSettings
public string GlobalPerfData { get; set; } // 全局性能数据
[JsonProperty("miniMapConfig")]
public int MiniMapConfig { get; set; } // 小地图配置
public int MiniMapConfig { get; set; } // 小地图锁定 0:锁定玩家视角 1:锁定方向
[JsonProperty("enableCameraSlope")]
public bool EnableCameraSlope { get; set; } // 启用相机坡度