Hotkey/info box

Posts 1–11 of 11 · Page 1 of 1
Hotkey/info box
Hi evreyone!

I've got a question on how to make a hotkey/info box in your menu.
(i use karraka's(or somthing) old base)
if anyone know how to do that plz post .

Thank you!
Lol they are Easy like shit

Just use DrawBox for Drawing the background and DrawRectangle for lines Easy like nothing
Quote Originally Posted by sh_z_sektor View Post
Lol they are Easy like shit

Just use DrawBox for Drawing the background and DrawRectangle for lines Easy like nothing
you know im learning the basics ;p
If you can make a regular menu.. I think you can make an info box.
Quote Originally Posted by Margherita View Post
If you can make a regular menu.. I think you can make an info box.
I Agree with you cuz the guy that can make a menu knows how to make Boxes,lines,etc..
Quote Originally Posted by sh_z_sektor View Post
I Agree with you cuz the guy that can make a menu knows how to make Boxes,lines,etc..
agree, just make sure you draw in a protected area
Quote Originally Posted by zerohead View Post
agree, just make sure you draw in a protected area
i don't know what that is boys!
i write simple code
add this code to d3dmenu.cpp (in my base ;x)

Code:
void D3D9Menu::Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor,  ID3DXFont*  pFont1)
{
    DrawBox(pDevice, x, y, w, h, Color);
    DrawRectangle(pDevice,x, y, w, h ,s, Color2);

    DrawBox(pDevice, x, y - 20, w, 18, Color);
    DrawRectangle(pDevice,x, y - 20, w, 18 ,s, Color2);
    DrawTextC(x + (w/2), y - 19, tekstcolor, tekst, pFont1);

}
next add this line in D3DMenu class, in d3dmenu.h file (in my base ;p)

Code:
void Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor,  ID3DXFont*  pFont1);
Then you can add only one line in your project, and you have box : >

Code:
if(dupa==1)
    {
        Dostrix->Box(pDevice, 540, 50, 170, 120, 1, tomato, WHITE, "Box by Dostrix1", WHITE, pFont);
        Dostrix->Box(pDevice, 720, 50, 120, 170, 1, yellow, BLUE, "Box by Dostrix2", WHITE, pFont);
        Dostrix->Box(pDevice, 850, 50, 200, 250, 1, orange, GREEN, "Box by Dostrix3", WHITE, pFont);
        Dostrix->Box(pDevice, 1060, 50, 250, 200, 1, magenta, ORANGE, "Box by Dostrix4", WHITE, pFont);
    }
Thanks dude but i don't have 'your base' (if its a public, can i get it to compare with my base?)

EDIT: nice menu btw!
Quote Originally Posted by dostrix View Post
i write simple code
add this code to d3dmenu.cpp (in my base ;x)

Code:
void D3D9Menu::Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor,  ID3DXFont*  pFont1)
{
    DrawBox(pDevice, x, y, w, h, Color);
    DrawRectangle(pDevice,x, y, w, h ,s, Color2);

    DrawBox(pDevice, x, y - 20, w, 18, Color);
    DrawRectangle(pDevice,x, y - 20, w, 18 ,s, Color2);
    DrawTextC(x + (w/2), y - 19, tekstcolor, tekst, pFont1);

}
next add this line in D3DMenu class, in d3dmenu.h file (in my base ;p)

Code:
void Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor,  ID3DXFont*  pFont1);
Then you can add only one line in your project, and you have box : >

Code:
if(dupa==1)
    {
        Dostrix->Box(pDevice, 540, 50, 170, 120, 1, tomato, WHITE, "Box by Dostrix1", WHITE, pFont);
        Dostrix->Box(pDevice, 720, 50, 120, 170, 1, yellow, BLUE, "Box by Dostrix2", WHITE, pFont);
        Dostrix->Box(pDevice, 850, 50, 200, 250, 1, orange, GREEN, "Box by Dostrix3", WHITE, pFont);
        Dostrix->Box(pDevice, 1060, 50, 250, 200, 1, magenta, ORANGE, "Box by Dostrix4", WHITE, pFont);
    }

Let me correct you

in (my base) thing put (xKarraka Base) -.- you noob leecher Give Credits
sorry [b]sh_z_sektor[b], i dont remember who write this base, thanks for it
when i used "my base" i dont mind if i wrote this base xd
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us