Results 1 to 5 of 5
  1. #1
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive

    Remove Draw text (D3D)

    I can draw texts..But how do i remove it?
    Like:

    DrawText(....,"ONE HIT -- ON")
    2 lines down:
    DrawText(....,"NO RELOAD --ON")

    Now i made a function to change On to off and etc..
    But when i change the On to Off...It works..But the On still behind.....
    How do i remove the old text? or clear all of it to draw again?

    Something like ClearScreen() XDD to clear my Drawing is there something like that?=
    Last edited by Lyoto Machida; 05-26-2011 at 05:58 PM.

  2. #2
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    Code:
    if(onehit)
          drawtext("one hit ON")
    else
          drawtext("one hit OFF")

  3. #3
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Not that.

    u know what happens? The previous states stay behind..
    I wanna clear to draw again..

    Example of what happens:



    @NOOB
    Last edited by Lyoto Machida; 05-26-2011 at 06:23 PM.

  4. #4
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    i have wanted to know how to do this for a while but i never figured it out. I would appreciate it if someone told us how. It might have to do with invalidaterect() but idk.

  5. The Following User Says Thank You to 258456 For This Useful Post:

    Lyoto Machida (05-26-2011)

  6. #5
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Well , it works, But i thnk its not good to use that, Is there another solution?
    Last edited by Lyoto Machida; 05-26-2011 at 07:14 PM.