小站(Waypoint)传送面板图标资产补齐与 Act 1~5 切页样式严格复刻原版 1.13c 规范 #378
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1. 问题现状与视觉缺陷分析
在当前小站/传送点面板(
WorldPanels中的waypoint模式,快捷键V或点击场景小站打开):ctx.fillStyle = '#4888ff'; ctx.fillRect(ox + 32, wy + 9, 12, 12))。ctx.fillRect/ctx.strokeRect),并用现代等宽/衬线字体硬编码绘制英文字符串"Act I","Act II","Act III","Act IV","Act V",完全丧失暗黑 2 原版古朴厚重的石质浮雕风格。ctx.fillRect(ox + 22, wy, 276, 31)覆盖了半透明黑框,将waygatebackground.dc6底板自带的精美石刻纹理与左侧预留的凹陷金属槽位全部抹平遮挡。2. 暗黑 2 v1.13c 真实资产规范 (Ground Truth)
2.1 顶部 Act 1~5 切页资产 (
data\global\ui\MENU\expwaygatetabs.dc6)5 × 63 = 315px,适配 320px 宽度的面板顶部Y = 0..31)。I,II,III,IV,V,无需在代码中二次绘制任何文本。2.2 小站状态图标资产 (
data\global\ui\MENU\waygateicons.dc6)2.3 底板背景布局 (
data\global\ui\MENU\waygatebackground.dc6)Y = 57起垂直分布 9 个 30×30 金属雕花凹槽,每行垂直步进严格为 36 像素(Y = 57, 93, 129, 165, 201, 237, 273, 309, 345)。3. 修复方案与实现要求
3.1 资产接入与管线打通
public/ui/waypoint-tabs.png(包含 10 帧切页)和public/ui/waypoint-icons.png(包含 5 帧图标)。src/ui/hud-manager.ts中补齐资源预加载,将waypointTabsImg与waypointIconsImg正确下发至WorldPanels.draw()资产对象。3.2 顶部 Act 切页重构 (
drawActTabs)drawActTabs中的 Canvas 手工fillRect、strokeRect及纯文本绘制。ctx.drawImage(assets.waypointTabsImg, frameIdx * 63, 0, 63, 31, ox + 2 + i * 63, oy, 63, 31)贴图渲染:3.3 小站列表行与状态图标渲染重构
waygatebackground原始古石背景。(ox + 15, oy + 58 + i * 36)处,绘制waypointIconsImg对应的 30×30 帧切片(已探索显示 Frame 0 发光传送门,未探索显示 Frame 3 闭合石刻)。#c8a15a/ 白色,鼠标悬停高亮;未激活小站显示暗灰色#696969且不可点击传送)。4. 验收标准 (Acceptance Criteria)
npm run typecheck,npm test)100% 通过。