mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement CDXUTElement::Refresh()
This commit is contained in:
parent
1f100e5d90
commit
69708b5ff5
@ -225,3 +225,9 @@ void CDXUTElement::SetFont( UINT iFont, D3DCOLOR defaultFontColor, DWORD dwTextF
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void CDXUTElement::Refresh()
|
||||
{
|
||||
TextureColor.Current = TextureColor.States[ DXUT_STATE_HIDDEN ];
|
||||
FontColor.Current = FontColor.States[ DXUT_STATE_HIDDEN ];
|
||||
}
|
||||
|
||||
|
@ -68,6 +68,8 @@ 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 );
|
||||
|
||||
void Refresh();
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user