Results 1 to 15 of 15
  1. #1
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking

    How to drawtext

    Hey guy's in all of the stuff they got in the coding section i could not see any tut's on how to drawtext so here it is
    Code:
    void DrawText(int x,int y,DWORD color,char *text, LPDIRECT3DDEVICE9 pDevice){
    RECT rect;
    SetRect( &rect, x, y, x, y );
    Directx_Font->DrawTextA(NULL,text,-1,&rect, DT_LEFT|DT_NOCLIP, color);
    }
    And to render it
    Code:
    			DrawText(x,y,color,"texthere", pDevice);
    Cred's
    solify
    me
    Last edited by wassup40; 10-19-2010 at 12:18 PM.

  2. #2
    .L33T's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    80
    Reputation
    9
    Thanks
    49
    My Mood
    Cool
    Quote Originally Posted by wassup40 View Post
    Hey guy's in all of the stuff they got in the coding section i could not see any tut's on how to draw a textbox so here it is
    Code:
    void DrawText(int x,int y,DWORD color,char *text, LPDIRECT3DDEVICE9 pDevice){
    RECT rect;
    SetRect( &rect, x, y, x, y );
    Directx_Font->DrawTextA(NULL,text,-1,&rect, DT_LEFT|DT_NOCLIP, color);
    }
    And to render it
    Code:
    			DrawText(x,y,color,"texthere", pDevice);
    Cred's
    solify
    me
    It's "Draw Text", not "Text Box". /

  3. #3
    iShockYouuu's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    129
    Reputation
    10
    Thanks
    27
    in some base's there are differant methods of DrawBox and DrawText!

  4. #4
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    and how to add this into a box ?

    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



  5. #5
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    Quote Originally Posted by o-o View Post
    and how to add this into a box ?
    maybe look at the code. This isn't to input text into a box this is just to draw predefined text.

    but if u read the code and u just want a box around your text then just use the draw box function in the source code section

  6. #6
    Amatowarrior's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    629
    Reputation
    14
    Thanks
    102
    My Mood
    Inspired
    Quote Originally Posted by o-o View Post
    and how to add this into a box ?
    Simple, add another DrawBox and place it around the [Draw]Text. If you don't know how to add a DrawBox, it's in the "Useful Funtions" thread (Stickied)
    Tools UNDETECTED - PATCHED [I will only have recent versions up!]
    Tapper V1.15: http://www.mpgh.net/forum/164-combat...r-v1-15-a.html
    Amato Inject V1.15: http://www.mpgh.net/forum/292-combat...t-v1-15-a.html

    Mods
    L96A1 - Arctic Wolf
    Super M416 CQB
    Super M16A3
    MW2 M92FS (M9)
    Starcraft 2 L96A1

    PVT VIP
    Aimbot: 65% (Have full source code)
    OPK: 100% (Uses Enemy Class)
    Telekill: 100% (Uses Enemy Class)
    Ghost Mode: 80% (In Semi-Stages)
    Super Bullets: 100% (Thanks Deadlinez/hahaz!)
    Menu Sprite: 100% (Thanks whit!)



  7. #7
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    646
    My Mood
    Cold
    Hes just trying to brainfuck you becouse he now is at Infin hacks

  8. #8
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    Quote Originally Posted by Mr.Magicman View Post
    Hes just trying to brainfuck you becouse he now is at Infin hacks
    What ya talking about and who ya talking bout.

  9. #9
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    646
    My Mood
    Cold
    Quote Originally Posted by wassup40 View Post


    What ya talking about and who ya talking bout.
    Aint you at that site?

  10. #10
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    I have went there a few time's but im not registerd im not smart enuff.

  11. #11
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    thanks... Will help some noobs. It means Draw Text not Textbox

    Thanks Cosmos


  12. #12
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    Quote Originally Posted by kongamonga View Post
    thanks... Will help some noobs. It means Draw Text not Textbox
    I know but cant change title /
    My mind was somwhere else..

  13. #13
    Amatowarrior's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    629
    Reputation
    14
    Thanks
    102
    My Mood
    Inspired
    Try going to edit>advanced>then see if the title is there, if so then change it /
    Tools UNDETECTED - PATCHED [I will only have recent versions up!]
    Tapper V1.15: http://www.mpgh.net/forum/164-combat...r-v1-15-a.html
    Amato Inject V1.15: http://www.mpgh.net/forum/292-combat...t-v1-15-a.html

    Mods
    L96A1 - Arctic Wolf
    Super M416 CQB
    Super M16A3
    MW2 M92FS (M9)
    Starcraft 2 L96A1

    PVT VIP
    Aimbot: 65% (Have full source code)
    OPK: 100% (Uses Enemy Class)
    Telekill: 100% (Uses Enemy Class)
    Ghost Mode: 80% (In Semi-Stages)
    Super Bullets: 100% (Thanks Deadlinez/hahaz!)
    Menu Sprite: 100% (Thanks whit!)



  14. #14
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    Quote Originally Posted by Amatowarrior View Post
    Try going to edit>advanced>then see if the title is there, if so then change it /
    I did still says the same.

  15. #15
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Quote Originally Posted by Amatowarrior View Post
    Simple, add another DrawBox and place it around the [Draw]Text. If you don't know how to add a DrawBox, it's in the "Useful Funtions" thread (Stickied)
    Sorry but I don't understand you / come on PM and tell me with more explains

    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



Similar Threads

  1. How I draw - " Bloodshed ".
    By Kuro Tenshi in forum Art & Graphic Design
    Replies: 4
    Last Post: 09-13-2011, 11:54 AM
  2. [Request] How to Draw a GUI?
    By CanYouDoIt in forum Combat Arms Coding Help & Discussion
    Replies: 17
    Last Post: 11-18-2010, 02:18 PM
  3. [RELEASE] How To Draw Sprites
    By ac1d_buRn in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 37
    Last Post: 10-12-2010, 06:50 AM
  4. [Help]How to draw text from a file?
    By seeplusplus in forum Combat Arms Coding Help & Discussion
    Replies: 29
    Last Post: 10-05-2010, 05:47 PM
  5. How to draw a car in MS
    By AN1MAL in forum Entertainment
    Replies: 9
    Last Post: 12-18-2006, 06:38 PM