mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Update CChatWindow constructor
This commit is contained in:
parent
0e00550b0a
commit
9315131c61
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user