Results 1 to 13 of 13
  1. #1
    ipwnuuaal5's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    275
    Reputation
    16
    Thanks
    33

    Create a Transparent Menu

    I tried using this function but no menu appeared.

    const D3DCOLOR textBlackTrans = D3DCOLOR_ARGB(155,0,0,0);
    DrawBox(pDevice,10,40,148,290,textBlackTrans );

    Code:
    void DrawBox(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, D3DCOLOR col)
    {
    	struct {
    		float x,y,z,rhw;
    		DWORD dwColor;
    	        } qV[4] = { { (float)x    , (float)(y+h), 0.0f, 0.0f, col},
    				{ (float)x    , (float)y    , 0.0f, 0.0f, col},
    				{ (float)(x+w), (float)(y+h), 0.0f, 0.0f, col},
    				{ (float)(x+w), (float)y    , 0.0f, 0.0f, col} };
    
        pDevice->SetPixelShader(NULL);
        pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true);
        pDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA);
        pDevice->SetTexture(0, NULL);
        pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,qV,sizeof(qV[0]));
    }

  2. #2
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Trying testing it in game, not in lobby? The last time i used that it only worked in game
    Dont ban me

  3. #3
    ipwnuuaal5's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    275
    Reputation
    16
    Thanks
    33
    Yah it only works in game. Wierd...

  4. #4
    RagedYet's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    California
    Posts
    221
    Reputation
    -3
    Thanks
    34
    My Mood
    Devilish
    Another way would be making your menu on photoshop set (opacity)
    and use sprites on your hack this way your menu will allways be transparent .

  5. #5
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    Quote Originally Posted by RagedYet View Post
    Another way would be making your menu on photoshop set (opacity)
    and use sprites on your hack this way your menu will allways be transparent .
    Only downside about that is that you can't change the opacity while in game like hans base. Unless you use several images, like one for 20%, 40%, etc.

  6. #6
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by RagedYet View Post
    Another way would be making your menu on photoshop set (opacity)
    and use sprites on your hack this way your menu will allways be transparent .
    I dont think those guys kno how to work sprites, without google-ing it.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  7. #7
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by topblast View Post


    I dont think those guys kno how to work sprites, without google-ing it.
    / I do but I d/c after a few minutes when i draw the pic
    Dont ban me

  8. #8
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    Quote Originally Posted by topblast View Post


    I dont think those guys kno how to work sprites, without google-ing it.
    Sprites are easy

  9. #9
    RagedYet's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    California
    Posts
    221
    Reputation
    -3
    Thanks
    34
    My Mood
    Devilish
    Well with sprites i only use one picture and with opacity to 75% give me the lvl of transparency i want and i dont have any problems with my hack not even after patch
    so you must be doing something wrong ^^



  10. #10
    xxxPROFINITYxxx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Kansas
    Posts
    62
    Reputation
    14
    Thanks
    2
    My Mood
    In Love

  11. #11
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,992
    My Mood
    Flirty
    Quote Originally Posted by xxxPROFINITYxxx View Post
    LOL. Its my tutorial dickhead

  12. The Following 2 Users Say Thank You to ac1d_buRn For This Useful Post:

    markoj (08-27-2010),UKnownError (08-29-2010)

  13. #12
    ngh555's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    126
    Reputation
    14
    Thanks
    58
    My Mood
    Devilish
    I can draw sprites, haven't changed 1 bit of code since beginning of month.

    topblast, your full of shit, STFU for good! you only troll threads and never write something useful.
    Originally Posted by flavjo
    Sorry for my chooby question but where do i find the C++ Express in my PC???
    Originally Posted by Deco
    i'll just punch him in the face nd steal his shoes *nigga style*

  14. #13
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    u can use THIS one

    it is working in Lobby and InGame

Similar Threads

  1. How I Leave I establish of the Transparent Menu?
    By Strikex in forum Combat Arms Coding Help & Discussion
    Replies: 3
    Last Post: 02-10-2011, 03:21 PM
  2. [Tutorial] Creating a No Menu Hack for Warrock ( With Screens )
    By taylan in forum WarRock Hack Source Code
    Replies: 17
    Last Post: 01-25-2011, 01:36 AM
  3. [HELP] Creating A D3D Menu
    By RepOseSS3d-KillR in forum Combat Arms Coding Help & Discussion
    Replies: 2
    Last Post: 12-16-2010, 05:23 PM
  4. Creating An D3D Menu on CA
    By RepOseSS3d-KillR in forum Combat Arms Help
    Replies: 4
    Last Post: 12-16-2010, 04:24 PM
  5. Replies: 2
    Last Post: 11-15-2010, 01:34 PM