2024-03-25 23:09:08 +08:00
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
extern CGame* pGame;
|
|
|
|
|
2024-04-21 21:51:23 +08:00
|
|
|
CScoreBoard::CScoreBoard(IDirect3DDevice9 *pD3DDevice)
|
2024-03-25 23:09:08 +08:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
|
2024-07-24 17:01:39 +08:00
|
|
|
FUNC_1006E930();
|
2024-03-25 23:09:08 +08:00
|
|
|
|
|
|
|
field_0 = 0;
|
|
|
|
}
|
|
|
|
|
2024-07-24 17:01:39 +08:00
|
|
|
// MATCH
|
|
|
|
void CScoreBoard::FUNC_1006E930()
|
2024-03-25 23:09:08 +08:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|