Files
MemRelay/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/Checkpoint 2026-10-19 19-09-52 UTC [5879a68762].md
T
memrelay beb2bde430 create: Checkpoint 2026-10-19 19:09:52 UTC [5879a68762]
MemRelay-Operation: checkpoint-save:sotf-fov-switch-checkpoint-20261020-0309
MemRelay-Resource: babcaee6-c8c8-45a8-95b2-4816c42b9799
2026-10-20 03:09:56 +08:00

34 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-19 19:09:52 UTC [5879a68762]
type: checkpoint
permalink: main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/checkpoint-2026-10-19-19-09-52-utc-5879a68762
stable_id: babcaee6-c8c8-45a8-95b2-4816c42b9799
scope: project
memory_type: checkpoint
project_id: d2b9f121-7638-43b7-97a8-17bdddcd238a
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: sotf-fov-switch-checkpoint-20261020-0309
created_at: '2026-10-19T19:09:52.814075+00:00'
updated_at: '2026-10-19T19:09:52.814075+00:00'
tags:
- inventory-fov
- handoff
---
完成:背包视角改成主面板辅助工具里、跳跃高度正下方的开关,并已合并进 main。
做了什么:从右侧按钮列拿掉标题加文本框。放到游戏速度同样的 ValueSwitch:左「背包视角」、中绿/灰开关、右数字框。新增配置键 InventoryFovOn,默认关。InventoryFov 键不动,默认 70,范围 40 到 200。关掉时补丁直接返回,不写镜头,也不写死 70。打开时用输入框里已生效的数。无效输入不改已保存的值。没有拿回 F1。
关键实现:AssistPatches.InventoryFovSetting.Enabled 读 EnabledEntry;InventoryFovPatch 在关闭时 return,打开时只赋值 camera.fieldOfView,不再写 _defaultFieldOfView。Ui/AssistView.cs 在跳跃高度下一行调 ValueSwitch。SOTFAssistMod 用 PanelSettings.InventoryFovOn 读写,BindInventoryFov 仍拒绝空白、非数字和越界。
验证:主目录 Release 编译通过,0 错误。编译输入只有 AssistPatches.cs、DifficultyCatalog.cs、ItemPage.cs、LocationBook.cs、SOTFAssistMod.cs、Ui\AssistView.cs,工程仍排除 Preview/**。DLL 已覆盖到 D:\Game\Sons.Of.The.Forest.v53951\Mods\SOTFAssist.dll,与 bin\Release 哈希一致:448E0E28031016E61F8FE4F73857F769659DEADE4906100369C5A5E5BE8BD3BD,83968 字节,2026-10-20 03:08:48。游戏进程没有锁住 DLL,没有结束 SonsOfTheForest.exe。界面未在游戏里点击验证。
合并:main 从 d3dbfbb fast-forward 到 4633b65fb7dc83df146b586cff02b69c1c52c9b4,信息 feat: 背包视角改为跳跃高度下方的开关。没有 push,没有改 git config。当时 main 没有别的提交,所以没有和定制游戏、分组框冲突。
问题:无。
下一步:进游戏看开关关着时背包镜头是否仍是游戏原视角,打开后是否用输入框的数。
给下个会话:worktree SOTFAssist-fov-switch 和分支 fov-switch 已删。不要删 main。仍在的 worktree:SOTFAssist-clock-ui(clock-ui)、SOTFAssist-difficulty-ui(difficulty-ui)、SOTFAssist-groupbox(groupbox),合并时它们还停在 d3dbfbb,不要重置或删除。合并前其中有人改过 SOTFAssistMod.cs 和 Ui/AssistView.cs 但未提交,那些改动不在本次提交里。以后若和 main 冲突,保留定制游戏的单选/开关、分组框底边,以及这次背包视角的位置和开关行为。不要把设置拿回 F1。不要把默认视角改回 60,不要在开关关闭时写死 70。