Menu System Program
-
Hi folks - a user asked about creating a menu system and it got me thinking of a nice way to set it up.
@Devieus mentioned on the original thread that using states to navigate a menu is a good idea, and I couldn't agree more - so I thought I'd try and whip up a project which used a simple state machine to get menu data.
The project is here:
N7363MND9F
Please feel free to use it, change it, do what you like!A state machine refers to using a variable as an index into an array of data which gets what we need. In this case, the state variable is the
menu_page
, and it indexes themenu_data
array to get the correct menu options!Currently only basic selection controls are implemented. Use d-pad up/down to select menu options, and press A to select an option.
Only a few options have functionality - the others are just placeholders for you to customise!
I hope it can be useful anyway. Let me know if I can clarify anything, or if there are simple improvements you've made!
-
Project not found! :(