SA-MP/saco/scoreboard.cpp
2024-07-24 17:01:39 +08:00

47 lines
711 B
C++

#include "main.h"
extern CGame* pGame;
CScoreBoard::CScoreBoard(IDirect3DDevice9 *pD3DDevice)
{
m_pD3DDevice = pD3DDevice;
field_34 = 0;
field_38 = 0;
field_3C = 0;
field_40 = 0;
field_4 = 0;
if(pGame && pGame->GetScreenWidth() > 800)
{
field_14 = 800.0f;
field_18 = 600.0f;
}
else
{
field_14 = 640.0f;
field_18 = 480.0f;
}
field_1C = 60.0f;
field_20 = 0;
field_24 = 0.085f;
field_28 = 0.265625f;
field_2C = 0.437500f;
FUNC_1006E930();
field_0 = 0;
}
// MATCH
void CScoreBoard::FUNC_1006E930()
{
RECT rect;
GetClientRect(pGame->GetMainWindowHwnd(),&rect);
field_10 = 1.0f;
field_8 = rect.right * 0.5f - field_14 * 0.5f;
field_C = rect.bottom * 0.5f - field_18 * 0.5f;
}