Files
MemRelay/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/Checkpoint 2026-10-19 19-18-37 UTC [ce2755be06].md
T
memrelay 9c52308f7c create: Checkpoint 2026-10-19 19:18:37 UTC [ce2755be06]
MemRelay-Operation: checkpoint-save:sotf-clock-ui-checkpoint-20261020
MemRelay-Resource: 6deffc42-9eba-40ea-aff1-5dec55a7c07a
2026-10-20 03:18:39 +08:00

36 lines
2.6 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:18:37 UTC [ce2755be06]
type: checkpoint
permalink: main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/checkpoint-2026-10-19-19-18-37-utc-ce2755be06
stable_id: 6deffc42-9eba-40ea-aff1-5dec55a7c07a
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-clock-ui-checkpoint-20261020
created_at: '2026-10-19T19:18:37.527973+00:00'
updated_at: '2026-10-19T19:18:37.527973+00:00'
tags:
- clock
- handoff
---
完成:定制游戏页增加可收纳大类「界面功能」,里面是显示时间、显示倒计时、时间样式、文字大小。
原因:预览 AssistUi.Sample() 没有这四项,游戏里定制游戏页也没画、没写回原来的时钟配置。
关键实现:
- Ui/AssistView.cs 的 DrawDifficulty 在难度分组之后、开局坠毁点之前画「界面功能」。默认展开。两个开关复用 PlaceToggle(主面板同款绿/灰开关),时间样式复用 PlaceChoices 单选,文字大小是右侧数字框。
- SOTFAssistMod.cs 的 CopyToUi/ApplyClockUi 仍写 ClockEnabled、ShowRemaining、TimeStyle、FontSize。文字大小只有 16 到 48 才写入。没有放回 F1 的 CreateSettings。
- AssistUi.Sample() 显式填了这四项,预览点开定制游戏就能看到这一组。
- 保留了已合入 main 的难度单选/开关、开局坠毁点,以及背包视角在跳跃高度下方的开关。
验证:主目录 Release 编译通过,0 错误。既有警告 CS0169 _windowPlaced 未使用,不是这次引入。游戏进程未运行,没有结束进程。Mods\SOTFAssist.dll 与 bin\Release 哈希一致:E61A02FF5AB901E525783D86E59A4E28925BD440255102586E66DADE364EA7B5,90624 字节,时间 2026-10-20 03:17:40。未打开 Unity 预览窗口目视。
问题:main 在工作中先合入了单选开关和排除 Temp,不能直接快进。已把 clock-ui rebase 到最新 main 后再快进合并。没有 push,没有改 git config,没有改上级仓库。
下一步:进游戏打开定制游戏,确认界面功能四项能改右下角时钟。预览菜单「游戏辅助/界面预览」点定制游戏也应能看到这一组。
给下个会话:仓库 D:\Game\SonsOfTheForestMod\SOTFAssist,分支 main,HEAD 30ba41c。没有远端。clock-ui worktree 和分支已删。还留着 worktree SOTFAssist-drive-trees(分支 drive-trees,760be8f),不要删。不要把时间设置放回 F1。不要把背包视角拿回按钮列上方。不要把默认背包视角改回 60,上限 200、下限 40。