Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    G00dFight's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    Netherlands
    Posts
    31
    Reputation
    8
    Thanks
    14
    My Mood
    Amazed

    Exclamation color slider full by G00dFight

    add this at the top of your main.cpp

    Code:
    DWORD color[3],cur;
    Code:
    
    
    
    			//main box
    
    DrawBox((float)400,(float)22,(float)320,(float)120,Background,pDevice);
    
    
    //red
    DrawBox((float)435,(float)50,(float)255,(float)10,D3DCOLOR_ARGB(255,255,0,0),pDevice);
    
    //green
    DrawBox((float)435,(float)65,(float)255,(float)10,D3DCOLOR_ARGB(255,0,255,0),pDevice);
    
    //blue
    DrawBox((float)435,(float)80,(float)255,(float)10,D3DCOLOR_ARGB(255,0,0,255),pDevice);
    
    /************************************/
    /*		Texts */
    /************************************/
    
     pMenu->DrawTextC(480,32,D3DCOLOR_ARGB(255,255,255,255),"Color Slider 0.1",g_pFont);
    
     pMenu->DrawTextC(422,50,Red,"[R]",g_pFont);
    
     pMenu->DrawTextC(422,65,Green,"[G]",g_pFont);
    
     pMenu->DrawTextC(422,80,Blue,"",g_pFont);
    
     pMenu->DrawTextC(450,114,White,"Color",g_pFont);
     DrawBox((float)470,(float)114,(float)70,(float)10,D3DCOLOR_ARGB(255,color[0],color[1],color[2]),pDevice);
    
     //
     pMenu->DrawTextC(555,130,D3DCOLOR_ARGB(255,255,255,255),"Use +/- to change value,Numpad 1/2/3 to choose color",g_pFont);
    
    DrawBox((float)435+color[0],(float)51,(float)3,(float)9,WHITE,pDevice);
    DrawBox((float)435+color[1],(float)66,(float)3,(float)9,WHITE,pDevice);
    DrawBox((float)435+color[2],(float)81,(float)3,(float)9,WHITE,pDevice);
    
    
    
    if(GetAsyncKeyState(VK_NUMPAD1) &1)
    		{
    current1=1;
    		}
    if(GetAsyncKeyState(VK_NUMPAD2) &1)
    		{
    current1=2;
    		}
    if(GetAsyncKeyState(VK_NUMPAD3) &1)
    		{
    current1=3;
    		}
    
    
    
    //----
    
    		if (current1==1)
    		{
    		if(GetAsyncKeyState(VK_OEM_PLUS) && color[0] < 255)
            color[0]++;
        if(GetAsyncKeyState(VK_OEM_MINUS) && color[0] > 0)
            color[0]--;
    
        int key[3] = { 0x31, 0x32, 0x33 };
        for( int i = 0; i < 3; i++ )
        {
            if(GetAsyncKeyState(key[i])&1)
                cur = i;
        }
    		}
    if (current1==2)
    		{
    	if(GetAsyncKeyState(VK_OEM_PLUS) && color[1] < 255)
            color[1]++;
        if(GetAsyncKeyState(VK_OEM_MINUS) && color[1] > 0)
            color[1]--;
    
        int key[3] = { 0x31, 0x32, 0x33 };
        for( int i = 0; i < 3; i++ )
        {
            if(GetAsyncKeyState(key[i])&1)
                cur = i;
        }
    		}
    
    
    if(current1==3)
    {
    	if(GetAsyncKeyState(VK_OEM_PLUS) && color[2] < 255)
            color[2]++;
        if(GetAsyncKeyState(VK_OEM_MINUS) && color[2] > 0)
            color[2]--;
    
        int key[3] = { 0x31, 0x32, 0x33 };
        for( int i = 0; i < 3; i++ )
        {
            if(GetAsyncKeyState(key[i])&1)
                cur = i;
        }
    }
    
    
    
    


    This code i used in "Change Border Color " Funtion so u get this

    Code:
    DrawRectangle((float)435,80,(float)255,(float)10,1,Border,pDevice);
    DrawRectangle((float)435,65,(float)255,(float)10,1,Border,pDevice);
    DrawRectangle((float)435,50,(float)255,(float)10,1,Border,pDevice);
    DrawRectangle((float)400,22,(float)320,(float)120,1,Border,pDevice);
    DrawRectangle((float)183,45,(float)10,(float)pMenu->noitems*pMenu->height+13,1,Border,pDevice);
    DrawRectangle((float)13,45,(float)10,(float)pMenu->noitems*pMenu->height+13,1,Border,pDevice);
    DrawRectangle((float)13,(45 + pMenu->noitems*pMenu->height+18),(float)180,(float)18,1,Border,pDevice);
    DrawRectangle((float)23,45,(float)160,(float)pMenu->noitems*pMenu->height+13,1,Border,pDevice);
    DrawRectangle((float)13,22,(float)180,(float)18,1,Border,pDevice);
    DrawRectangle((float)470,114,(float)70,(float)10,1,Border,pDevice);




    other defining :
    Code:
    int current1 =1 ;
    Colors defining :

    Code:
    #define Background		D3DCOLOR_ARGB(100,0,50,100)
    #define Background2		D3DCOLOR_ARGB(100,0,50,100)
    #define Border			D3DCOLOR_ARGB(150,0,100,100)

    Result is something like this :
    [img]https://www.grabill*****m/01a05-8e7bb2c1-15ae-413f-ac79-32f995a79a51.png[/img]



    Credits :

    G00dFight
    Yazzn
    Neo I.I.I

    if you want some more help u need to PM Me and i help VIA teamviewer


    Last edited by G00dFight; 10-05-2011 at 08:44 AM.

  2. The Following 5 Users Say Thank You to G00dFight For This Useful Post:

    kssiobr (04-26-2013),matthy (10-07-2011),Terell. (10-06-2011),Xmagz (10-10-2011),_Apostolos_ (10-07-2011)

  3. #2
    DirecTX_'s Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    99
    Reputation
    66
    Thanks
    51
    My Mood
    Daring
    Nice Thx for share

  4. #3
    scraprecon's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    In Directx Land!
    Posts
    272
    Reputation
    14
    Thanks
    35
    My Mood
    Devilish
    good job

  5. #4
    xKirbey's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    0
    Nice Share x3

  6. #5
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Good job

  7. #6
    nielshetschaap's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    175
    Reputation
    10
    Thanks
    29
    My Mood
    Fine
    thnx man




    Brick = Hack

    Washing machine = WarRock





    -Respect List-
    R3dLine
    Alex_Agnew
    Scraprecon
    Naruto boy


    Releasing D3D soon

  8. #7
    BeenToHell's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Aggressive
    Good work! I might try it later

  9. #8
    _Apostolos_'s Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Athnes, Greece
    Posts
    129
    Reputation
    62
    Thanks
    70
    My Mood
    Amused
    So We can use this for Making charms??? :/
    Am not good at all

  10. #9
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Instead of saying "thanks" hit the thanks button. Shows more appreciation .

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  11. The Following 2 Users Say Thank You to Terell. For This Useful Post:

    AeroMan (10-07-2011),matthy (10-07-2011)

  12. #10
    scraprecon's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    In Directx Land!
    Posts
    272
    Reputation
    14
    Thanks
    35
    My Mood
    Devilish
    instead of telling us what we should do, STFU, its smarter.

  13. #11
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by scraprecon View Post
    instead of telling us what we should do, STFU, its smarter.
    god damnit dude, can't you show respect to anyone?

  14. The Following User Says Thank You to AeroMan For This Useful Post:

    matthy (10-07-2011)

  15. #12
    matthy's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    My Mood
    Amazed
    Quote Originally Posted by Alex_Agnew View Post
    god damnit dude, can't you show respect to anyone?
    im agree with u,

  16. #13
    scraprecon's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    In Directx Land!
    Posts
    272
    Reputation
    14
    Thanks
    35
    My Mood
    Devilish
    cuz im tired of Shunnai

  17. #14
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Quote Originally Posted by Alex_Agnew View Post
    god damnit dude, can't you show respect to anyone?
    It seems he can't. He will stay immature, it's alright though, he'll learn to find out later in life that if you don't treat others with respect he won't get respected.

    Quote Originally Posted by scraprecon View Post
    cuz im tired of Shunnai
    Tired of me telling you the right things too do ?

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  18. #15
    Xmagz's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Unknown Location
    Posts
    80
    Reputation
    10
    Thanks
    14
    My Mood
    Inspired
    weyyyyyyyy finally tbh i have been looking for this.. i have to thank you for this
    #'When you feel like giving up is when your close to your breakthrough'#!
    Contact Me!

    Code:
    2015 AND AM BACK WITH MORE FORCE!!

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] [Code Eg.] Simples Color Slider
    By Kernal.Olly in forum Combat Arms BR Hack Coding/Source Code
    Replies: 2
    Last Post: 08-19-2011, 05:48 AM
  2. D3D & c++ || Simple Color Slider
    By FlaVour in forum C++/C Programming
    Replies: 5
    Last Post: 05-04-2011, 06:28 PM
  3. [Release] Zombie Color Fix/Full Bright
    By Falingrave in forum Combat Arms Mods & Rez Modding
    Replies: 60
    Last Post: 11-22-2010, 09:47 AM
  4. S> FULL INFO CSM 2 WITH PERM NAME COLOR LOTS OF GP for 10K NX!!
    By HackinJosh in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 11-19-2009, 06:11 PM
  5. Full Metal alchimist
    By gunot in forum Anime
    Replies: 27
    Last Post: 10-27-2006, 04:01 AM