This commit is contained in:
parent
15ad71527c
commit
154c81ee10
@ -460,6 +460,9 @@ namespace Components
|
||||
Game::safeArea->left = border;
|
||||
Game::safeArea->bottom = static_cast<float>(Renderer::Height()) - border;
|
||||
Game::safeArea->right = static_cast<float>(Renderer::Width()) - border;
|
||||
|
||||
Game::safeArea->textHeight = static_cast<int>((Game::safeArea->bottom - Game::safeArea->top - (2 * Game::safeArea->fontHeight) - 24.0) / Game::safeArea->fontHeight);
|
||||
Game::safeArea->textWidth = static_cast<int>(Game::safeArea->right - Game::safeArea->left - 10.0f - 18.0);
|
||||
}
|
||||
|
||||
void Console::RestoreSafeArea()
|
||||
|
@ -223,7 +223,7 @@ namespace Game
|
||||
|
||||
SOCKET* ip_socket = (SOCKET*)0x64A3008;
|
||||
|
||||
SafeArea* safeArea = (SafeArea*)0xA15F48;
|
||||
SafeArea* safeArea = (SafeArea*)0xA15F3C;
|
||||
|
||||
SpawnVar* spawnVars = (SpawnVar*)0x1A83DE8;
|
||||
MapEnts** marMapEntsPtr = (MapEnts**)0x112AD34;
|
||||
|
@ -2401,6 +2401,9 @@ namespace Game
|
||||
|
||||
struct SafeArea
|
||||
{
|
||||
int fontHeight;
|
||||
int textHeight;
|
||||
int textWidth;
|
||||
float left;
|
||||
float top;
|
||||
float right;
|
||||
|
Loading…
Reference in New Issue
Block a user