Author Topic: Basic D3d Menu  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

jihad11

  • Online Villain
  • ***
  • Posts: 106
  • Im a bot DING DONG
    • View Profile
Basic D3d Menu
« on: June 20, 2012, 01:23:45 am »
Leeched from ghbsys /jihad.


Underneath a 'basic' menu system with:
- menuitems with multiple custom states like: "Off" "On"  or "Head" "Neck" "Spine"
- text menuitems (nonselectable)
- folder style items
- minimal code

A little better screenshot


Changes: version 1.2
- small bugfix contributed by Wieter20

Download the latest D3Dmenu files in the 2nd Post.

In Endscene you put
Code: [Select]
if (Mmax==0) RebuildMenu();
MenuShow(10,10,m_pFont); // show the menu at loc 10,10 with a specified font
MenuNav();


Somewhere in your code you define your menu like :
Code: [Select]
char sFPS[20]="xxx fps";
int CH_cheats  = 1;
int CH_weap   = 1;

int CH_stamina = 0;
int CH_fastammo   = 1;
int CH_fasthealth = 0;
int CH_fastrepair = 0;
int CH_fastflag   = 1;
int CH_nospread   = 1;
int CH_norecoil   = 1;
int CH_unlammo = 1;

// none standard options
char *sStamina[] = { "Off","Stealth","Full" };

void RebuildMenu(void)
{
  strcpy(Mtitle,"== D3Dmenu by Hans211 ==");
  MenuAddItem("[cheats]", Moptfolder, &CH_cheats, 2, MENUFOLDER);
  if (CH_cheats) {
 MenuAddItem("Stamina" , sStamina  , &CH_stamina   , 3, MENUITEM);
 MenuAddItem("Fast ammo"   , Moptonoff , &CH_fastammo  , 2, MENUITEM);
 MenuAddItem("Fast health" , Moptonoff , &CH_fasthealth, 2, MENUITEM);
 MenuAddItem("Fast repair" , Moptonoff , &CH_fastrepair, 2, MENUITEM);
 MenuAddItem("Fast flag"   , Moptonoff , &CH_fastflag  , 2, MENUITEM);
  }
  MenuAddItem("[Weapons]", Moptfolder, &CH_weap, 2, MENUFOLDER);
  if (CH_weap) {
 MenuAddItem("No spread" , Moptonoff , &CH_nospread, 2, MENUITEM);
 MenuAddItem("No recoil" , Moptonoff , &CH_norecoil, 2, MENUITEM);
 MenuAddItem("Unlimited ammo", Moptonoff , &CH_unlammo , 2, MENUITEM);
  }
  MenuAddItem("Framerate" , (char **)sFPS , 0,0,MENUTEXT);
}


Its just basic but it can be easily enhanced...


jihad11

  • Online Villain
  • ***
  • Posts: 106
  • Im a bot DING DONG
    • View Profile
Re: Basic D3d Menu
« Reply #1 on: June 20, 2012, 01:25:38 am »

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Basic D3d Menu
« Reply #2 on: June 20, 2012, 02:10:28 pm »
nice .!
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

[TKC]ViruS

  • Klass Klown
  • ***
  • Posts: 367
  • TKC-COMMUNITY.NET
    • View Profile
Re: Basic D3d Menu
« Reply #3 on: June 20, 2012, 02:48:20 pm »
Good work Jihad. I like this..I would like to know it too, but i have just basic knowledge with c/c++. I will try to know directx, have some tutorials..what a pity that are not tutorials here  :icon_sad2

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Basic D3d Menu
« Reply #4 on: June 20, 2012, 03:06:08 pm »
Good work Jihad. I like this..I would like to know it too, but i have just basic knowledge with c/c++. I will try to know directx, have some tutorials..what a pity that are not tutorials here  :icon_sad2

really , none at all?
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

jihad11

  • Online Villain
  • ***
  • Posts: 106
  • Im a bot DING DONG
    • View Profile
Re: Basic D3d Menu
« Reply #5 on: June 20, 2012, 03:10:31 pm »
Good work Jihad. I like this..I would like to know it too, but i have just basic knowledge with c/c++. I will try to know directx, have some tutorials..what a pity that are not tutorials here  :icon_sad2

If i find a tutorial for it i'll post it.

[TKC]ViruS

  • Klass Klown
  • ***
  • Posts: 367
  • TKC-COMMUNITY.NET
    • View Profile
Re: Basic D3d Menu
« Reply #6 on: June 20, 2012, 03:13:55 pm »
I mean some easy tutorials from the very beginning..know only c/c++

jihad11

  • Online Villain
  • ***
  • Posts: 106
  • Im a bot DING DONG
    • View Profile
Re: Basic D3d Menu
« Reply #7 on: June 20, 2012, 03:20:30 pm »
i could translate u 1 big german thread about getting started to programm a C++ mod-app

Or i could just post it in german and u translate it via google.translate (cauz it will take some time 2 translate it)

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Basic D3d Menu
« Reply #8 on: June 20, 2012, 03:24:45 pm »
I mean some easy tutorials from the very beginning..know only c/c++

hooking the interface is simple , getting it undetcted is simple enough as well. if you need any help with it once you get started pm me and when i get the time il reply.

bwt ive seen that style of menu before im not completely sure its actually from where ever he claims , its probably been leeched from somewhere else before it was posted here , that menu style is old....

dx8 old.

yep

http://www.unknowncheats.me/forum/d3d-tutorials-and-source/58133-d3d-framework-d3d8-and-d3d9.html
« Last Edit: June 20, 2012, 03:31:00 pm by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

[TKC]ViruS

  • Klass Klown
  • ***
  • Posts: 367
  • TKC-COMMUNITY.NET
    • View Profile
Re: Basic D3d Menu
« Reply #9 on: June 20, 2012, 03:49:09 pm »
Thanks guys, i will look for links  :icon_thumbsup
hooking the interface is simple , getting it undetcted is simple enough as well. if you need any help with it once you get started pm me and when i get the time il reply.
Ok M, thank you for help..wait a pm from me, i know you arent happy  :icon_laugh  :icon_thumbsup

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Basic D3d Menu
« Reply #10 on: June 20, 2012, 04:11:16 pm »
Thanks guys, i will look for links  :icon_thumbsup
hooking the interface is simple , getting it undetcted is simple enough as well. if you need any help with it once you get started pm me and when i get the time il reply.
Ok M, thank you for help..wait a pm from me, i know you arent happy  :icon_laugh  :icon_thumbsup

lol , btw no problem. :smile
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157