diff --git a/src/ui/skill-tree-panel.ts b/src/ui/skill-tree-panel.ts index 239b6fa..81d5f80 100644 --- a/src/ui/skill-tree-panel.ts +++ b/src/ui/skill-tree-panel.ts @@ -95,9 +95,9 @@ export interface SkillTreeTabInfo { export const CLASS_VERTICAL_TABS: Record = { ama: [ - { tab: 0, titleZh: '弓和', subZh: '十字弓', y: 95 }, + { tab: 2, titleZh: '标枪和', subZh: '长矛', y: 95 }, { tab: 1, titleZh: '被动和', subZh: '魔法', y: 195 }, - { tab: 2, titleZh: '标枪和', subZh: '长矛', y: 295 }, + { tab: 0, titleZh: '弓和', subZh: '十字弓', y: 295 }, ], sor: [ { tab: 2, titleZh: '冰冷', subZh: '法术', y: 95 }, @@ -110,14 +110,14 @@ export const CLASS_VERTICAL_TABS: Record { ) // Verify 5 tab draws from mockTabsImg: - // Act 1 (inactive, frame 0 -> sx 0) - // Act 2 (active, frame 6 -> sx 6 * 63 = 378) - // Act 3 (inactive, frame 2 -> sx 2 * 63 = 126) - // Act 4 (inactive, frame 3 -> sx 3 * 63 = 189) - // Act 5 (inactive, frame 4 -> sx 4 * 63 = 252) + // Act 1 (inactive, frame 1 -> sx 1 * 63 = 63) + // Act 2 (active, frame 2 -> sx 2 * 63 = 126) + // Act 3 (inactive, frame 5 -> sx 5 * 63 = 315) + // Act 4 (inactive, frame 7 -> sx 7 * 63 = 441) + // Act 5 (inactive, frame 9 -> sx 9 * 63 = 567) const tabDraws = drawImageCalls.filter((c) => c[0] === mockTabsImg) expect(tabDraws.length).toBe(5) - expect(tabDraws[0][1]).toBe(0) // Act 1 sx - expect(tabDraws[1][1]).toBe(6 * 63) // Act 2 (active) sx = 378 - expect(tabDraws[2][1]).toBe(2 * 63) // Act 3 sx = 126 + expect(tabDraws[0][1]).toBe(1 * 63) // Act 1 (inactive) sx = 63 + expect(tabDraws[1][1]).toBe(2 * 63) // Act 2 (active) sx = 126 + expect(tabDraws[2][1]).toBe(5 * 63) // Act 3 (inactive) sx = 315 // Verify waypoint icons drawn from mockIconsImg for Act 2 (frame index 1 -> sx 30) const iconDraws = drawImageCalls.filter((c) => c[0] === mockIconsImg)