[Functions]: Added 'DrawWrappedText'.
This commit is contained in:
parent
d29f20b88b
commit
c1a0778da7
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user