Page 1 of 1

Fast, Simple Menu Maker #include

Posted: 11 May 2013, 20:32
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 420 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.

Re: Fast, Simple Menu Maker #include

Posted: 13 May 2013, 13:07
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.

Re: Fast, Simple Menu Maker #include

Posted: 14 May 2013, 21:36
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.

Re: Fast, Simple Menu Maker #include

Posted: 21 May 2013, 02:08
by cpapple123
The code will never be DONE because there always seems to be something to improve it.