Results 1 to 6 of 6
  1. #1
    kssiobr's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Nos braços do Pai Celestial...
    Posts
    726
    Reputation
    10
    Thanks
    330
    My Mood
    Cheeky

    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 ™)

  2. #2
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,204
    My Mood
    Stressed
    Or just use drawtext...? Or better yet hook a games font and use that?

  3. #3
    kssiobr's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Nos braços do Pai Celestial...
    Posts
    726
    Reputation
    10
    Thanks
    330
    My Mood
    Cheeky
    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 ...

  4. The Following User Says Thank You to kssiobr For This Useful Post:

    Acea (02-19-2013)

  5. #4
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,204
    My Mood
    Stressed
    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.

  6. #5
    Re-Defined's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    10
    My Mood
    Breezy
    Okay, so this is a simple function okay. This should help people out!

  7. #6
    kssiobr's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Nos braços do Pai Celestial...
    Posts
    726
    Reputation
    10
    Thanks
    330
    My Mood
    Cheeky
    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 ...

Similar Threads

  1. [Release] Simple Function Generator
    By scraprecon in forum WarRock Hack Source Code
    Replies: 9
    Last Post: 09-11-2012, 04:56 AM
  2. [Help] A Simple Function
    By KissU in forum C++/C Programming
    Replies: 12
    Last Post: 10-18-2011, 09:57 AM
  3. [Patched] Code v2.5 [Weapon Hack + simple functions]
    By Coder[Vb10e] in forum CrossFire Hacks & Cheats
    Replies: 56
    Last Post: 09-28-2011, 01:33 PM
  4. How to make a simple text based game in c++
    By VvITylerIvV in forum Programming Tutorials
    Replies: 13
    Last Post: 08-09-2010, 06:49 PM
  5. Simple Reflective Text
    By Chronologix in forum Tutorials
    Replies: 4
    Last Post: 05-20-2006, 06:56 AM