Thread: Base Structure

Results 1 to 4 of 4
  1. #1
    -xGhost-'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    C:\Sytem32
    Posts
    347
    Reputation
    9
    Thanks
    57
    My Mood
    Relaxed

    Base Structure

    Well I've been working on Combat arms hacks, but mainly just Menu designs, but I'm having this big problem I don't know the Base Structure to start with...

    Wouldn't it be something like,
    Code:
    #include <iostream>
    
    void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
    
    		return;
    }
    Can someone be kind enough to help me.
    Please nothing like "Go learn C++" or "Read a Book", I can't because I'm one of the special kids who doesn't really learn much from reading, I learn from doing.

    Thank you for your time,
    xGhost



  2. #2
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Do an easy menu centered around a structure. Think Hmmm what would be needed for a single menu Item?

    struct MenuItem{
    int X
    int Y
    string name,
    char Opt[];
    }
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  3. #3
    -xGhost-'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    C:\Sytem32
    Posts
    347
    Reputation
    9
    Thanks
    57
    My Mood
    Relaxed
    I mean it in the way of the things that should go, like the EndScene and things like that.



  4. #4
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by -xGhost- View Post
    Well I've been working on Combat arms hacks, but mainly just Menu designs, but I'm having this big problem I don't know the Base Structure to start with...

    Wouldn't it be something like,
    Code:
    #include <iostream>
    
    void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
    {
    
    		return;
    }
    Can someone be kind enough to help me.
    Please nothing like "Go learn C++" or "Read a Book", I can't because I'm one of the special kids who doesn't really learn much from reading, I learn from doing.

    Thank you for your time,
    xGhost
    build your menu data structures before your methods and functions.

    for example, I had the a few fields for my base class, contained within an array:
    -Name
    -Description
    -Modifier
    -Hotkey
    -Validation scheme
    -Friendly name mask

    After you have your base items, you may want to categorize it into a category.
    build from the ground up, not from the sky down.
    Last edited by freedompeace; 01-19-2011 at 06:40 AM.