[Parity][motion-input][S2][R] 世界视图中心恒为 (w/2, h/2),打开左/右面板时不平移 #596
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?
来源审计项:
motion-input#17— [S2][R] 17. 世界视图中心恒为 (w/2, h/2),打开左/右面板时不平移view/scene-source.ts:288-297、:320-323(相机左上角 = 玩家 − (w/2, h/2));view/viewport-profile.ts:286-320(subTileToScreen/screenToSubTile以 (w/2, h/2) 为原点)、:191-198(playAreaCenter.y = (h − 48) / 2,和实际相机的 h/2 不一致,而且没有被使用)y: playerWorld.y - profile.height / 2ui/minimap.ts:172-175、:216-223对 automap 用了 ±160 的平移和 centerY = (H−48)/2(代码注释声称来自 D2Client 0x6fb102a0..0x6fb10378,未复核)。世界视图的纵向中心到底是 h/2 还是 (h−48)/2,待确认。screenToSubTile中同步应用。