[saco] Implement/match CDeathWindow::CreateAuxFonts()

This commit is contained in:
RD42 2024-07-26 19:19:31 +08:00
parent 86bd34be76
commit b9608184d4
2 changed files with 18 additions and 1 deletions

View File

@ -10,6 +10,17 @@ CDeathWindow::CDeathWindow(IDirect3DDevice9 *pD3DDevice)
//----------------------------------------------------
void CDeathWindow::CreateAuxFonts()
{
D3DXCreateFont(m_pD3DDevice, 20, 0, FW_NORMAL, 1, FALSE,
SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &field_14F);
D3DXCreateFont(m_pD3DDevice, 22, 0, FW_NORMAL, 1, FALSE,
SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &field_153);
field_14B = TRUE;
}
void CDeathWindow::AddMessage(CHAR *a1, CHAR *a2, DWORD a3, DWORD a4, BYTE a5)
{
// TODO: CDeathWindow::AddMessage .text:1006A6B0

View File

@ -9,7 +9,10 @@
class CDeathWindow
{
private:
char _gap0[343];
char _gap0[331];
BOOL field_14B;
ID3DXFont *field_14F;
ID3DXFont *field_153;
public:
void AddMessage(CHAR *a1, CHAR *a2, DWORD a3, DWORD a4, BYTE a5);
@ -17,6 +20,9 @@ public:
PCHAR SpriteIDForWeapon(BYTE byteWeaponID);
CDeathWindow(IDirect3DDevice9 *pD3DDevice);
void CreateAuxFonts();
};
//----------------------------------------------------