[ TUT ] DrawBox Auto ReSize...

Posts 1–15 of 39 · Page 1 of 3
[ TUT ] DrawBox Auto ReSize...
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
Cool. Good for Noobs who dun know how to add :L
Quote Originally Posted by Stephen View Post
Cool. Good for Noobs who dun know how to add :L
Tried To Make No0b Friendly...
Quote Originally Posted by whit View Post
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
Damn, bro.
Why you leaving us, man?
That's entirely horrible, cuz you're a very good coder, and you're just dipping.
Quote Originally Posted by DBag4Life69 View Post


Damn, bro.
Why you leaving us, man?
That's entirely horrible, cuz you're a very good coder, and you're just dipping.
Not As Good As Most People Here (Crash,Seal,Stephen,Blood)..
Ime Leaving For A Godd Reason Too Learn...Ill Be Back
Might Not Be Tomorrow But Trust Me..
Ima miss you bro.

Peace.
Byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
Gonna Miss You dude and answer me PM

@topic Thanks dude
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 /
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
Quote Originally Posted by mo3ad001 View Post
lol i'm Triad may 10 time's for this
and Really all Fail
i don't think that in this Easy
thank you
No Problem Mate...
Easy Really Is Easy..
Quote Originally Posted by coogle007 View Post
Thx but the border resize only a part of menù the last folder don't have background
Post A Pic ..Idk What Your Talkin Bout
Thx but the border resize only a part of menù the last folder don't have background
he's like frosty the snowman. He'll be back another day. /

See ya whit. Ima miss you.
Quote Originally Posted by whatup777 View Post
he's like frosty the snowman. He'll be back another day. /

See ya whit. Ima miss you.
Laters Homes...
Posts 1–15 of 39 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?