★Rusty (09-17-2010),azerty54 (09-15-2010),deathninjak0 (09-09-2010),inliner (09-09-2010),lolipop1113 (09-15-2010),MEkhi2 (12-02-2010),mo3ad001 (09-09-2010),NewCories (03-02-2011),Nubzgetkillz (11-30-2010),o-o (09-09-2010)
Ok Guys This Is How To Make You DrawBox Auto ReSize When You Close The Groups In Hans Menu And My Combined Hans And Gellins Base
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
★Rusty (09-17-2010),azerty54 (09-15-2010),deathninjak0 (09-09-2010),inliner (09-09-2010),lolipop1113 (09-15-2010),MEkhi2 (12-02-2010),mo3ad001 (09-09-2010),NewCories (03-02-2011),Nubzgetkillz (11-30-2010),o-o (09-09-2010)
Cool. Good for Noobs who dun know how to add :L
whit (09-09-2010)
whit (09-09-2010)
Ima miss you bro.
Peace.
whit (09-09-2010)
Stephen (09-09-2010)
Byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
whit (09-09-2010)
Gonna Miss You dude and answer me PM
@topic Thanks dude
[IMG]https://i423.photobucke*****m/albums/pp312/LizMLsinatra/hh-1.png[/IMG]
Happy Hanukkah For All Of MPGH !
∞
The Real Life Are Better Then A Game !
Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]Best Friends :
Hax4Life!
Solify
[MPGH]Drake`
Respect Them Or I'll Kill You ...
D: Dont go whit! I'll miss you :'( You should check back here everyday /
Good Luck with whatever you are planning on doing.
PS: Nice tut /
whit (09-09-2010)
Don't worry.. he'll be back lol.
lol i'm Triad may 10 time's for this
and Really all Fail
i don't think that in this Easy
thank you
Thx but the border resize only a part of menù the last folder don't have background
whit (09-09-2010)