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.
Fast, Simple Menu Maker #include
Fast, Simple Menu Maker #include
2Labz.com, My Website
-
- Posts: 44
- Joined: 04 May 2012, 20:20
Re: Fast, Simple Menu Maker #include
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
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
-
- Posts: 44
- Joined: 04 May 2012, 20:20
Re: Fast, Simple Menu Maker #include
The code will never be DONE because there always seems to be something to improve it.
Who is online
Users browsing this forum: No registered users and 4 guests