Fast, Simple Menu Maker #include
Posted: 11 May 2013, 20:32
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 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.
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 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.