Make all material text icons (Hud icons) have white tint so they are not affected by color codes

This commit is contained in:
Jan 2021-08-23 00:04:05 +02:00
parent 05861a0df4
commit feef738c61

View File

@ -192,6 +192,12 @@ namespace Components
add esp, 4h
mov [esp + 20h], eax
// Make all material text icons have white tint
mov eax,[esp + 0x50]
or eax,0x00FFFFFF
mov [esp + 0x50],eax
popad
pop eax
@ -343,6 +349,7 @@ namespace Components
Materials::ImageVersionCheckHook.initialize(0x53A456, Materials::ImageVersionCheck, HOOK_CALL)->install();
// Fix material pointer exploit
// Also make all material text icons have white tint
Utils::Hook(0x534E0C, Materials::DrawMaterialStub, HOOK_CALL).install()->quick();
// Increment string pointer accordingly