Gellin's Menu Help

Posts 1–9 of 9 · Page 1 of 1
Gellin's Menu Help
Hi Mpgh can you help me with border and background of gellin's base?
Quote Originally Posted by steph777 View Post
Use Paint?????
Lool u got no clue.
Quote Originally Posted by steph777 View Post
Use Paint?????
rofl ure epic ;D .
Quote Originally Posted by steph777 View Post
Use Paint?????
hahahahahaha awesome !
Ahahha very helpful ._.
Originally Posted by steph777
Use Paint?????
Lool paint !!!! xD
use c++ coding :\
Quote Originally Posted by ac1d_buRn View Post


Before we start, Make sure you have this in your globals:
[php]
LPD3DXFONT pFont;
LPDIRECT3DDEVICE9 pDevice;
[/php]



Draw Box WITH Border

After Globals:

[php]
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 );
}
[/php]

And to create the box (Endscene):
[php]
DrawBox (X,Y,W,H,Back Color,Border Color,pDevice);
[/php]
Credits to Ac1d_BuRn
Thx 4 sharing
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?