Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693

    New*Menu Click Source [Easy]

    Information ==========
    - This menu click is mostly for Hans+Gellins Base in which Whit made!
    - I haven't released much so here is something.
    - This is for advanced coders only


    Source =============
    Menu.cpp

    - We are going to use isMouseinRegion thanks to IcySeal

    [php]bool isMouseinRegion(POINT cPos, int x1, int y1, int x2, int y2)
    {
    if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
    return true;
    } else {
    return false;
    }
    }[/php]

    - Now we use this MenuClick made by me
    [php]bool cMenu::MenuClick(int x, int y, int width, POINT loc)
    {
    int i;

    if (Mtitle[0]) {
    y+=(Mysize*2);
    }

    for (i=0; i<Mmax; i++) {
    int val=(MENU[i].var)?(*MENU[i].var):0;
    if (isMouseinRegion(loc, x, y, x+width, y+Mysize)) {
    // do operation
    Mpos = i;
    if (*MENU[Mpos].var < (MENU[Mpos].maxvalue-1)) {
    *MENU[Mpos].var += 1;
    } else {
    *MENU[Mpos].var = 0;
    }
    if (MENU[Mpos].typ == MENUFOLDER) { // menu tab
    if (*MENU[Mpos].var > 0)
    Mpos++;
    Mmax=0;
    }
    Sleep(100);
    return true;
    }
    y += Mysize;
    }
    return false;
    }[/php]


    Menu.h


    - Were it says ( Red = add to the code )

    class cMenu{
    public:
    void RenderMenu(void);
    void MenuNav(void);
    void MenuShow(int x, int y, ID3DXFont *pFont);
    Add this ----> bool MenuClick(int x, int y, int width, POINT loc);
    private:
    void AddItem(char *txt, char **opt, int *var, int maxvalue, int typ);
    }







    A good coder would get this!
    Last edited by NOOBJr; 11-30-2010 at 04:05 PM.

  2. The Following 4 Users Say Thank You to NOOBJr For This Useful Post:

    NewCories (03-12-2011),rodolfgonzales4 (11-30-2010),the grim reaper (11-30-2010),ultahackers (11-29-2010)

  3. #2
    ultahackers's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    139
    Reputation
    9
    Thanks
    73
    My Mood
    Amused
    TY, this will help me my new hack nubz.. helped me on..... TY dude

  4. #3
    justiniscool5's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    idk
    Posts
    884
    Reputation
    -12
    Thanks
    182
    My Mood
    Bitchy
    Ty bro good luck

  5. #4
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by justiniscool5 View Post
    Ty bro good luck
    Thanks


    Ultrahackers i can't help you today. Pm for help tomorrow!

  6. #5
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Im asuming this is for my combined base..

  7. #6
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by whit View Post
    Im asuming this is for my combined base..
    I'm Assuming you didn't read the top of my post!

  8. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by Zane Slayman View Post
    I'm Assuming you didn't read the top of my post!
    No i didnt That fucking ad messed me up..

  9. #8
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by whit View Post


    No i didnt That fucking ad messed me up..
    I know when the hell did Mpgh get so many ads!

  10. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Quote Originally Posted by Zane Slayman View Post
    I know when the hell did Mpgh get so many ads!
    Dave!!!
    He already made 400 a day on ads..I dont see why he needs more..

  11. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    where did you leech this one from eh zane? Like you leeched my sig, my base, and seals menu moving mouse function all into the crossfire section on the same exact forum its posted on.

  12. #11
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by whit View Post


    Dave!!!
    He already made 400 a day on ads..I dont see why he needs more..
    Greed nuf said! Maybe we can talk to him about it

  13. #12
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    looks n2b actually O.o

  14. #13
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    CodeDemon i didn't leech this! If you check google over 100 times you won't find it! Your my inspiration CodeDemon. You once told me to stop leeching and taking people's work. I decided to follow that. Every day from then i tried learning C++ the REAL way books and shit and it helped. Thanks and if it really bugs you i will make a new sig!

    - Peace
    Last edited by NOOBJr; 11-29-2010 at 08:55 PM.

  15. #14
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    http://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    Quote Originally Posted by ultahackers View Post
    TY, this will help me my new hack nubz.. helped me on..... TY dude
    haha i remember what u did and u cant figure it out :P

  16. #15
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    I don't know why he needs help this isn't noob proof!

Page 1 of 2 12 LastLast