mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Implement CDXUTElement::SetFont(...)
This commit is contained in:
1 parent
8d20084ee2
commit
1f100e5d90
2 files changed
+13
No files matched your search
@@ -214,3 +214,14 @@ void CDXUTElement::SetTexture( UINT iTexture, RECT* prcTexture, D3DCOLOR default
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void CDXUTElement::SetFont( UINT iFont, D3DCOLOR defaultFontColor, DWORD dwTextFormat )
|
||||
{
|
||||
this->iFont = iFont;
|
||||
this->dwTextFormat = dwTextFormat;
|
||||
|
||||
FontColor.Init( defaultFontColor );
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
@@ -66,6 +66,8 @@ class CDXUTElement
|
||||
{
|
||||
public:
|
||||
void SetTexture( UINT iTexture, RECT* prcTexture, D3DCOLOR defaultTextureColor = D3DCOLOR_ARGB(255, 255, 255, 255) );
|
||||
void SetFont( UINT iFont, D3DCOLOR defaultFontColor = D3DCOLOR_ARGB(255, 255, 255, 255), DWORD dwTextFormat = DT_CENTER | DT_VCENTER );
|
||||
|
||||
UINT iTexture; // Index of the texture for this Element
|
||||
UINT iFont; // Index of the font for this Element
|
||||
DWORD dwTextFormat; // The format argument to DrawText
|
||||
|
||||
Reference in new issue
Block a user