Fast, Simple Menu Maker #include

Discussion specific to projects ideas and support.
Post Reply
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Fast, Simple Menu Maker #include

Post by dudmaster »

Hey Guys!

The last time I ever posted anything was over 2 YEARS AGO. It seems like ages.
Well, I'm not gone, and here I have my latest NXT project.

This is for NXT Games makers. It generates simple menus
that are displayed on the NXT's screen, and it's TOTALLY customizable.

FIRST: Download
MenuMaker.zip
Contains the NXC document, and 2 screenshots
(2.54 KiB) Downloaded 444 times
SECOND: How to Use

1. Download the file, and in the program you want the menu
to be in, enter #include ArrayMenu.nxc at the top line. Also,
you need to make 3 variables (NAME THEM ANYTHING):
string OptionWasSelected;
string MenuItemsThatYouWant["Run", "About", "Help", "Exit"]; //You can have unlimited menu items here. Type whatever :)
string TitleOfTheMenu = "My Menu";
int NumberOfTheItemSelected;


2. In your code where you want the menu to be, type this:
OptionWasSelected = ArrayMenu(string MenuItemsThatYouWant[], string TitleOfTheMenu, NumberOfTheItemSelected)


3. That's it! Just try it out on a demo program. Please comment
and tell me any issues/suggestions you have.
2Labz.com, My Website
cpapple123
Posts: 44
Joined: 04 May 2012, 20:20

Re: Fast, Simple Menu Maker #include

Post by cpapple123 »

Great chunk of code. I have been testing some menus of my own and would love to give it a go. I have one thing to offer. Maybe add the instructions to the code. That way if I use it again 6 months from now I don't have to come find this post.
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: Fast, Simple Menu Maker #include

Post by dudmaster »

Will do. I also made a slight change in the code where it uses the whole screen for options. More updates will be coming.
2Labz.com, My Website
cpapple123
Posts: 44
Joined: 04 May 2012, 20:20

Re: Fast, Simple Menu Maker #include

Post by cpapple123 »

The code will never be DONE because there always seems to be something to improve it.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests