Просмотр исходного кода

【文档】修正 ConfigurationManager 默认按键为 F12

塔科夫中 F1 被游戏占用,SPT 将 ConfigurationManager 的显示键覆盖为
F12;原文只写了上游默认 F1,会误导用户。

- README、docs/configuration.md、docs/verification.md 改为 F12。
- Plugin.cs、PluginConfig.cs 的注释同步,并注明上游默认 F1、可自行改键。
- 仅注释与文档变更,编译产物不变,无需重新发行。
PJ568 1 месяц назад
Родитель
Сommit
828c08cdb1

+ 2 - 2
README.md

@@ -16,7 +16,7 @@
 ## 快速上手
 ## 快速上手
 
 
 1. 确认已安装 [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager)。
 1. 确认已安装 [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager)。
-2. 游戏内按 **F1**(可在其配置中改键)打开菜单,找到 `PerformanceScope` 分区。
+2. 游戏内按 **F12**(SPT 默认;上游 BepInEx ConfigurationManager 默认 F1,可在其配置中改键)打开菜单,找到 `PerformanceScope` 分区。
 3. 把「取值方式 | Resolution Mode」设为「屏幕高度比例」或「绝对像素」——
 3. 把「取值方式 | Resolution Mode」设为「屏幕高度比例」或「绝对像素」——
    默认是「游戏默认」,安装后不改变游戏行为。
    默认是「游戏默认」,安装后不改变游戏行为。
 4. 进战局举镜查看效果;开启「启用日志」后可在
 4. 进战局举镜查看效果;开启「启用日志」后可在
@@ -58,7 +58,7 @@ Picture-in-picture (PiP) is the most GPU-hungry part of a magnified optic: the g
 ## Quick start
 ## Quick start
 
 
 1. Make sure [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager) is installed.
 1. Make sure [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager) is installed.
-2. Press **F1** in game (rebindable in its config) and find the `PerformanceScope` sections.
+2. Press **F12** in game (the SPT default; upstream BepInEx ConfigurationManager defaults to F1, rebindable in its config) and find the `PerformanceScope` sections.
 3. Set "取值方式 | Resolution Mode" to "屏幕高度比例" (screen-height ratio) or "绝对像素" (absolute pixels) — the default is "游戏默认" (game default), which changes nothing.
 3. Set "取值方式 | Resolution Mode" to "屏幕高度比例" (screen-height ratio) or "绝对像素" (absolute pixels) — the default is "游戏默认" (game default), which changes nothing.
 4. Enter a raid and aim down sights to see the effect; enable "启用日志 | Enable Logging" to watch `镜内分辨率 1024 → …` in `BepInEx/LogOutput.log`.
 4. Enter a raid and aim down sights to see the effect; enable "启用日志 | Enable Logging" to watch `镜内分辨率 1024 → …` in `BepInEx/LogOutput.log`.
 
 

+ 2 - 2
docs/configuration.md

@@ -2,7 +2,7 @@
 
 
 配置文件:`BepInEx/config/com.pj568.performancescope.cfg`(也可用 BepInEx ConfigurationManager 修改)。
 配置文件:`BepInEx/config/com.pj568.performancescope.cfg`(也可用 BepInEx ConfigurationManager 修改)。
 
 
-本插件不自带任何自定义界面或热键。安装 [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager) 后,游戏内按 **F1**(可在其配置文件中改键)打开菜单,在 `PerformanceScope` 分区调整;改动由服务层每帧同步,在游戏内即时生效。
+本插件不自带任何自定义界面或热键。安装 [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager) 后,游戏内按 **F12**(SPT 默认;上游默认 F1,可在其配置文件中改键)打开菜单,在 `PerformanceScope` 分区调整;改动由服务层每帧同步,在游戏内即时生效。
 
 
 ## 配置表
 ## 配置表
 
 
@@ -38,7 +38,7 @@
 
 
 Config file: `BepInEx/config/com.pj568.performancescope.cfg` (or edit through BepInEx ConfigurationManager).
 Config file: `BepInEx/config/com.pj568.performancescope.cfg` (or edit through BepInEx ConfigurationManager).
 
 
-The plugin ships no custom UI or hotkeys. Install [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager), then press **F1** in game (rebindable in its config) and adjust the `PerformanceScope` sections; changes are synced every frame by the service layer and apply immediately in game.
+The plugin ships no custom UI or hotkeys. Install [BepInEx ConfigurationManager](https://github.com/BepInEx/BepInEx.ConfigurationManager), then press **F12** in game (the SPT default; upstream defaults to F1, rebindable in its config) and adjust the `PerformanceScope` sections; changes are synced every frame by the service layer and apply immediately in game.
 
 
 ## Config Table
 ## Config Table
 
 

+ 2 - 2
docs/verification.md

@@ -15,7 +15,7 @@
 
 
 1. 在 ConfigurationManager 里开启「启用日志」。
 1. 在 ConfigurationManager 里开启「启用日志」。
 2. 进入战局,按住右键进入瞄具。
 2. 进入战局,按住右键进入瞄具。
-3. 打开 ConfigurationManager(默认 F1),把「取值方式」切到「屏幕高度比例」或「绝对像素」。
+3. 打开 ConfigurationManager(SPT 中默认 F12),把「取值方式」切到「屏幕高度比例」或「绝对像素」。
 4. 观察 `BepInEx/LogOutput.log` 的 `镜内分辨率 1024 → …` 与镜内画质/帧数变化。
 4. 观察 `BepInEx/LogOutput.log` 的 `镜内分辨率 1024 → …` 与镜内画质/帧数变化。
 5. 关闭「瞄准中立即应用」后瞄准时改值,确认改动在退出镜内后才生效。
 5. 关闭「瞄准中立即应用」后瞄准时改值,确认改动在退出镜内后才生效。
 
 
@@ -43,7 +43,7 @@ The second line means the scope resolution has switched from the game default `1
 
 
 1. Enable "启用日志 | Enable Logging" in ConfigurationManager.
 1. Enable "启用日志 | Enable Logging" in ConfigurationManager.
 2. Enter a raid and aim down sights through a magnified optic.
 2. Enter a raid and aim down sights through a magnified optic.
-3. Open ConfigurationManager (default F1) and switch "取值方式 | Resolution Mode" to "屏幕高度比例" or "绝对像素".
+3. Open ConfigurationManager (default F12 in SPT) and switch "取值方式 | Resolution Mode" to "屏幕高度比例" or "绝对像素".
 4. Watch `BepInEx/LogOutput.log` for `镜内分辨率 1024 → …`, and check the scoped image quality / frame rate.
 4. Watch `BepInEx/LogOutput.log` for `镜内分辨率 1024 → …`, and check the scoped image quality / frame rate.
 5. Turn off "瞄准中立即应用 | Apply While Scoped", change the value while scoped, and confirm the change only applies after you unscope.
 5. Turn off "瞄准中立即应用 | Apply While Scoped", change the value while scoped, and confirm the change only applies after you unscope.
 
 

+ 2 - 2
src/PerformanceScope.Plugin/Plugin.cs

@@ -6,10 +6,10 @@ namespace PerformanceScope
 {
 {
     /// <summary>
     /// <summary>
     /// 插件入口:初始化配置、日志、Harmony 补丁与分辨率服务。
     /// 插件入口:初始化配置、日志、Harmony 补丁与分辨率服务。
-    /// 所有调参通过 BepInEx ConfigurationManager 在游戏内完成(默认 F1,可在其配置中改键),
+    /// 所有调参通过 BepInEx ConfigurationManager 在游戏内完成(SPT 中默认 F12,可在其配置中改键),
     /// 服务层每帧读取配置并即时生效;本插件不提供自定义 UI 或热键。
     /// 服务层每帧读取配置并即时生效;本插件不提供自定义 UI 或热键。
     /// Plugin entry point: initializes config, logging, Harmony patches and the resolution service.
     /// Plugin entry point: initializes config, logging, Harmony patches and the resolution service.
-    /// All tweaking is done in-game via BepInEx ConfigurationManager (F1 by default; rebindable in its config);
+    /// All tweaking is done in-game via BepInEx ConfigurationManager (F12 by default in SPT; rebindable in its config);
     /// the service reads config every frame and applies it immediately. This plugin offers no custom UI or hotkey.
     /// the service reads config every frame and applies it immediately. This plugin offers no custom UI or hotkey.
     /// </summary>
     /// </summary>
     [BepInPlugin("com.pj568.performancescope", "PerformanceScope", "0.1.0")]
     [BepInPlugin("com.pj568.performancescope", "PerformanceScope", "0.1.0")]

+ 2 - 2
src/PerformanceScope.Plugin/PluginConfig.cs

@@ -5,10 +5,10 @@ namespace PerformanceScope
 {
 {
     /// <summary>
     /// <summary>
     /// 插件配置项定义。所有绑定项以静态属性暴露,供服务层直接读取。
     /// 插件配置项定义。所有绑定项以静态属性暴露,供服务层直接读取。
-    /// 配置界面由 BepInEx ConfigurationManager 提供(默认 F1,可在其配置中改键)。
+    /// 配置界面由 BepInEx ConfigurationManager 提供(SPT 中默认 F12,可在其配置中改键)。
     /// Plugin configuration definitions. All bindings are exposed as static properties
     /// Plugin configuration definitions. All bindings are exposed as static properties
     /// for the service layer to read directly.
     /// for the service layer to read directly.
-    /// The config UI is provided by BepInEx ConfigurationManager (F1 by default; rebindable in its config).
+    /// The config UI is provided by BepInEx ConfigurationManager (F12 by default in SPT; rebindable in its config).
     /// </summary>
     /// </summary>
     internal static class PluginConfig
     internal static class PluginConfig
     {
     {