[DONE] Add option to menu_add to add children to existing main menu options.

Started by Marsu42, September 08, 2013, 11:13:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marsu42

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));


a1ex

This should already work:

menu_add("Misc key settings", my_menu_children, COUNT(my_menu_children));

Marsu42

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!