Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 727 Bytes

File metadata and controls

29 lines (22 loc) · 727 Bytes

(Not tested)

Used by the game to render MOBS/Own player health bar.

Module: graphic.dll (dx9)

  • Address
?ShowRect@CMyBitmap@@SAXHHHHK@Z
typedef void(__cdecl* tShowRect)(int x1, int y1, int x2, int y2, DWORD color);
tShowRect oShowRect = nullptr;

void __cdecl hkShowRect(int x1, int y1, int x2, int y2, DWORD color) {
    //change color?
    //color = 0xFFFF0000;
    
    //log?
    //printf("ShowRect: (%d,%d) -> (%d,%d) color=0x%08X\n", x1, y1, x2, y2, color);
    
    oShowRect(x1, y1, x2, y2, color);
}
HMODULE hModule = GetModuleHandleA("graphic.dll");
oShowRect = (tShowRect)GetProcAddress(hModule, "?ShowRect@CMyBitmap@@SAXHHHHK@Z");