fix(hud): 修复通知栏编辑与中文消息识别#154
Merged
Merged
Conversation
改动围绕通知栏系统消息路由、中文语义覆盖与 HUD 编辑器几何一致性收口。 同时修复换位倒计时在中文服文本下的解析回归,并补齐对应测试与设计文档。 ## FIX - 引入通知栏语义目录与中英文别名映射,统一静态规则、动态规则和黑名单判定的语义键。 - 补齐 echo 与系统消息的通知路由覆盖,避免把帮助/示例文本误入通知栏,同时保留未知系统消息的兜底通知行为。 - 修复中文换位倒计时开始、取消、完成消息解析,并在 race/tclient 链路中复用独立解析器。 - 修正通知栏在 HUD 编辑器中的真实可见范围,拖拽框改为跟随实际内容宽度与滑入动画外扩。 - 修正通知栏未贴边时的左右生长方向判定,依据真实可见区域中心而不是固定默认容器。 ## FEAT - 为通知栏编辑器对齐问题补充设计说明与实现计划文档。 - 新增通知栏几何测试、语义路由测试与换位倒计时解析测试,覆盖中文消息与编辑器几何边界。
调整 HUD 通知栏路由、编辑器几何与服务端中文消息的收口, 同时保留会被客户端解析的完赛消息英文 canonical 文案,避免破坏兼容性。 ## FIX - 补齐 HUD 通知栏对中文练习命令列表和 hide score 提示的识别与排除。 - 统一服务端 hide score 相关中文提示,避免和静态规则漂移。 - 恢复 `finished in:` 完赛消息的英文 canonical 文案,保持非 QmClient 客户端兼容。 - 收紧保存队伍、交换位置、排行榜/成绩相关中文服务端提示。 - 修正文档与 Windows 构建入口说明,保持治理文档镜像一致。 ## FEAT - 为 HUD 通知栏编辑器布局、稳定锚点和消息分析补充测试覆盖。 - 新增完赛消息中英文解析测试与服务端汉化现状探索文档。 Release-ZH: 收口通知栏与服务端汉化规则,修复提示识别并保持完赛消息兼容 Release-EN: Refine HUD notification routing and Chinese server messages while preserving canonical finish-message compatibility
重写 git-workflow 文档结构,改为原则、分组类型、commit、PR、最终汇报和 release 分层说明。 明确正文默认使用 feat/fix/perf/refactor/docs/test/chore/ci/revert 分组,Verification 使用 checklist,Risks / Gaps 只写真实缺口。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
本次 PR 主要修复 HUD 编辑器无法正确编辑通知栏的问题,并同步修正通知栏相关的中文系统消息识别和完赛消息兼容性。
fix
finished in:完赛消息的英文 canonical 文案,避免影响非 QmClient 客户端解析。test
docs
Verification
python qmclient_scripts/gate/check_docs.py --sync-only --prefer agents,python qmclient_scripts/gate/check_docs.pypython qmclient_scripts/gate/check_gate.py --mode quick --base-ref main(通过,含仓库基线警告)cmd /c qmclient_scripts/cmake-windows.cmd --build cmake-build-release --target game-client -j 14Risks / Gaps
finished in:英文 canonical 文案和对应测试覆盖该风险,但未做第三方客户端实机联调。