This commit is contained in:
momo5502 2016-06-24 20:26:38 +02:00
parent 15ad71527c
commit 154c81ee10
3 changed files with 7 additions and 1 deletions

View File

@ -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()

View File

@ -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;

View File

@ -2401,6 +2401,9 @@ namespace Game
struct SafeArea
{
int fontHeight;
int textHeight;
int textWidth;
float left;
float top;
float right;