[saco] Implement/match CDeathWindow::RenderWeaponSprite(...)

This commit is contained in:
RD42 2024-07-27 17:52:50 +08:00
parent b9963944f4
commit 4b6dd99ab8
2 changed files with 13 additions and 0 deletions

View File

@ -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;

View File

@ -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);