Page 1 of 5 123 ... LastLast
Results 1 to 15 of 99

Hybrid View

  1. #1
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted

    CAFlames Menu Base

    Hi,

    This is my 100% self-made menu from my AVA releases.. go check it out in the ava section if you wanna see more

    Its a click on/off menu with multiple options



    sooo here it is:


    Menu.cpp:
    [highlight=cpp]
    #define Red D3DCOLOR_ARGB (255 , 255 , 0 , 0 )
    #define Yellow D3DCOLOR_ARGB (255 , 255 , 255 , 0 )
    #define Green D3DCOLOR_ARGB (255 , 0 , 255 , 0 )
    #define Blue D3DCOLOR_ARGB (255 , 0 , 50 , 255 )
    #define Purple D3DCOLOR_ARGB (255 , 102 , 0 , 153 )
    #define Pink D3DCOLOR_ARGB (255 , 255 , 20 , 147 )
    #define Orange D3DCOLOR_ARGB (255 , 255 , 165 , 0 )
    #define Black D3DCOLOR_ARGB (255 , 0 , 0 , 0 )
    #define White D3DCOLOR_ARGB (255 , 255 , 255 , 255 )
    #define Cyan D3DCOLOR_ARGB (255 , 0 , 255 , 255 )
    #define GreyGreen D3DCOLOR_ARGB ( 255 , 125 , 125 , 125)



    cMenu Menu;


    int MenuW = 205; //Width of Menu (Box)
    int MenuH = 250; //Height of Menu (Box)

    //Menu Coordinates:
    int MenuX = 50;
    int MenuY = 200;

    //Is Menu Showing:
    bool MenuVisible = false;

    //Arrow Menu Options:
    char *Opt_xhair[] = { "XHair: Off","XHair: Red","XHair: Blue","XHair: Green","XHair: American"}


    void cMenu::ShowMenu(LPDIRECT3DDEVICE9 pDevice){ //Must Call In Present


    if (GetAsyncKeyState(VK_INSERT)&1) MenuVisible=(!MenuVisible);
    if (!MenuVisible) return;

    if(MenuVisible){
    //Menu Background:



    pDevice->SetRenderState(D3DRS_ZENABLE, FALSE);//Puts Menu in Front

    Directx.DrawBox(MenuX, MenuY, MenuW, 18, D3DCOLOR_ARGB(145, 0, 0, 0), Green, pDevice );
    Directx.DrawBox(MenuX, MenuY+19, MenuW, MenuH, D3DCOLOR_ARGB(145, 0, 0, 0), Blue, pDevice );
    //Menu Title:
    Directx.PrintText(Directx.pFont, MenuX+5, MenuY+2, D3DCOLOR_ARGB(255, 0, 0, 255), "[MP] CAFlames AVA Base [GH]");

    //Start Menu:
    Menu.MenuItem(1, "Show FPS", MenuX+2, MenuY+19, pDevice); //options
    Menu.ArrowMenuItem(2, Opt_xhair, MenuX+2, MenuY+19, 4, pDevice); //options

    }



    }


    bool cMenu::MouseRegion(int x1, int y1, int x2, int y2)
    {
    POINT cPos;
    GetCursorPos(&cPos);
    if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
    return true;
    } else {
    return false;
    }
    }


    void cMenu::MenuItem(int x, char text[], int MX, int MY, LPDIRECT3DDEVICE9 pDevice){
    if(MenuVisible){
    if(Menu.MouseRegion(MX, MY+((x)*16), MX+MenuW, MY+((x)*16)+16) && GetAsyncKeyState(VK_LBUTTON)&1){
    Menu.cOpt[x].OnOff =! Menu.cOpt[x].OnOff;
    }

    if(Menu.cOpt[x].OnOff){
    Directx.PrintText(Directx.pFont, MX+25, MY+(x*16), D3DCOLOR_ARGB(255, 0, 255, 0), text);
    }else{
    Directx.PrintText(Directx.pFont, MX+25, MY+(x*16), D3DCOLOR_ARGB(255, 255, 0, 0), text);
    }
    }
    }


    void cMenu::ArrowMenuItem(int i, char **textOpt, int MX, int MY, int choices, LPDIRECT3DDEVICE9 pDevice){
    //Choices DOES NOT include 0

    if(MenuVisible){
    {//Starts Left Arrow Creation
    Directx.DrawBox(MX+3, MY+(i*16)-2, 20, 20, White, Blue, pDevice);
    Directx.PrintText(Directx.ARROWpFont, MX+5, MY+(i*16), D3DCOLOR_ARGB(255, 0, 0, 255), "<");
    if(Menu.MouseRegion(MX+3, MY+((i)*16)-2, MX+3+20, MY+((i)*16)+18) && GetAsyncKeyState(VK_LBUTTON)&1){
    if(Menu.cOpt[i].Arrow != 0){
    Menu.cOpt[i].Arrow -= 1;//Makes sure its not at Max Choice
    }else if(Menu.cOpt[i].Arrow == 0){
    Menu.cOpt[i].Arrow = choices;
    }
    }

    {
    Directx.DrawBox(MX+MenuW-22, MY+(i*16)-2, 20, 20, White, Blue, pDevice);
    Directx.PrintText(Directx.ARROWpFont, MX+MenuW-20, MY+(i*16), D3DCOLOR_ARGB(255, 0, 0, 255), ">");
    if(Menu.MouseRegion(MX+MenuW-22, MY+((i)*16)-2, MX+MenuW-2, MY+((i)*16)+18) && GetAsyncKeyState(VK_LBUTTON)&1){
    if(Menu.cOpt[i].Arrow != choices){
    Menu.cOpt[i].Arrow += 1;//Makes sure its not at Max Choice
    }else if(Menu.cOpt[i].Arrow == choices){
    Menu.cOpt[i].Arrow = 0;
    }
    }
    }

    if(Menu.cOpt[i].Arrow == 0){
    Directx.PrintText(Directx.pFont, MX+25, MY+(i*16), D3DCOLOR_ARGB(255, 255, 0, 0), (char *)textOpt[Menu.cOpt[i].Arrow]);
    }else{
    Directx.PrintText(Directx.pFont, MX+25, MY+(i*16), D3DCOLOR_ARGB(255, 0, 255, 0), (char *)textOpt[Menu.cOpt[i].Arrow]);

    }
    }
    }
    }

    [/highlight]




    Menu.h:

    [highlight=cpp]
    #ifndef __MENU_H__
    #define __MENU_H__

    #pragma once


    const int MaxItems = 60;

    struct ClickMenu{
    bool OnOff;
    int Arrow;
    };

    class cMenu{
    public:
    ClickMenu cOpt[MaxItems];

    void ShowMenu(LPDIRECT3DDEVICE9 pDevice);
    bool MouseRegion(int x1, int y1, int x2, int y2);
    void MenuItem(int i, char text[], int MX, int MY, LPDIRECT3DDEVICE9 pDevice);
    void ArrowMenuItem(int i, char **text, int MX, int MY, int choices, LPDIRECT3DDEVICE9 pDevice);
    };

    extern class cMenu Menu;

    #endif
    [/highlight]




    print text function:

    [highlight=cpp]
    void cDirectx::PrintText(LPD3DXFONT Font, long x, long y, D3DCOLOR fontColor, char *text, ...)//Draw Text Function
    {
    RECT rct;
    rct.left = x - 1;
    rct.right = x + 1;
    rct.top = y - 1 ;
    rct.bottom = y + 1;

    if(!text) { return; }
    va_list va_alist;
    char logbuf[256] = {0};
    va_start (va_alist, text);
    _vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), text, va_alist);
    va_end (va_alist);
    RECT FontRect = { x, y, x, y };
    pFont->DrawText(NULL, logbuf, -1, &rct, DT_NOCLIP, fontColor);
    }
    [/highlight]


    Boxes:

    [highlight=cpp]
    void cDirectx::FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }

    void cDirectx:rawBorder(float x, float y, float w, float h, int thick, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice)
    {
    Directx.FillRGB( x, (y + h - thick), w, thick, BorderColor, pDevice);
    Directx.FillRGB( x, y, thick, h, BorderColor, pDevice);
    Directx.FillRGB( x, y, w, thick, BorderColor, pDevice);
    Directx.FillRGB( (x + w - thick), y, thick, h, BorderColor, pDevice);
    }

    void cDirectx:rawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    Directx.FillRGB( x, y, w, h, BoxColor, pDevice );
    Directx.DrawBorder( x, y, w, h, 1, BorderColor, pDevice );
    }
    [/highlight]


    Items in examples in Main.cpp (Must be called in Present / EndScene):

    [highlight=cpp]
    if(Menu.cOpt[1].OnOff){ //FPS.
    Directx.PrintText(Directx.pFont, 2, 20, D3DCOLOR_ARGB(255, 0, 255, 0), FrameRate);
    }

    if(Menu.cOpt[2].Arrow == 1){ //XHair
    Directx.CrossHair(15, Red, pDevice);
    }else if(Menu.cOpt[2].Arrow == 2){
    Directx.CrossHair(15, Blue, pDevice);
    }else if(Menu.cOpt[2].Arrow == 3){
    Directx.CrossHair(15, Green, pDevice);
    }else if(Menu.cOpt[2].Arrow == 4){
    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2) - 15, GetSystemMetrics ( 1 ) /2, 30, 1, Red, pDevice );
    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2), (GetSystemMetrics ( 1 ) /2) - 15, 1, 30, Red, pDevice );

    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2) - 10, GetSystemMetrics ( 1 ) /24, 20, 1, White, pDevice );
    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2), (GetSystemMetrics ( 1 ) /2) - 10, 1, 20, White, pDevice );

    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2) - 5, GetSystemMetrics ( 1 ) /42, 10, 1, Blue, pDevice );
    Directx.FillRGB( (GetSystemMetrics ( 0 ) /2), (GetSystemMetrics ( 1 ) /2) - 5, 1, 10, Blue, pDevice );
    }
    [/highlight]



    Any questions? Leave a comment and a mention.


    //Credits all to me.. except FillRGB and print text are standard stuff... creditz to whomever made first




    I am very sorry abot the highlighted syntax... whereever you see "& # 9 1 ;" Replace with "["
    Last edited by CAFlames; 06-16-2011 at 10:31 AM.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  2. The Following 9 Users Say Thank You to CAFlames For This Useful Post:

    'Batata! (06-17-2011),HeavenlyRage (07-19-2011),HurleyppL (06-18-2011),NOOB (06-23-2011),nxkun (06-24-2011),pashak (06-15-2011),sampiiii (04-02-2012),supercarz1991 (06-15-2011),The Decoder (01-14-2013)

  3. #2
    pashak's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    350
    Reputation
    29
    Thanks
    42
    nice thanks!

  4. The Following User Says Thank You to pashak For This Useful Post:

    NOOB (06-23-2011)

  5. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    very poorly done but good job i guess

  6. The Following User Says Thank You to whit For This Useful Post:

    NOOB (06-23-2011)

  7. #4
    mushdoomx's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    123 CUNTMUFFIN drive
    Posts
    222
    Reputation
    2
    Thanks
    11
    My Mood
    Dead
    its alright but not good at all i can understand it therefore its not that good

  8. The Following User Says Thank You to mushdoomx For This Useful Post:

    NOOB (06-23-2011)

  9. #5
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Good Job Flames

  10. The Following 2 Users Say Thank You to Alessandro10 For This Useful Post:

    NOOB (06-23-2011),nxkun (06-24-2011)

  11. #6
    BlackSipher's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    1
    My Mood
    Angelic
    This is a nice Menu proablly for beginnners

  12. The Following User Says Thank You to BlackSipher For This Useful Post:

    NOOB (06-23-2011)

  13. #7
    luccss's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    482
    Reputation
    183
    Thanks
    3,440
    My Mood
    Breezy
    Good Job

  14. The Following User Says Thank You to luccss For This Useful Post:

    NOOB (06-23-2011)

  15. #8
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Kekistan
    Posts
    15,566
    Reputation
    1817
    Thanks
    6,678
    nothing to do with CA




  16. The Following User Says Thank You to AVGN For This Useful Post:

    NOOB (06-23-2011)

  17. #9
    Threadstarter
    We are the CONTRIBUFORCE
    MPGH Member
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by AVGN View Post
    nothing to do with CA
    Wtf @AVGN

    This is a menu they can use for Combat arms hacks.

    Why the heck did you move to spammers corner??? =.=

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  18. The Following User Says Thank You to CAFlames For This Useful Post:

    NOOB (06-23-2011)

  19. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Lol Spammers Corner
    @AVGN you could of took it to the C++ or Directx Section ?

  20. The Following 3 Users Say Thank You to whit For This Useful Post:

    CAFlames (06-16-2011),markoj (06-16-2011),NOOB (06-23-2011)

  21. #11
    CheatCreatorzz's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    922
    Reputation
    18
    Thanks
    730
    My Mood
    Amused
    This is for...?





    (_¸.•*´'`°¤¸'¸¤°´'`*•.¸_)

    Video Creator
    GFX Creator
    C++ Coder
    D3D Coder

    (¯`*•.¸,¤°´'`°¤,¸.•*´¯)




  22. The Following User Says Thank You to CheatCreatorzz For This Useful Post:

    NOOB (06-23-2011)

  23. #12
    Threadstarter
    We are the CONTRIBUFORCE
    MPGH Member
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by CheatCreatorzz View Post
    This is for...?
    Its a menu you can use for a d3d hack.

    I have no clue why it was moved to spammers corner

    @Disturbed
    @SmartAlley

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  24. The Following User Says Thank You to CAFlames For This Useful Post:

    NOOB (06-23-2011)

  25. #13
    Austin's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Great White North
    Posts
    30,484
    Reputation
    6104
    Thanks
    8,326
    My Mood
    Lurking
    @CAFlames now work on an original base + good features for ca




    VIP Support // May 2011
    CF Minion // January 2012
    Newsforce // August 2012
    Minion+ // March 2013
    Moderator // August 2014
    Former Staff // January 2015
    General Minion // July 2015
    Publicist // December 2015





  26. The Following User Says Thank You to Austin For This Useful Post:

    NOOB (06-23-2011)

  27. #14
    Threadstarter
    We are the CONTRIBUFORCE
    MPGH Member
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by Saboteur View Post
    @CAFlames now work on an original base + good features for ca
    This is original :'(

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  28. The Following User Says Thank You to CAFlames For This Useful Post:

    NOOB (06-23-2011)

  29. #15
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,386
    Reputation
    15
    Thanks
    407
    My Mood
    Sneaky
    Lolz at this ending up in the spammers corner xD
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  30. The Following User Says Thank You to Edlmann For This Useful Post:

    NOOB (06-23-2011)

Page 1 of 5 123 ... LastLast