[Functions]: Added 'DrawWrappedText'.

This commit is contained in:
JerryALT 2024-03-26 08:50:49 +03:00
parent d29f20b88b
commit c1a0778da7
2 changed files with 39 additions and 0 deletions

View File

@ -1336,4 +1336,42 @@ namespace Game
} }
return result; return result;
} }
void DrawWrappedText(const rectDef_s* rect /*edi*/, Game::Font_s* font /*esi*/, const Game::ScreenPlacement* ScrPlace, const char* text, float x, float y, float scale, const float* color, int style, int textAlignMode, Game::rectDef_s* textRect, const float* glowColor, int subtitle, int cinematic)
{
const uint32_t DrawWrappedText_func = 0x56E440;
__asm
{
pushad;
push cinematic;
push subtitle;
push glowColor;
push textRect;
push textAlignMode;
push style;
push color; //28
sub esp, 0Ch;
fld scale;
fstp [esp + 8h];
fld y;
fstp [esp + 4h];
fld x;
fstp [esp];
push text
push ScrPlace;
mov edi, [rect];
mov esi, [font];
call DrawWrappedText_func;
add esp, 30h;
popad;
}
}
} }

View File

@ -261,4 +261,5 @@ namespace Game
int String_Parse/*eax*/(const char** p/*eax*/, char* char_out, int len); int String_Parse/*eax*/(const char** p/*eax*/, char* char_out, int len);
int UI_GetKeyBindingLocalizedString/*eax*/(int localClientNum/*eax*/, const char* command/*ecx*/, char* keys, int bindNum); int UI_GetKeyBindingLocalizedString/*eax*/(int localClientNum/*eax*/, const char* command/*ecx*/, char* keys, int bindNum);
void DrawWrappedText(const rectDef_s* rect /*edi*/, Game::Font_s* font /*esi*/, const Game::ScreenPlacement* ScrPlace, const char* text, float x, float y, float scale, const float* color, int style, int textAlignMode, Game::rectDef_s* textRect, const float* glowColor, int subtitle, int cinematic);
} }