Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by -ExileD- View Post
    Code:
    void FillRGB( int x, int y, int w, int h, D3DCOLOR yourcolor, IDirect3DDevice9* pDevice )
    {
    const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
    struct Vertex
    {
    float x,y,z,ht;
    DWORD yourcolor;
    }
    
    V[4] =
    {
    {(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)x,(float)y, 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}
    };
    pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
    pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
    pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
    pDevice->SetRenderState( D3DRS_FOGENABLE, false );
    
    pDevice->SetFVF(D3D_FVF);
    pDevice->SetTexture(0, NULL);
    pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
    
    }
    Figure out the rest by yourself, i'm sure your smart enough.
    Maybe -_-;
    I have him the same code, only mine had a border with it.

  2. #17
    -ExileD-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    https://mpgh.net Posts: 25,987
    Posts
    552
    Reputation
    32
    Thanks
    795
    My Mood
    Lurking
    Quote Originally Posted by ac1d_buRn View Post


    I have him the same code, only mine had a border with it.
    Mine uses the fillRGB code, making it more expandable.
    I doubt he'd figure it out anyway.

  3. #18
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by -ExileD- View Post


    Mine uses the fillRGB code, making it more expandable.
    I doubt he'd figure it out anyway.
    lool. fail.
    That was my origional code.
    I renamed the void and added the border function, Otherwise its exactly the same.

  4. #19
    -ExileD-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    https://mpgh.net Posts: 25,987
    Posts
    552
    Reputation
    32
    Thanks
    795
    My Mood
    Lurking
    Quote Originally Posted by ac1d_buRn View Post


    lool. fail.
    That was my origional code.
    I renamed the void and added the border function, Otherwise its exactly the same.
    Orly?

  5. #20
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Kekistan
    Posts
    15,566
    Reputation
    1817
    Thanks
    6,678
    ok, i'm not coder nor have i ever studied c++ but...

    even i know that

    {
    {(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)x,(float)y, 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}

    one those number has to be changed to changed to change the transparent

    i'm just gussing here, but i think 250= completely see through and 0 =invisible... so try idunno.. 200




  6. #21
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by AVGN View Post
    ok, i'm not coder nor have i ever studied c++ but...

    even i know that

    {
    {(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)x,(float)y, 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}

    one those number has to be changed to changed to change the transparent

    i'm just gussing here, but i think 250= completely see through and 0 =invisible... so try idunno.. 200
    Sorry bro. your wrong.
    250 and 0 right tho

    HINT for OP: D3DCOLOR_

  7. #22
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    Great now my menu goes after 1 game.

  8. #23
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by wassup40 View Post
    Great now my menu goes after 1 game.
    What do you expect when you DONT got C++?

  9. #24
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by AVGN View Post
    ok, i'm not coder nor have i ever studied c++ but...

    even i know that

    {
    {(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)x,(float)y, 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
    {(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}

    one those number has to be changed to changed to change the transparent

    i'm just gussing here, but i think 250= completely see through and 0 =invisible... so try idunno.. 200
    Great guess, though you're a bit off.

    This, is what a true coder should be like. Try things out, infer from knowledge or context. If it doesn't work, try again.

  10. #25
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    Now i have half a border and no box ,

  11. #26
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by wassup40 View Post
    Now i have half a border and no box ,
    Tbh, I dont think anyone gives a shit anymore.
    If you dont even know how to add a color, Then you CLEARLY havent learnt C++

  12. #27
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    Does this mean i know c++?,
    Nah i know i dont know c++ but i finally got it,
    i though u ment change a color to a witch ofcse u cant do

  13. #28
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by wassup40 View Post
    Does this mean i know c++?,
    Nah i know i dont know c++ but i finally got it,
    i though u ment change a color to a witch ofcse u cant do
    THEN GO LEARN IT. Stop trying to do something you are not even close to capable of doing.

  14. #29
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    No one wants to help you make hacks for your website /, and at your other comment was just ridiculous, at least give learning c++ a chance, its a cool language and it can be used for more than making hacks for stupid games.
    Dont ban me

  15. The Following User Says Thank You to markoj For This Useful Post:

    Marko™ (10-03-2010)

  16. #30
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,557
    My Mood
    Bitchy
    This thread is full of lulz.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to Change the Start-Bar in Windows XP
    By Jackal in forum General
    Replies: 31
    Last Post: 05-31-2015, 08:29 PM
  2. how to change mail?
    By dago80 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-25-2007, 06:42 PM
  3. how to change a bypass so it is working??
    By 123456789987654321 in forum WarRock - International Hacks
    Replies: 13
    Last Post: 06-04-2007, 02:35 PM
  4. How to change War Rock weapon sounds (I bet Dave already knows how to) Sorry Repost
    By WarRocker19 in forum WarRock - International Hacks
    Replies: 12
    Last Post: 05-21-2007, 08:45 AM
  5. How To Change Your Main Theme Song
    By gino666 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 05-10-2007, 10:58 PM