mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
46 lines
986 B
C++
46 lines
986 B
C++
|
|
#pragma once
|
|
|
|
#define MAX_DISP_DEATH_MESSAGES 5
|
|
|
|
#pragma pack(1)
|
|
typedef struct _DEATH_WINDOW_ENTRY
|
|
{
|
|
CHAR szKiller[MAX_PLAYER_NAME+1];
|
|
CHAR szKillee[MAX_PLAYER_NAME+1];
|
|
DWORD dwKillerColor;
|
|
DWORD dwKilleeColor;
|
|
BYTE byteWeaponType;
|
|
} DEATH_WINDOW_ENTRY;
|
|
|
|
#define SPECIAL_ENTRY_CONNECT 200
|
|
#define SPECIAL_ENTRY_DISCONNECT 201
|
|
|
|
//----------------------------------------------------
|
|
|
|
class CDeathWindow
|
|
{
|
|
private:
|
|
char _gap0[4];
|
|
DEATH_WINDOW_ENTRY m_DeathWindowEntries[MAX_DISP_DEATH_MESSAGES];
|
|
char _gap012B[24];
|
|
BOOL field_14B;
|
|
ID3DXFont *field_14F;
|
|
ID3DXFont *field_153;
|
|
|
|
void PushBack();
|
|
void AddToDeathWindowBuffer(CHAR *szKiller,CHAR *szKillee,DWORD dwKillerColor,DWORD dwKilleeColor,BYTE byteWeaponID);
|
|
|
|
public:
|
|
void AddMessage(CHAR *a1, CHAR *a2, DWORD a3, DWORD a4, BYTE a5);
|
|
|
|
PCHAR SpriteIDForWeapon(BYTE byteWeaponID);
|
|
|
|
CDeathWindow(IDirect3DDevice9 *pD3DDevice);
|
|
|
|
void CreateAuxFonts();
|
|
|
|
};
|
|
|
|
//----------------------------------------------------
|