Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

How to draw a sliderbar?
Old 07-18-2010, 11:21 AM   #1
Posting Well

iopop9_1337's Avatar

Join Date: May 2010
Posts: 27
Reputation: -29
Rep Power: 0
iopop9_1337 is becoming a waste of our time
How to draw a sliderbar?

How do i draw a sliderbar in d3d9??
iopop9_1337 is offline

Reply With Quote


Old 07-18-2010, 01:09 PM   #2
A God

asg31's Avatar

Join Date: Dec 2009
Location: bushes
Posts: 180
Reputation: 62
Rep Power: 30
asg31 is known to create posts fair in quality
Points: 286, Level: 1
Points: 286, Level: 1 Points: 286, Level: 1 Points: 286, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
have a look at Universal Menu Dx9
then what you will need to do is make the 1/0 option be 0-100
so you draw width of a box 0-100

or something like that
asg31 is offline

Reply With Quote

Old 07-18-2010, 01:38 PM   #3
s0beit's bitch

NeoIII's Avatar

Join Date: Dec 2007
Posts: 343
Reputation: 15059
Rep Power: 207
NeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UCNeoIII Will always be a legend at UC
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (11)
Awarded to members who have donated 10 times or more. Gratuity (1)
Points: 11,257, Level: 13
Points: 11,257, Level: 13 Points: 11,257, Level: 13 Points: 11,257, Level: 13
Activity: 5.9%
Activity: 5.9% Activity: 5.9% Activity: 5.9%
Last Achievements
PHP Code:
void DrawColorToolint indexint xint yIDirect3DDevice9pDevice)
{
    
cTool_x x;
    
cTool_y y;
    
cTool_index index;
    
bcTool true;
    
menu.DrawBox( (x-10), y33080D3DCOLOR_ARGB150515151 ), D3DCOLOR_ARGB25025220251 ), pDevice );//Box
    
menu.DrawBox( (x+35), (14), 2598D3DCOLOR_ARGB2302550), D3DCOLOR_ARGB255255255255 ), pDevice );//R
    
menu.DrawBox( (x+35), (24), 2598D3DCOLOR_ARGB2300255), D3DCOLOR_ARGB255255255255 ), pDevice );//G
    
menu.DrawBox( (x+35), (34), 2598D3DCOLOR_ARGB23000255 ), D3DCOLOR_ARGB255255255255 ), pDevice );//B
    
menu.DrawBox( (x+90), (49), 1008D3DCOLOR_ARGB230m_cTool[index].col.rm_cTool[index].col.gm_cTool[index].col.), D3DCOLOR_ARGB255255255255 ), pDevice );// Current Color
    
menu.DrawGameTextPixel( (20), (10), (cTool_Selected==0) ? txtYellow txtWhite/*0*/XorStr<0xc0,2,0x8c26f35a>("\xf0"+0x8c26f35a).);
    
menu.DrawGameTextPixel( (295),(10), (cTool_Selected==0) ? txtYellow txtWhite/*255*/XorStr<0xcc,4,0xcc32999a>("\xfe\xf8\xfb"+0xcc32999a).);
    
menu.DrawGameTextPixel( (20), (20), (cTool_Selected==1) ? txtYellow txtWhite/*0*/XorStr<0xe1,2,0x77127845>("\xd1"+0x77127845).);
    
menu.DrawGameTextPixel( (295),(20), (cTool_Selected==1) ? txtYellow txtWhite/*255*/XorStr<0xf1,4,0xbc57ee8a>("\xc3\xc7\xc6"+0xbc57ee8a).);
    
menu.DrawGameTextPixel( (20), (30), (cTool_Selected==2) ? txtYellow txtWhite/*0*/XorStr<0x4,2,0x65cc6633>("\x34"+0x65cc6633).);
    
menu.DrawGameTextPixel( (295),(30), (cTool_Selected==2) ? txtYellow txtWhite/*255*/XorStr<0x10,4,0xa7dd78de>("\x22\x24\x27"+0xa7dd78de).);
    
menu.DrawGameTextPixel( (3), (10), txtRed/*R:*/XorStr<0x89,3,0xb88556bc>("\xdb\xb0"+0xb88556bc).);
    
menu.DrawGameTextPixel( (3), (20), txtGreen/*G:*/XorStr<0xd0,3,0x35cf9c9e>("\x97\xeb"+0x35cf9c9e).);
    
menu.DrawGameTextPixel( (3), (30), txtBlue/*B:*/XorStr<0x7e,3,0xaf48ae49>("\x3c\x45"+0xaf48ae49).);
    
menu.DrawGameTextPixel( (3), (45), txtWhite/*Color:*/XorStr<0x8c,7,0x8b248a25>("\xcf\xe2\xe2\xe0\xe2\xab"+0x8b248a25).);
    
