Originally Posted by
Harold
You asked for it... Heres a small snippet. This draws the menu background with the white line.
[php]//**MenuBorder2**//
void DrawMenuBorder2( )
{
fillrgba(Viewport.Width/2/2-35,Viewport.Height/2/2, 210, 280, 0, 0, 0, 100);
pLine->SetWidth( 1.0 );
pLine->SetAntialias( true );
pLine->SetGLLines( true );
D3DXVECTOR2 vLine[2];
//Viewport.Width/2-480,Viewport.Height/2-50
//Top Accross
vLine[0].x = Viewport.Width/2/2-35;
vLine[0].y = Viewport.Height/2/2-1;
vLine[1].x = Viewport.Width/2/2+176;
vLine[1].y = Viewport.Height/2/2-1;
pLine->Begin( );
pLine->Draw( vLine, 2, D3DCOLOR_XRGB( 255, 255, 255 ) );
pLine->End( );
//Bottom Accross
vLine[0].x = Viewport.Width/2/2-35;
vLine[0].y = Viewport.Height/2/2+281;
vLine[1].x = Viewport.Width/2/2+176;
vLine[1].y = Viewport.Height/2/2+281;
pLine->Begin( );
pLine->Draw( vLine, 2, D3DCOLOR_XRGB( 255, 255, 255 ) );
pLine->End( );
//Left Down
vLine[0].x = Viewport.Width/2/2-35;
vLine[0].y = Viewport.Height/2/2-1;
vLine[1].x = Viewport.Width/2/2-35;
vLine[1].y = Viewport.Height/2/2+281;
pLine->Begin( );
pLine->Draw( vLine, 2, D3DCOLOR_XRGB( 255, 255, 255 ) );
pLine->End( );
//Right Down
vLine[0].x = Viewport.Width/2/2+176;
vLine[0].y = Viewport.Height/2/2-1;
vLine[1].x = Viewport.Width/2/2+176;
vLine[1].y = Viewport.Height/2/2+281;
pLine->Begin( );
pLine->Draw( vLine, 2, D3DCOLOR_XRGB( 255, 255, 255 ) );
pLine->End( );
//Above
vLine[0].x = Viewport.Width/2/2-35;
vLine[0].y = Viewport.Height/2/2+242;
vLine[1].x = Viewport.Width/2/2+176;
vLine[1].y = Viewport.Height/2/2+242;
pLine->Begin( );
pLine->Draw( vLine, 2, D3DCOLOR_XRGB( 255, 255, 255 ) );
pLine->End( );
}
//**//[/php]
undefinedhero:
Yes i got the PM.