Magic Lantern Forum

Developing Magic Lantern => Feature Requests => Topic started by: Marsu42 on September 08, 2013, 11:13:56 AM

Title: [DONE] Add option to menu_add to add children to existing main menu options.
Post by: Marsu42 on September 08, 2013, 11:13:56 AM
In modules, the user can add entirely new menu points with menu_add - but imho sometimes a small enhancement would be better placed under an existing menu point from the ml core. I suggest to add this to the function, so you could write something like this:


menu_add_children("Prefs", "Misc key settings", my_menu_children, COUNT(my_menu_children));

Title: Re: Add option to menu_add to add children to existing main menu options.
Post by: a1ex on September 08, 2013, 11:31:41 AM
This should already work:

menu_add("Misc key settings", my_menu_children, COUNT(my_menu_children));
Title: Re: Add option to menu_add to add children to existing main menu options.
Post by: Marsu42 on September 08, 2013, 09:46:30 PM
Quote from: a1ex on September 08, 2013, 11:31:41 AM
menu_add("Misc key settings", my_menu_children, COUNT(my_menu_children));

Ok, never tried that, thanks!