[saco] Update CChatWindow constructor

This commit is contained in:
RD42 2024-04-08 22:11:49 +08:00
parent 0e00550b0a
commit 9315131c61
2 changed files with 16 additions and 1 deletions

View File

@ -15,6 +15,12 @@ CChatWindow::CChatWindow(IDirect3DDevice9 *pD3DDevice, CFontRender *pFontRender,
D3DXCreateSprite(pD3DDevice,&field_63A6);
D3DXCreateSprite(pD3DDevice,&field_63AA);
// Init the chat window lines to 0
while(x!=MAX_MESSAGES) {
memset(&m_ChatWindowEntries[x],0,sizeof(CHAT_WINDOW_ENTRY));
x++;
}
m_dwChatTextColor = D3DCOLOR_ARGB(255,255,255,255);
m_dwChatInfoColor = D3DCOLOR_ARGB(255,136,170,98);
m_dwChatDebugColor = D3DCOLOR_ARGB(255,169,196,228);

View File

@ -1,6 +1,15 @@
#pragma once
#define MAX_MESSAGES 100
#pragma pack(1)
typedef struct _CHAT_WINDOW_ENTRY
{
char _gap0[252];
} CHAT_WINDOW_ENTRY;
class CChatWindow // size: 25578
{
private:
@ -18,7 +27,7 @@ private:
DWORD m_dwChatInfoColor;
DWORD m_dwChatDebugColor;
char _gap12E[4];
char field_132[25200];
CHAT_WINDOW_ENTRY m_ChatWindowEntries[MAX_MESSAGES];
CFontRender *m_pFontRender;
ID3DXSprite *field_63A6;
ID3DXSprite *field_63AA;