diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/evidence/p76-analysis.txt | 16 | ||||
| -rw-r--r-- | docs/evidence/p76-dialog-panel.png | bin | 0 -> 130287 bytes | |||
| -rw-r--r-- | docs/evidence/p76-hotbar-day.png | bin | 0 -> 113516 bytes | |||
| -rw-r--r-- | docs/evidence/p76-hotbar-night.png | bin | 0 -> 112502 bytes | |||
| -rw-r--r-- | docs/维护说明.md | 19 |
5 files changed, 35 insertions, 0 deletions
diff --git a/docs/evidence/p76-analysis.txt b/docs/evidence/p76-analysis.txt new file mode 100644 index 0000000..97513ef --- /dev/null +++ b/docs/evidence/p76-analysis.txt @@ -0,0 +1,16 @@ +P76(底部条/槽位药丸化 + 对话/交互面板半透明描边)证据分析 — 真实 Desktop xvfb 1280x720 +近黑阈值 24(旧纯黑面板底色 (14,22,30) 口径);实心块 = 24x24 全近黑。 + +p43-hud-day: hotbar=(405, 660, 470, 56) size=(470, 56) dark_frac=0.109 maxblk=94 bright=1804 | legend dark_frac=0.116 maxblk=176 bright=1275 +p43-hud-night: hotbar=(405, 660, 470, 56) size=(470, 56) dark_frac=0.108 maxblk=94 bright=1683 | legend dark_frac=0.115 maxblk=176 bright=1196 + +p44-dialog-a: panel=(190, 558, 900, 138) dark_frac=0.013 maxblk=101 bright=2837 + +p67-target task-panel region=(16,470,380,220) dark_frac=0.003 maxblk=70 bright=378 + +diff p43-hud-day vs p43-hud-night: differing_pixels=921386 +diff p44-dialog-a vs p44-dialog-b: differing_pixels=3978 + +verdict=PASS + hotbar/legend/dialog/task regions have no solid near-black block; + key chips, icons and action-name legend remain bright; frames differ pairwise. diff --git a/docs/evidence/p76-dialog-panel.png b/docs/evidence/p76-dialog-panel.png Binary files differnew file mode 100644 index 0000000..64a1251 --- /dev/null +++ b/docs/evidence/p76-dialog-panel.png diff --git a/docs/evidence/p76-hotbar-day.png b/docs/evidence/p76-hotbar-day.png Binary files differnew file mode 100644 index 0000000..5030d62 --- /dev/null +++ b/docs/evidence/p76-hotbar-day.png diff --git a/docs/evidence/p76-hotbar-night.png b/docs/evidence/p76-hotbar-night.png Binary files differnew file mode 100644 index 0000000..5166e17 --- /dev/null +++ b/docs/evidence/p76-hotbar-night.png diff --git a/docs/维护说明.md b/docs/维护说明.md index e1a81fa..43e07d3 100644 --- a/docs/维护说明.md +++ b/docs/维护说明.md @@ -236,6 +236,25 @@ dotnet src/LivingVillage.Headless/bin/Release/net8.0/LivingVillage.Headless.dll ~2.6%(相对整宽深色带基线 100% 下降 >97%)、无实心 24×24 黑块、亮字像素 >1000,落 `docs/evidence/p75-*`。 +## P76 底部条 / 槽位药丸化与面板换行 + +- 底部快捷栏(`Game.DrawHotbar`):去掉整条大色块与实心 40×40 槽位填充,改与顶部条同语言—— + 半透明条药丸 + 1px 描边 + `hotbarBarHairline` 发丝线;每个槽位内 `hotbarKeyChipRect`(键位 + 符号小片)+ `hotbarIconRectBesideKey`(图形)**并排**。选中格用 accent 描边 + 底部发丝线,不再 + 大色块。`selectSlotForDigit/cycleHotbar/hotbarInputAllowed/hotbarSlotRect` 等语义与 1-0 映射**不变**。 +- 底部**图例**:`HudLayout.actionLegend` 取自真实 `MenuState.controlRows`(E/Q/TAB/C/L/F6/F7), + 以「键位符号 + 动作名」并排展示;**纯展示,不新增/改动任何绑定**。 +- 对话/交互面板:`Game.DrawDialogOverlay` 背景由近纯黑 (14,22,30,232) 改为半透明深青 + (46,60,70,200)/(30,42,52,210) + 1px 描边 + accent 发丝线;`Game.DrawPanel` 同步改半透明描边语言。 +- 面板换行:新增 `HudLayout.wrapText/wrapLines`(按 `FloatingPrompt.measureWidth` 实测宽度逐字折行), + `DrawPanel` 弃用 `Substring` 整行截断,改折行;行长不溢出、内容不丢字;Esc 关闭行为不变。 +- 保存成功/失败短暂反馈沿用既有 `DrawTransientStatus`,未重做。 +- **回归**:`P76HotbarPanelTests`(键位小片与图形并排在槽内、图例项全部来自真实 controlRows 且键序 + 一致、折行不超宽且不丢字、`wrapLines` 铺平无损失)。 +- **证据**:`LV_P43_SHOT=1` 昼/夜(同机位)+ `LV_P44_SHOT=1` 对话面板打开态 → + `scripts/analyze-p76.py`:底部条/图例/对话/任务四区近黑占比 ≤0.013–0.116、无实心 24×24 近黑块、 + 亮像素充足,落 `docs/evidence/p76-*`。 + ## P17 批验:场景细节 / 人物动效 / 昼夜光照精修 - ①街边中式细节物:`scripts/make-jiangnan-art.py` 世界图集由 25 格扩到 28 格(新增 slot 25 石灯笼 / |
