Good evening all!
I working in a D3D for a game and in menu i wanna add 3 boxes.
1st one will say tittle
2st one is menu
3st is write the site
So i made 3 different boxes about them.
Problem?
When the 2st(menu) is go up,the it's hide the 3st one :S
Code of boxes are
Code:
void Menu(LPDIRECT3DDEVICE9 pDevice){
if (pMenu==0) {
pMenu = new D3DMenu(" xCeManx! ",300,190);
pMenu->visible=1;
pMenu->col_title= Yellow;
} else {
if (pMenu->noitems==0) RebuildMenu();
if (pMenu->visible)
{
DrawBox(pDevice,8,100,210,21,Border);
DrawBox(pDevice,8,130,210,pMenu->noitems*pMenu->height+8,Border);
DrawRent(8,100, 210,21,1,TextFound,pDevice);
DrawRent(8,130,210,pMenu->noitems*pMenu->height+8,1,TextFound,pDevice);
D3DMenu is 1st one!
Hope you may help me a bit.
Code is a part of source
Oh ya i forgot 3rd box
Code:
DrawBox(pDevice,8,180, 210,21, TextBorder);
pFont->DrawText(10+45,185+0, TextWhite, "Made for Elit****ers.de", D3DFONT_SHADOW);