[Parity][hud][S1][R] 死亡画面:自创暗红蒙层,中英双语文本写死且画了两遍 #637
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?
来源审计项:
hud#2— [S1][R] 2. 死亡画面:自创暗红蒙层,中英双语文本写死且画了两遍src/client/ui/hud-manager.ts:2583-2599ctx.fillStyle = 'rgba(80, 0, 0, 0.45)'; ctx.fillRect(0, 0, 800, 600);const deathMsg = 'You Have Died. Press ESC to continue. 你挂了,请按 ESC 键继续';先ctx.fillText(deathMsg, 400, 300)(bold 22px serif),再this.font.drawText(ctx, deathMsg, 400, 300, { font: 'font16', … })%s\UI\%s\youdiedhardcore(字符串 VA 0x6fb8345c)和%s\UI\%s\youdiedinst(0x6fb83444)。0x6fb6eea9 起的流程:mov eax,ds:0x6fb8bc4c(屏幕高度全局,初值 480)→sar esi,1; sub esi,0x5e得到 y = 屏高/2 − 94,x = 屏宽(0x6fb8bc48,初值 640)/2,call 0x6fabd372画第一张;然后add esi,0x30,用同样方式画第二张(V-bin 0x6fb6eea9–0x6fb6ef77)。MPQ 中data\local\ui\eng\youdiedhardcore.dc6有两帧(256×36、20×36),内容是 "YOU HAVE DIED";youdiedinst.dc6有两帧(256×36、175×36),内容是 "PRESS ESC TO CONTINUE."(V-data,已解码目视)。三张 tbl 里都没有对应的文字串(V-data)。这段代码里没有看到红色蒙层(K-中,仅就这段反汇编而言)。fillText。