😉 (HELP) Need Help With DrawBox

Posts 1–5 of 5 · Page 1 of 1
😉 (HELP) Need Help With DrawBox
hey guys i am making a hack but i need some help drawing the border of the box and more

here is the code maybe some of you can post below with the right code and if i get no errors ill give u +REP

thanks


Code:
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
if( w < 0 )w = 1;
if( h < 0 )h = 1;
if( x < 0 )x = 1;
if( y < 0 )y = 1;

D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}

void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
FillRGB( x, y, px, h, BorderColor, pDevice );
FillRGB( x, y, w, px, BorderColor, pDevice );
FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
}

void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, y, w, h, BoxColor, pDevice );
DrawBorder( x, y, w, h, 1, BorderColor, pDevice );
}


cBase Base;

void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{

if(Directx.pFont == NULL)
	D3DXCreateFont(pDevice, 15, 0, 350, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont );

if(Directx.pFont2 == NULL)
	D3DXCreateFont(pDevice, 18, 0, 700, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont2 );

if(sprite){
    D3DXCreateTextureFromFileInMemory(pDevice,&Menupic,sizeof(Menupic),&MenuTexture);
    D3DXCreateSprite(pDevice,&Sprite);
    sprite = FALSE;
  }  

    D3DXVECTOR3 POS;
    POS.x = 15;
    POS.y = 15;
    POS.z = 0; 

	if (Mmax==0) Menu.RenderMenu();
		if(Mvisible){
			DrawBox (X,Y,W,H,Back Color,Border Color,pDevice);

Its Whit's Combined Base V2
and no it is not patched cause me and reimy use it
so wait you want us to fix your errors?
Code:
DrawBox(1,1, 15, 15, 1, D3DCOLOR_ARGB(255, 255, 000, 000), pDevice);
There, Fixed
DrawBox (X,Y,W,H,Back Color,Border Color,pDevice);
You need to fill in your parameters
DrawBox(10,10,100,300,Black,Silver,pDevice);
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us