Text top simple function

Posts 16 of 6 · Page 1 of 1
Text top simple function
Good guys come share a form that I use to write something on the top screen (monitor):
Code:
VOID TextoTopo( D3DCOLOR cor, CHAR *texto )
{
        int forth_back = 95;//Para frente e para trás
        int up_down = NULL;//Para cima e para baixo
        Texto( forth_back, up_down, cor, Directx.pFont, texto );
}


 
TextoTopo( COR_DO_TEXTO, "Text that will appear on the top screen" );
The code is free Move Menu, it does not move to turn it so that the text remains on the screen even pressing insert just put off DrawBox and where are the settings menu.

Note: I used as reference the top of the screen but you can put it wherever you want!
It's a simple thing but it saves a little time ...
Credits-> Microsoft, Kssiobr (oO> Kssio <Oo ™)
Or just use drawtext...? Or better yet hook a games font and use that?
Quote Originally Posted by Acea View Post
Or just use drawtext...? Or better yet hook a games font and use that?
I just simplified certainly gives cause for DrawText yes, but usually like to put some text up there then did well to save some time and share how I use ...
Quote Originally Posted by kssiobr View Post

I just simplified certainly gives cause for DrawText yes, but usually like to put some text up there then did well to save some time and share how I use ...
Ahh, wasn't sure the point of this :P
You should add a text alignment sector also thought: DT_RIGHT etc.
Okay, so this is a simple function okay. This should help people out!
Quote Originally Posted by Re-Defined View Post
Okay, so this is a simple function okay. This should help people out!
Well even simpler rsrssr ... for anyone who wants to add a text on top and leave it more elegant the menu, this is an option for already be ready ...
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?