This Is My Farwell Gift Too You Guys As Im Leaving Mpgh Too Learn Alot Of Diffent Shit On My Learning Adventure...Enjoy!!!
Hans Default Menu
Well In Hans Default Menu Its All Already There So Just Put tothieght In The DrawBox Like So..
void D3DMenu::AddItem(char *txt, int *var, char **opt, int maxval, int typ)
{
if (noitems>=(maxitems-1)) return;
MENU[noitems]->typ=typ;
MENU[noitems]->txt=txt;
MENU[noitems]->opt=opt;
MENU[noitems]->var=var;
MENU[noitems]->maxval=maxval;
noitems++;
totheight=(noitems*height)+titleheight;
}
DrawBox( 20,200,170,tothieght,D3D color,pDevice);
My Hans And Gellin Combined Base
In Menu.cpp In The Global Make A New Int..ex. int whatever;
Then In Menu.h Add This extern int whatever;
Now Go Back Too Menu.cpp And Find The AddItem Function...
void cMenu::AddItem(char *txt, char **opt, int *var, int maxvalue, int typ)
{
MENU[Mmax].typ=typ;
MENU[Mmax].txt=txt;
MENU[Mmax].opt=opt;
MENU[Mmax].var=var;
MENU[Mmax].maxvalue=maxvalue;
Mmax++;
whatever=(Mmax*Mysize);
}
DrawBox(20,200,170,whatever,D3D color,pDevice);
There You Go Your Drawboxes Will Auto Resize..
Bye Everyone