mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CDeathWindow::RenderWeaponSprite(...)
This commit is contained in:
parent
b9963944f4
commit
4b6dd99ab8
@ -153,6 +153,18 @@ void CDeathWindow::RenderText(CHAR *sz,RECT rect,DWORD dwColor,DWORD dwParams)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CDeathWindow::RenderWeaponSprite(CHAR *WeaponChar,RECT rect,DWORD dwColor)
|
||||
{
|
||||
rect.top -= 5;
|
||||
m_pWeaponFont2->DrawText(m_pSprite,"G",-1,&rect,DT_NOCLIP|DT_LEFT,0xFF000000);
|
||||
|
||||
m_pWeaponFont2->DrawText(m_pSprite,"G",-1,&rect,DT_CALCRECT|DT_NOCLIP|DT_LEFT,0xFF000000);
|
||||
|
||||
m_pWeaponFont->DrawText(m_pSprite,WeaponChar,-1,&rect,DT_CENTER|DT_VCENTER|DT_NOCLIP,dwColor);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
SIZE CDeathWindow::GetSymbolSize()
|
||||
{
|
||||
SIZE ret;
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
void AddMessage(CHAR *szKiller, CHAR *szKillee, DWORD dwKillerColor, DWORD dwKilleeColor, BYTE byteWeaponID);
|
||||
|
||||
void RenderText(CHAR *sz,RECT rect,DWORD dwColor,DWORD dwParams);
|
||||
void RenderWeaponSprite(CHAR *WeaponChar,RECT rect,DWORD dwColor);
|
||||
PCHAR SpriteIDForWeapon(BYTE byteWeaponID);
|
||||
|
||||
CDeathWindow(IDirect3DDevice9 *pD3DDevice);
|
||||
|
Loading…
Reference in New Issue
Block a user