HUD: centre the taskbar, move the portrait/health panel to the right edge
New mods/hud: while a HUD window renders, screen-space vertices passed to D3D7 DrawPrimitive/DrawIndexedPrimitive are shifted by dx; while it handles an event, the UI event point (category 5, +0x48) is shifted by -dx. Applied to cUI_Taskbar2 (centred) and cUI_Mercenary (portrait + health, right edge). 3D belt items line up without help (their projection is screen-centred). re::AttachRuntimeHook hooks functions only known at runtime (COM methods). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f73c4154ad
commit
ed3163d312
8 files changed
+259
-1
No files matched your search
@@ -10,7 +10,9 @@
|
||||
param(
|
||||
[string]$Name = "autotest",
|
||||
[string]$Ini = "",
|
||||
[int]$LoadSeconds = 30
|
||||
[int]$LoadSeconds = 30,
|
||||
# Runs in-game after loading, before the screenshots (e.g. clicks).
|
||||
[scriptblock]$InGame = $null
|
||||
)
|
||||
$ErrorActionPreference = "Stop"
|
||||
. (Join-Path $PSScriptRoot "game-input.ps1")
|
||||
@@ -26,6 +28,7 @@ try {
|
||||
Click-At 1720 779 -AfterMs 4000 # main menu: "Spiel laden"
|
||||
Click-At 2382 568 -AfterMs 2000 # load screen: "Laden" (first save selected)
|
||||
Click-At 1551 826 -AfterMs ($LoadSeconds * 1000) # confirm: "Ok"
|
||||
if ($InGame) { & $InGame }
|
||||
Save-Screen "screenshots\${Name}_ingame.png" | Out-Null
|
||||
Press-Key 0x1B -AfterMs 2500 # ESC menu
|
||||
Save-Screen "screenshots\${Name}_esc.png" | Out-Null
|
||||
|
||||
Reference in new issue
Block a user