menu.DrawGameTextPixel( (3), (60), txtWhite/*Keys: 1/2/3 for Select Line +/- for add/sub*/XorStr<0x07,44,0x03E312C7>("\x4C\x6D\x70\x79\x31\x2C\x3C\x21\x3D\x3F\x22\x32\x75\x7B\x67\x36\x44\x7D\x75\x7F\x78\x68\x3D\x52\x76\x4E\x44\x02\x08\x0B\x08\x06\x41\x47\x5B\x0A\x4A\x48\x49\x01\x5C\x45\x53"+0x03E312C7).);
    
//Slider
    
menu.DrawGameTextPixel( (35 m_cTool[index].col.r), (10), txtWhite"|" );//R
    
menu.DrawGameTextPixel( (35 m_cTool[index].col.g), (20), txtWhite"|" );//G
    
menu.DrawGameTextPixel( (35 m_cTool[index].col.b), (30), txtWhite"|" );//B

PHP Code:
void ColorToolControllWPARAM wKey )
{
    if(!
bcTool) return;

    
int x = (cTool_x+34);
    
int y1 = (cTool_y+15);//R
    
int y2 = (cTool_y+25);//G
    
int y3 = (cTool_y+35);//B
    
if(menu.IsMouseInVector(x,y1,256,6))
    {
        if( 
menu.m_mouse.m_bIsLeftSingleClicked || menu.m_mouse.m_bIsLeftHeld )
        {
            
m_cTool[cTool_index].col.= (menu.m_mouse.x-x);
            if(
m_cTool[cTool_index].col.1)
                
m_cTool[cTool_index].col.0;

            if(
m_cTool[cTool_index].col.254)
                
m_cTool[cTool_index].col.255;
        }
    }
    if(
menu.IsMouseInVector(x,y2,256,6))
    {
        if( 
menu.m_mouse.m_bIsLeftSingleClicked || menu.m_mouse.m_bIsLeftHeld )
        {
            
m_cTool[cTool_index].col.= (menu.m_mouse.x-x);
            if(
m_cTool[cTool_index].col.1)
                
m_cTool[cTool_index].col.0;

            if(
m_cTool[cTool_index].col.254)
                
m_cTool[cTool_index].col.255;
        }
    }
    if(
menu.IsMouseInVector(x,y3,256,6))
    {
        if( 
menu.m_mouse.m_bIsLeftSingleClicked || menu.m_mouse.m_bIsLeftHeld )
        {
            
m_cTool[cTool_index].col.= (menu.m_mouse.x-x);
            if(
m_cTool[cTool_index].col.1)
                
m_cTool[cTool_index].col.0;

            if(
m_cTool[cTool_index].col.254)
                
m_cTool[cTool_index].col.255;
        }
    }
    if( 
wKey == 0x31 )//1
    
{
        
cTool_Selected 0;
    }
    if( 
wKey == 0x32 )//2
    
{
        
cTool_Selected 1;
    }
    if( 
wKey == 0x33 )//3
    
{
        
cTool_Selected 2;
    }
    if(
cTool_Selected==0)
    {
        if( 
wKey == VK_ADD )
        {
            if(
m_cTool[cTool_index].col.!= 255)
                
m_cTool[cTool_index].col.r++;
        }
        if( 
wKey == VK_SUBTRACT )
        {
            if(
m_cTool[cTool_index].col.!= 0)
                
m_cTool[cTool_index].col.r--;
        }
    }
    if(
cTool_Selected==1)
    {
        if( 
wKey == VK_ADD )
        {
            if(
m_cTool[cTool_index].col.!= 255)
                
m_cTool[cTool_index].col.g++;
        }
        if( 
wKey == VK_SUBTRACT )
        {
            if(
m_cTool[cTool_index].col.!= 0)
                
m_cTool[cTool_index].col.g--;
        }
    }
    if(
cTool_Selected==2)
    {
        if( 
wKey == VK_ADD )
        {
            if(
m_cTool[cTool_index].col.!= 255)
                
m_cTool[cTool_index].col.b++;
        }
        if( 
wKey == VK_SUBTRACT )
        {
            if(
m_cTool[cTool_index].col.!= 0)
                
m_cTool[cTool_index].col.b--;
        }
    }
    
//fixup check ...
    
if(m_cTool[cTool_index].col.1)
        
m_cTool[cTool_index].col.0;

    if(
m_cTool[cTool_index].col.254)
        
m_cTool[cTool_index].col.255;

    if(
m_cTool[cTool_index].col.1)
        
m_cTool[cTool_index].col.0;

    if(
m_cTool[cTool_index].col.254)
        
m_cTool[cTool_index].col.255;

    if(
m_cTool[cTool_index].col.1)
        
m_cTool[cTool_index].col.0;

    if(
m_cTool[cTool_index].col.254)
        
m_cTool[cTool_index].col.255;

__________________
NeoIII is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
draw, sliderbar
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 05:32 AM.